Skip to content

Commit

Permalink
Set default to blocksBehind: 3 to avoid transaction expired race cond…
Browse files Browse the repository at this point in the history
…ition for default calls.
  • Loading branch information
thekevinbrown committed May 14, 2019
1 parent da5594d commit 38f371f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/eosManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export class EOSManager {
static transact = (
transaction: any,
eos = EOSManager.api,
options = { blocksBehind: 0, expireSeconds: 30 }
options = { blocksBehind: 3, expireSeconds: 30 }
) => {
if (ConfigManager.debugTransactions) {
const calls = transaction.actions.map((action: any) => `${action.account}.${action.name}`);
Expand Down

0 comments on commit 38f371f

Please sign in to comment.