Commit 9ea830ef authored by matograine's avatar matograine

[fix] allow to create exactly 10 pages

parent 0a2be1b4
......@@ -30,7 +30,7 @@ class Creating:
def create(self):
""" Generating, filling wallets."""
if self.pages < MAX_PAGES_I_CAN_GENERATE:
if self.pages <= MAX_PAGES_I_CAN_GENERATE:
Generator(self.output, self.wallets, self.amount, self.pages).generate()
Transfer(self.amount, self.pages, self.wallets, self.output, self.delay).transfer()
else:
......
......@@ -33,10 +33,10 @@ class Transfer:
outputAddresses = []
for w in self.wallets:
outputAddresses.append (w["pubkey"])
print ("FALSE sending on key : ", w["pubkey"])
#print ("FALSE sending on key : ", w["pubkey"])
delay = int(86400 * self.delay_days)
print ("You will be able to recover the tips after ", self.delay_days, "days")
#print ("You will be able to recover the tips after ", self.delay_days, "days")
# send to tips
pubkey_amount = await get_amount_from_pubkey(key.pubkey)
......@@ -50,6 +50,8 @@ class Transfer:
tx_amount = list()
tx_amount.append(amount_tx)
issuers = key.pubkey
# write the json before doing transactions
self.save_json()
# Next few lines are commented, but are ready for when a client will implement CSV() unlock condition.
# await handle_transactions_with_delay(
await handle_intermediaries_transactions(
......@@ -63,7 +65,6 @@ class Transfer:
outputbackchange,
)
self.save_json()
def save_json(self):
"""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment