core, core/types: readd transactions after chain re-org
Added a `Difference` method to `types.Transactions` which sets the receiver to the difference of a to b (NOTE: not a **and** b). Transaction pool subscribes to RemovedTransactionEvent adding back to those potential missing from the chain. When a chain re-org occurs remove any transactions that were removed from the canonical chain during the re-org as well as the receipts that were generated in the process. Closes #1746
Showing
- cmd/geth/js_test.go 1 addition, 1 deletioncmd/geth/js_test.go
- common/natspec/natspec_e2e_test.go 1 addition, 1 deletioncommon/natspec/natspec_e2e_test.go
- core/bench_test.go 1 addition, 1 deletioncore/bench_test.go
- core/chain_makers_test.go 1 addition, 1 deletioncore/chain_makers_test.go
- core/chain_manager.go 32 additions, 28 deletionscore/chain_manager.go
- core/chain_manager_test.go 111 additions, 13 deletionscore/chain_manager_test.go
- core/events.go 3 additions, 0 deletionscore/events.go
- core/genesis.go 17 additions, 5 deletionscore/genesis.go
- core/transaction_pool.go 7 additions, 5 deletionscore/transaction_pool.go
- core/transaction_pool_test.go 12 additions, 0 deletionscore/transaction_pool_test.go
- core/transaction_util.go 21 additions, 0 deletionscore/transaction_util.go
- core/types/transaction.go 23 additions, 1 deletioncore/types/transaction.go
- eth/helper_test.go 1 addition, 1 deletioneth/helper_test.go
Loading
Please register or sign in to comment