Official Go implementation of the Ethereum protocol
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
minh-bq
68de26e346
core/types: create block's bloom by merging receipts' bloom ( #31129 )
...
Currently, when calculating block's bloom, we loop through all the
receipt logs to calculate the hash value. However, normally, after going
through applyTransaction, the receipt's bloom is already calculated
based on the receipt log, so the block's bloom can be calculated by just
ORing these receipt's blooms.
```
goos: darwin
goarch: arm64
pkg: github.com/ethereum/go-ethereum/core/types
cpu: Apple M1 Pro
BenchmarkCreateBloom
BenchmarkCreateBloom/small
BenchmarkCreateBloom/small-10 810922 1481 ns/op 104 B/op 5 allocs/op
BenchmarkCreateBloom/large
BenchmarkCreateBloom/large-10 8173 143764 ns/op 9614 B/op 401 allocs/op
BenchmarkCreateBloom/small-mergebloom
BenchmarkCreateBloom/small-mergebloom-10 5178918 232.0 ns/op 0 B/op 0 allocs/op
BenchmarkCreateBloom/large-mergebloom
BenchmarkCreateBloom/large-mergebloom-10 54110 22207 ns/op 0 B/op 0 allocs/op
```
---------
Co-authored-by: Gary Rong <garyrong0905@gmail.com>
Co-authored-by: Zsolt Felfoldi <zsfelfoldi@gmail.com>
1 week ago
..
asm
…
bloombits
…
forkid
params,core/forkid: enable prague on holesky and sepolia ( #31139 )
2 weeks ago
rawdb
core/types: create block's bloom by merging receipts' bloom ( #31129 )
1 week ago
state
all: update license comments and AUTHORS ( #31133 )
2 weeks ago
stateless
…
tracing
core/tracing: state journal wrapper ( #30441 )
2 weeks ago
txpool
core/txpool/legacypool: add support for SetCode transactions ( #31073 )
2 weeks ago
types
core/types: create block's bloom by merging receipts' bloom ( #31129 )
1 week ago
vm
all: update license comments and AUTHORS ( #31133 )
2 weeks ago
.gitignore
…
bench_test.go
all: nuke total difficulty ( #30744 )
4 weeks ago
block_validator.go
core/types: create block's bloom by merging receipts' bloom ( #31129 )
1 week ago
block_validator_test.go
all: remove TerminalTotalDifficultyPassed ( #30609 )
4 months ago
blockchain.go
params,core: add max and target value to chain config ( #31002 )
3 weeks ago
blockchain_insert.go
…
blockchain_reader.go
all: nuke total difficulty ( #30744 )
4 weeks ago
blockchain_repair_test.go
core, eth, node: break rawdb -> {leveldb, pebble} dependency ( #30689 )
4 months ago
blockchain_sethead_test.go
core, eth, node: break rawdb -> {leveldb, pebble} dependency ( #30689 )
4 months ago
blockchain_snapshot_test.go
core, eth, node: break rawdb -> {leveldb, pebble} dependency ( #30689 )
4 months ago
blockchain_test.go
all: nuke total difficulty ( #30744 )
4 weeks ago
bloom_indexer.go
…
chain_indexer.go
core, eth, ethstats: simplify chain head events ( #30601 )
4 months ago
chain_indexer_test.go
…
chain_makers.go
consensus/misc/eip4844: more changes for blob gas calculation ( #31128 )
2 weeks ago
chain_makers_test.go
params,core: add max and target value to chain config ( #31002 )
3 weeks ago
dao_test.go
…
error.go
core: implement eip-7623 floor data gas ( #30946 )
3 weeks ago
events.go
core, eth, ethstats: simplify chain head events ( #30601 )
4 months ago
evm.go
params,core: add max and target value to chain config ( #31002 )
3 weeks ago
gaspool.go
…
gen_genesis.go
…
genesis.go
core: sanity-check fork configuration in genesis ( #31171 )
1 week ago
genesis_alloc.go
…
genesis_test.go
core: assign default difficulty to zero for chain without ethash ( #31067 )
3 weeks ago
headerchain.go
all: nuke total difficulty ( #30744 )
4 weeks ago
headerchain_test.go
all: nuke total difficulty ( #30744 )
4 weeks ago
mkalloc.go
…
rlp_test.go
…
sender_cacher.go
core: use sync.Once for SenderCacher initialization ( #31029 )
1 month ago
state_prefetcher.go
core: switch EVM tx context in ApplyMessage ( #30809 )
3 months ago
state_processor.go
core/types: create block's bloom by merging receipts' bloom ( #31129 )
1 week ago
state_processor_test.go
consensus/misc/eip4844: more changes for blob gas calculation ( #31128 )
2 weeks ago
state_transition.go
core/tracing: state journal wrapper ( #30441 )
2 weeks ago
stateless.go
cmd/evm: improve block/state test runner ( #30633 )
3 months ago
txindexer.go
all: update license comments and AUTHORS ( #31133 )
2 weeks ago
txindexer_test.go
all: update license comments and AUTHORS ( #31133 )
2 weeks ago
types.go
all: implement flat deposit requests encoding ( #30425 )
5 months ago
verkle_witness_test.go
core/tracing: state journal wrapper ( #30441 )
2 weeks ago