• Conner Fromknecht's avatar
    fix: correct txcount used for deadlock detection · c753ba81
    Conner Fromknecht authored
    This commit fixes a bug in the way txCount was used for detecting and
    aborting empty blocks. Previously, txCount was incremented immediately
    after popping off the new transaction but before it is executed. This
    was incorrect, as the transaction can still be rejected for nonce/gas
    errors later on. Instead, we modify the logic only count transactions
    that are successfully added, and utilize the existing w.current.tcount
    member to implement the detection.
    c753ba81
Name
Last commit
Last update
..
miner.go Loading commit data...
stress_clique.go Loading commit data...
stress_ethash.go Loading commit data...
unconfirmed.go Loading commit data...
unconfirmed_test.go Loading commit data...
worker.go Loading commit data...
worker_test.go Loading commit data...