Skip to content

Commit 5d4434d

Browse files
authored
Merge pull request expanse-org#22 from happyuc-project/huc/v0.0.2
drop tx when which opcode invalid
2 parents 79f20e4 + 148f559 commit 5d4434d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

miner/worker.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,7 @@ func (env *Work) commitTransactions(mux *event.TypeMux, txs *types.TransactionsB
584584
// Strange error, discard the transaction and get the next in line (note, the
585585
// nonce-too-high clause will prevent us from executing in vain).
586586
log.Warn("Transaction failed, account skipped", "hash", tx.Hash(), "err", err)
587-
txs.Shift()
587+
txs.Pop()
588588
}
589589
}
590590

0 commit comments

Comments
 (0)