EOSIO / eosio-java

EOSIO SDK for Java - API for integrating with EOSIO-based blockchains
https://eosio.github.io/eosio-java/
MIT License
127 stars 44 forks source link

Add use of last irreversible block to transaction processor config as default for TAPOS #125

Closed opi-smccoole closed 4 years ago

opi-smccoole commented 4 years ago

Added useLastIrreversible to TransactionConfig and default to true. When useLastIrreversible is true, then blocksBehind will be ignored and the last irreversible block and expiresSeconds will be used to calculate TAPOS. When useLastIrreversible is false, then transaction processing will take the current head block minus blocksBehind and expiresSeconds and use them to calculate TAPOS. Fix issue with blocksBehind transaction expiration time. It was previously being calculated from the current head block time rather than the time stamp of the block found using blocksBehind. Update javadoc and README to include information on useLastIrreversible.