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>
2 weeks ago
..
ancienttest
core/rawdb: implement in-memory freezer ( #29135 )
10 months ago
testdata
core/rawdb: avoid unnecessary receipt processing for log filtering ( #23147 )
3 years ago
accessors_chain.go
params,core: add max and target value to chain config ( #31002 )
3 weeks ago
accessors_chain_test.go
core/types: create block's bloom by merging receipts' bloom ( #31129 )
2 weeks ago
accessors_indexes.go
core/types, params: add blob transaction type, RLP encoded for now ( #27049 )
2 years ago
accessors_indexes_test.go
ethdb: refactor Database interface ( #30693 )
4 months ago
accessors_metadata.go
Revert "core/rawdb: remove unused transition status state accessors" ( #30449 )
5 months ago
accessors_snapshot.go
all: fix various typos ( #29542 )
10 months ago
accessors_state.go
all: implement path-based state scheme ( #25963 )
2 years ago
accessors_sync.go
core, accounts, eth, trie: handle genesis state missing ( #28171 )
1 year ago
accessors_trie.go
all: update license comments and AUTHORS ( #31133 )
3 weeks ago
ancient_scheme.go
core/rawdb: introduce flush offset in freezer ( #30392 )
3 weeks ago
ancient_utils.go
core/rawdb, triedb, cmd: create an isolated disk namespace for verkle ( #30105 )
7 months ago
chain_freezer.go
all: nuke total difficulty ( #30744 )
4 weeks ago
chain_iterator.go
core, core/rawdb, eth/sync: no tx indexing during snap sync ( #28703 )
1 year ago
chain_iterator_test.go
all: refactor so `NewBlock`, `WithBody` take `types.Body` ( #29482 )
10 months ago
database.go
all: nuke total difficulty ( #30744 )
4 weeks ago
database_test.go
all: update license headers and AUTHORS from git history ( #24947 )
3 years ago
freezer.go
core/rawdb: fix panic in freezer ( #30973 )
2 months ago
freezer_batch.go
core/rawdb: introduce flush offset in freezer ( #30392 )
3 weeks ago
freezer_memory.go
ethdb: refactor Database interface ( #30693 )
4 months ago
freezer_memory_test.go
core/rawdb: implement in-memory freezer ( #29135 )
10 months ago
freezer_meta.go
core/rawdb: introduce flush offset in freezer ( #30392 )
3 weeks ago
freezer_meta_test.go
core/rawdb: introduce flush offset in freezer ( #30392 )
3 weeks ago
freezer_resettable.go
ethdb: refactor Database interface ( #30693 )
4 months ago
freezer_resettable_test.go
core/rawdb: implement in-memory freezer ( #29135 )
10 months ago
freezer_table.go
core/rawdb: skip setting flushOffset in read-only mode ( #31173 )
2 weeks ago
freezer_table_test.go
core/rawdb: introduce flush offset in freezer ( #30392 )
3 weeks ago
freezer_test.go
core/rawdb: drop MigrateTable ( #30331 )
6 months ago
freezer_utils.go
core/rawdb: fsync the index file after each freezer write ( #28483 )
1 year ago
freezer_utils_test.go
all: more linters ( #24783 )
3 years ago
key_length_iterator.go
core/rawdb: add specified key length iterator ( #24535 )
3 years ago
key_length_iterator_test.go
core/rawdb: add specified key length iterator ( #24535 )
3 years ago
schema.go
all: nuke total difficulty ( #30744 )
4 weeks ago
table.go
ethdb: add DeleteRange feature ( #30668 )
4 months ago
table_test.go
all: simplify and fix database iteration with prefix/start ( #20808 )
5 years ago