You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 2, 2022. It is now read-only.
Describe the feature
In your options, you support: blocksBehind, consider adding lastIrriversableBlock: true
Expected behavior
This will lookup the block num and prefix from the last irreversible block (instead of blocks behind the head block) and use those values in the transaction TAPOS headers.
Additional context
The blocksBehind option is used to try and avoid casting transactions on short-lived forks (micro-forks). This is only a guess though, a fork could be longer than 3 blocks (example from the README). If you instead use the last irreversible block then you'll never try to create a transaction that is pointed to a fork.
Version of EOSJS
v20
Describe the feature
In your options, you support:
blocksBehind, consider addinglastIrriversableBlock: trueExpected behavior
This will lookup the block num and prefix from the last irreversible block (instead of blocks behind the head block) and use those values in the transaction TAPOS headers.
Additional context
The
blocksBehindoption is used to try and avoid casting transactions on short-lived forks (micro-forks). This is only a guess though, a fork could be longer than 3 blocks (example from the README). If you instead use the last irreversible block then you'll never try to create a transaction that is pointed to a fork.