go-ethereum/core
Matthieu Vachon d444c54548 Fixed wrong assumption about SelfDestruct having only at max one withdraw balance change
It appears a self destruct can really lead to 3 balance changes, 2 of which are withdraw of the money if the contract being self destructed and the self destruct beneficiary are the same.

We thought it was a bug in the Geth tracing API but it appears it's not and we must actually correctly handle that when fixing up balance changes. So we now support the case where there is 2 withdraws, in this case, the old Firehose 2.x was only ever keeping the last one, so we can simply filter it out of the changes to retain backward compatibility.
2025-02-21 16:49:38 -05:00
..
asm Merge tag 'v1.14.12' into firehose-fh3.0 2024-12-17 16:01:41 -05:00
bloombits Merge tag 'v1.14.12' into firehose-fh3.0 2024-12-17 16:01:41 -05:00
forkid params,core/forkid: enable prague on holesky and sepolia (#31139) 2025-02-08 13:26:15 +01:00
rawdb core/types: create block's bloom by merging receipts' bloom (#31129) 2025-02-13 18:05:58 +01:00
state Fixed wrong assumption about SelfDestruct having only at max one withdraw balance change 2025-02-21 16:49:38 -05:00
stateless Merge tag 'v1.14.12' into firehose-fh3.0 2024-12-17 16:01:41 -05:00
tracing Added generated stringer for GasChangeReason enum 2025-02-21 11:13:24 -05:00
txpool core/txpool/legacypool: add support for SetCode transactions (#31073) 2025-02-11 14:15:04 +01:00
types core/types: create block's bloom by merging receipts' bloom (#31129) 2025-02-13 18:05:58 +01:00
vm Removed prev in OnNewAccount as it was unsued 2025-02-20 10:19:05 -05:00
.gitignore Renamed chain => core 2014-12-04 10:28:02 +01:00
bench_test.go all: nuke total difficulty (#30744) 2025-01-28 18:55:41 +01:00
block_validator.go core/types: create block's bloom by merging receipts' bloom (#31129) 2025-02-13 18:05:58 +01:00
block_validator_test.go Merge tag 'v1.14.12' into firehose-fh3.0 2024-12-17 16:01:41 -05:00
blockchain.go params,core: add max and target value to chain config (#31002) 2025-02-04 15:43:18 +01:00
blockchain_insert.go Merge tag 'v1.14.12' into firehose-fh3.0 2024-12-17 16:01:41 -05:00
blockchain_reader.go all: nuke total difficulty (#30744) 2025-01-28 18:55:41 +01:00
blockchain_repair_test.go Merge tag 'v1.14.12' into firehose-fh3.0 2024-12-17 16:01:41 -05:00
blockchain_sethead_test.go Merge tag 'v1.14.12' into firehose-fh3.0 2024-12-17 16:01:41 -05:00
blockchain_snapshot_test.go Merge tag 'v1.14.12' into firehose-fh3.0 2024-12-17 16:01:41 -05:00
blockchain_test.go all: nuke total difficulty (#30744) 2025-01-28 18:55:41 +01:00
bloom_indexer.go core: preallocate batch size in bloomIndexer (#25289) 2022-08-03 17:02:09 +02:00
chain_indexer.go Merge tag 'v1.14.12' into firehose-fh3.0 2024-12-17 16:01:41 -05:00
chain_indexer_test.go Merge tag 'v1.14.12' into firehose-fh3.0 2024-12-17 16:01:41 -05:00
chain_makers.go consensus/misc/eip4844: more changes for blob gas calculation (#31128) 2025-02-05 10:35:03 +01:00
chain_makers_test.go params,core: add max and target value to chain config (#31002) 2025-02-04 15:43:18 +01:00
dao_test.go Merge tag 'v1.14.12' into firehose-fh3.0 2024-12-17 16:01:41 -05:00
error.go core: implement eip-7623 floor data gas (#30946) 2025-01-30 09:07:45 -07:00
events.go Merge tag 'v1.14.12' into firehose-fh3.0 2024-12-17 16:01:41 -05:00
evm.go params,core: add max and target value to chain config (#31002) 2025-02-04 15:43:18 +01:00
gaspool.go core, miner: revert block gas counter in case of invalid transaction (#26799) 2023-03-07 05:23:52 -05:00
gen_genesis.go core: go fmt (#29544) 2024-04-16 15:42:16 +03:00
genesis.go Removed customized genesis changes, we use a custom genesis now so no need to modify it 2025-02-14 13:54:43 -05:00
genesis_alloc.go Merge tag 'v1.14.12' into firehose-fh3.0 2024-12-17 16:01:41 -05:00
genesis_test.go core: assign default difficulty to zero for chain without ethash (#31067) 2025-02-04 17:16:26 +01:00
headerchain.go all: nuke total difficulty (#30744) 2025-01-28 18:55:41 +01:00
headerchain_test.go all: nuke total difficulty (#30744) 2025-01-28 18:55:41 +01:00
mkalloc.go Merge tag 'v1.14.12' into firehose-fh3.0 2024-12-17 16:01:41 -05:00
rlp_test.go core: move genesis alloc types to core/types (#29003) 2024-02-16 19:05:33 +01:00
sender_cacher.go core: use sync.Once for SenderCacher initialization (#31029) 2025-01-16 14:36:45 +01:00
state_prefetcher.go Merge tag 'v1.14.12' into firehose-fh3.0 2024-12-17 16:01:41 -05:00
state_processor.go core/types: create block's bloom by merging receipts' bloom (#31129) 2025-02-13 18:05:58 +01:00
state_processor_test.go consensus/misc/eip4844: more changes for blob gas calculation (#31128) 2025-02-05 10:35:03 +01:00
state_transition.go core/tracing: state journal wrapper (#30441) 2025-02-05 13:58:25 +01:00
stateless.go Merge tag 'v1.14.12' into firehose-fh3.0 2024-12-17 16:01:41 -05:00
txindexer.go all: update license comments and AUTHORS (#31133) 2025-02-05 23:01:17 +01:00
txindexer_test.go all: update license comments and AUTHORS (#31133) 2025-02-05 23:01:17 +01:00
types.go Merge tag 'v1.14.12' into firehose-fh3.0 2024-12-17 16:01:41 -05:00
verkle_witness_test.go core/tracing: state journal wrapper (#30441) 2025-02-05 13:58:25 +01:00