Skip to content

Commit

Permalink
Increase tx expiration time
Browse files Browse the repository at this point in the history
  • Loading branch information
dmytro-samoylenko committed Apr 18, 2024
1 parent fcc0fef commit fe8cd8f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/wallet.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ def transfer(self, dst, amount):
.with_owner(self.main_account['public'])
.fee_limit(int(config['TX_FEE_LIMIT'] * 1_000_000)))

txn._raw_data['expiration'] += 60_000
# https://github.com/tronprotocol/java-tron/issues/2883#issuecomment-575007235
txn._raw_data['expiration'] += 12 * 60 * 60 * 1_000 # 12 hours
txn = (txn.build()
.sign(PrivateKey(bytes.fromhex(wallet_encryption.decrypt(self.main_account['private'])))))
txn_res = (txn.broadcast()
Expand Down

0 comments on commit fe8cd8f

Please sign in to comment.