According to the genesis block file. The maximum delay for a deferred transaction is 3888000.
"max_transaction_delay": 3888000,
What is sender_id param in send_deferred function?
问题: I tried to implement repeated execution of particular action and set this param as _self of calling contract, but the transaction gets executed only once in this case. Then i tried to set it as time() and it worked, so has it to be unique?
答案:
The sender_id
is just a value set by the contract that sends the deferred transaction so that later operations can refer to the same transaction. The semantics are:
- sending a new transaction with the same
sender_id
as one in-flight will replace the in-flight transaction - canceling a transaction can be achieved by passing that
sender_id
intocancel_deferred
So, if you want to have N transactions in-flight at the same time they need N unique ID's
https://github.com/CryptoLions/EOS-MainNet/blob/master/genesis.json
https://eosio.stackexchange.com/questions/404/what-is-sender-id-param-in-send-deferred-function