Abstract
Expirable transactions must have a higher priority then other transactions.
Motivation
The Transactions that update transfer and register a secret on-chain can expire, meaning that after a given block height these transactions will be rejected by the smart contract (either because the settlement window was over or the lock expired). To increase the likelihood of mining these transactions, they should be prioritized.
Specification
The prioritization should not be part of the core logic, because it will require some sort of policy to order the transactions, one possible policy is to order transactions based on the token value, which would require updating the token's value to some price oracle.
Backwards Compatibility
- This doesn't change the off-chain protocol, so there is no backwards/forwards compatibility there.
- This will require changes to the
ContractSend events, which will require upgrade transactions.
Related
Cancel in-flight transactions #2801
Abstract
Expirable transactions must have a higher priority then other transactions.
Motivation
The Transactions that update transfer and register a secret on-chain can expire, meaning that after a given block height these transactions will be rejected by the smart contract (either because the settlement window was over or the lock expired). To increase the likelihood of mining these transactions, they should be prioritized.
Specification
The prioritization should not be part of the core logic, because it will require some sort of policy to order the transactions, one possible policy is to order transactions based on the token value, which would require updating the token's value to some price oracle.
Backwards Compatibility
ContractSendevents, which will require upgrade transactions.Related
Cancel in-flight transactions #2801