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.
Felix Lange
9afc6816d2
common/lru: add generic LRU implementation ( #26162 )
...
It seems there is no fully typed library implementation of an LRU cache.
So I wrote one. Method names are the same as github.com/hashicorp/golang-lru,
and the new type can be used as a drop-in replacement.
Two reasons to do this:
- It's much easier to understand what a cache is for when the types are right there.
- Performance: the new implementation is slightly faster and performs zero memory
allocations in Add when the cache is at capacity. Overall, memory usage of the cache
is much reduced because keys are values are no longer wrapped in interface.
2 years ago
..
asm
all: change format `0x%x` to `%#x` ( #25221 )
2 years ago
beacon
build: upgrade to go 1.19 ( #25726 )
2 years ago
bloombits
all: fix spelling mistakes ( #25961 )
2 years ago
forkid
params: set sepolia mergeNetsplitBlock to 1735371 ( #25372 )
2 years ago
rawdb
core/rawdb: refactor db inspector for extending multiple ancient store ( #25896 )
2 years ago
state
common/lru: add generic LRU implementation ( #26162 )
2 years ago
txpool
core, eth: for types with accurate size calcs, return uint64, not float ( #26046 )
2 years ago
types
core, eth: for types with accurate size calcs, return uint64, not float ( #26046 )
2 years ago
vm
core/vm: deepcopy jumptable when enabling extra eips ( #26137 )
2 years ago
.gitignore
Renamed `chain` => `core`
10 years ago
bench_test.go
all: cleanup tests ( #25641 )
2 years ago
block_validator.go
cmd, core, eth, miner: deprecate miner.gastarget flag ( #23213 )
3 years ago
block_validator_test.go
all: cleanup tests ( #25641 )
2 years ago
blockchain.go
common/lru: add generic LRU implementation ( #26162 )
2 years ago
blockchain_insert.go
core: fix log order in "Imported new chain segment" ( #25768 )
2 years ago
blockchain_reader.go
common/lru: add generic LRU implementation ( #26162 )
2 years ago
blockchain_repair_test.go
core, ethclient/gethclient: improve flaky tests ( #25918 )
2 years ago
blockchain_sethead_test.go
core, ethclient/gethclient: improve flaky tests ( #25918 )
2 years ago
blockchain_snapshot_test.go
core, ethclient/gethclient: improve flaky tests ( #25918 )
2 years ago
blockchain_test.go
core/rawdb: refactor db inspector for extending multiple ancient store ( #25896 )
2 years ago
blocks.go
core: typos and comments improve
8 years ago
bloom_indexer.go
core: preallocate batch size in bloomIndexer ( #25289 )
2 years ago
chain_indexer.go
all: make logs a bit easier on the eye to digest ( #22665 )
4 years ago
chain_indexer_test.go
core: fix potential race in chainIndexerTest ( #22346 )
4 years ago
chain_makers.go
params: make eip1559 params non-global ( #25994 )
2 years ago
chain_makers_test.go
all: move genesis initialization to blockchain ( #25523 )
2 years ago
dao_test.go
core, ethclient/gethclient: improve flaky tests ( #25918 )
2 years ago
error.go
all: remove duplicate word in comments ( #25618 )
2 years ago
events.go
eth/filters: remove use of event.TypeMux for pending logs ( #20312 )
5 years ago
evm.go
core/evm: fix error in comment ( #25040 )
2 years ago
forkchoice.go
all: core rework for the merge transition ( #23761 )
3 years ago
gaspool.go
miner: avoid unnecessary work ( #15883 )
7 years ago
gen_genesis.go
core: change baseFee into baseFeePerGas in genesis json
3 years ago
gen_genesis_account.go
tests: update for London ( #22976 )
3 years ago
genesis.go
cmd/utils: enable snapshot generation in import-mode ( #25990 )
2 years ago
genesis_alloc.go
core/genesis: remove calaverasAllocData ( #25516 )
2 years ago
genesis_test.go
all: move genesis initialization to blockchain ( #25523 )
2 years ago
headerchain.go
common/lru: add generic LRU implementation ( #26162 )
2 years ago
headerchain_test.go
all: cleanup tests ( #25641 )
2 years ago
mkalloc.go
build: upgrade to go 1.19 ( #25726 )
2 years ago
rlp_test.go
all: cleanup tests ( #25641 )
2 years ago
sender_cacher.go
all: refactor txpool into it's own package in prep for 4844
2 years ago
state_prefetcher.go
all: removed blockhash from statedb ( #23126 )
3 years ago
state_processor.go
core: remove unused bc ChainContext in applyTransaction
2 years ago
state_processor_test.go
all: cleanup tests ( #25641 )
2 years ago
state_transition.go
core: fix linter complaint ( #25927 )
2 years ago
types.go
core: prefetch next block state concurrently
6 years ago