Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Geth v1.13.2 #1116

Closed
wants to merge 10,000 commits into from
Closed
Show file tree
Hide file tree
Changes from 4 commits
Commits
Show all changes
10000 commits
Select commit Hold shift + click to select a range
9d744f0
cmd/bootnode: fix timer leak (#27754)
ucwong Aug 1, 2023
7de748d
all: implement path-based state scheme (#25963)
rjl493456442 Aug 1, 2023
ff97b4c
cmd/geth: disable automaxprocs log (#27814)
jsvisa Aug 1, 2023
d04bde0
p2p: use atomic types (#27764)
ucwong Aug 1, 2023
8224bb9
build: upgrade -dlgo version to Go 1.20.7 (#27835)
sandakersmann Aug 2, 2023
6e934f4
eth/protocols/snap: fix batch writer when resuming an aborted sync (#…
karalabe Aug 3, 2023
df54435
core/types: fix immutability guarantees in Block (#27844)
fjl Aug 4, 2023
57cdbae
all: remove trailing whitespace (#27741)
darioush Aug 4, 2023
bb148dd
core/types: support yParity field in JSON transactions (#27744)
fjl Aug 4, 2023
5c30541
log: use atomic types (#27763)
ucwong Aug 4, 2023
60070fe
internal/ethapi, graphql: correct comments about gas price logic (#27…
chrischarlesharrison Aug 4, 2023
8574767
internal: use atomic type (#27858)
ucwong Aug 7, 2023
d14c07d
accounts: use atomic type (#27857)
ucwong Aug 7, 2023
eeebb07
internal/ethapi: add state override to estimateGas (#27845)
amintalebi Aug 7, 2023
6d2bcb9
p2p/simulations/examples: use atomic.Int64 (#27861)
ucwong Aug 7, 2023
0d772b9
graphql: avoid greedy allocation (#27873)
holiman Aug 8, 2023
e13fa32
core/vm: update 4844 - point evaluation precompile address (#27874)
holiman Aug 8, 2023
7ec60d5
p2p: move ping handling into pingLoop goroutine (#27887)
fjl Aug 9, 2023
10d9f93
graphql: add yParity field for transactions (#27882)
jsvisa Aug 9, 2023
6797902
core/state: move UpdateContractCode before the trie hash is computed …
gballet Aug 9, 2023
9c216bd
params: release go-ethereum v1.12.1
fjl Aug 10, 2023
d9a8b0f
params: begin v1.12.2 release cycle
fjl Aug 10, 2023
8d1db16
eth/filters, core/rawdb: remove unused param, refactor filtering-loop…
holiman Aug 10, 2023
86d7f5a
deps: update supranational/blst to 0.3.11 (#27890)
dependabot[bot] Aug 10, 2023
5e89ff4
graphql: validate block params (#27876)
s1na Aug 10, 2023
503f1f7
all: activate pbss as experimental feature (#26274)
rjl493456442 Aug 10, 2023
e2507a1
params: switch release family to 1.13 to prep for PBSS
karalabe Aug 10, 2023
6ddb92c
core/txpool/blobpool: fix metrics name for prometheus export (#27901)
imulmat4 Aug 11, 2023
35f7f3d
ethdb/leveldb: support more than 7 levels in metrics (#27904)
jsvisa Aug 11, 2023
8f8ef2b
rpc: attempt to fix ping/pong logic race (#27733)
fjl Aug 11, 2023
80b76a9
core/types: remove duplication in eip2930 signer (#27860)
GDdark Aug 11, 2023
0ce331f
trie/triedb/pathdb: make shutdown journal log friendlier (#27905)
karalabe Aug 11, 2023
be65b47
all: update golang/x/ext and fix slice sorting fallout (#27909)
karalabe Aug 11, 2023
a0491a0
deps: update supranational/blst to 0.3.11 (#27890)
dependabot[bot] Aug 10, 2023
55863ce
core/txpool/blobpool: fix metrics name for prometheus export (#27901)
imulmat4 Aug 11, 2023
770db14
ethdb/leveldb: support more than 7 levels in metrics (#27904)
jsvisa Aug 11, 2023
811a674
all: update golang/x/ext and fix slice sorting fallout (#27909)
karalabe Aug 11, 2023
e91b21c
go.mod, build: upgrade c-kzg-4844 (#27907)
fjl Aug 11, 2023
f298ec4
go.mod, build: upgrade c-kzg-4844 (#27907)
fjl Aug 11, 2023
6886006
internal/build: apply -ubuntu to env (#27910)
fjl Aug 12, 2023
a867039
internal/build: apply -ubuntu to env (#27910)
fjl Aug 12, 2023
bed8460
params: release go-ethereum v1.12.2
fjl Aug 12, 2023
2a6beb6
core/types: support for optional blob sidecar in BlobTx (#27841)
fjl Aug 14, 2023
6885521
cmd/utils: restore support for txlookuplimit flag (#27917)
jsvisa Aug 14, 2023
509cd42
go.mod: upgrade goja (#27899)
ucwong Aug 14, 2023
f1801a9
internal/ethapi: implement eth_getBlockReceipts (#27702)
jsvisa Aug 15, 2023
05a8b88
crypto/bls12381: fix typo in comment (#27930)
lei335 Aug 15, 2023
ab28680
trie: add tests for "short" nodes in StackTrie (#27932)
chfast Aug 15, 2023
e0b1198
eth/tracers/js: use t.toBig on ctx.GasPrice for js tracing (#27903)
nettijoe96 Aug 15, 2023
a16d757
build: remove ubuntu kinetic (deprecated) (#27933)
holiman Aug 16, 2023
386cba1
node: increase batch limits for auth rpc API (#27924)
jsvisa Aug 16, 2023
a3e3541
core/types: fix unmarshalling of BlobTx values (#27939)
lightclient Aug 16, 2023
32fde3f
core/forkid: correctly compute forkid when timestamp fork is activate…
lightclient Aug 16, 2023
1aa5520
core/txpool/legacypool: protect cache with mutex (#27898)
holiman Aug 17, 2023
649deb6
eth/downloader: fix rare crash when parent header missing in db (#27945)
jsvisa Aug 17, 2023
950ccdd
internal/ethapi: optimize & clean up EstimateGas (#27710)
roberto-bayardo Aug 18, 2023
7dea9c1
internal/ethapi: eth API changes needed for 4844 (#27928)
MariusVanDerWijden Aug 18, 2023
5976e58
trie: reduce allocs in recHash (#27770)
MariusVanDerWijden Aug 18, 2023
b3024e8
eth: ignore genesis block on importChain (#27956)
MariusVanDerWijden Aug 21, 2023
f56ee7d
eth/catalyst: set finalized block hash properly in dev mode (#27886)
jwasinger Aug 21, 2023
9f4a528
internal/ethapi: add testcases for blobTx (#27818)
jsvisa Aug 22, 2023
7c0d90c
core: ensure txindex will be triggered at least once (#27847)
jsvisa Aug 22, 2023
bbee0e7
miner: fix reply -> replay typo (#27961)
shuoli84 Aug 22, 2023
55c5f59
travis, build: update Go to 1.21.0 (#27958)
holiman Aug 22, 2023
0b4b299
go.mod: update docker (#27970)
MariusVanDerWijden Aug 22, 2023
b8d38e7
core, params, beacon/engine: implement EIP 4788 BeaconRoot (#27849)
holiman Aug 22, 2023
8d24929
cmd/evm: add back stateroot to jsonl-output (#27968)
holiman Aug 22, 2023
4c7053b
core: add BeaconRoot to header in GenerateChain (#27974)
fjl Aug 22, 2023
16946d2
rpc: use go-winio for named pipes (#27972)
holiman Aug 23, 2023
c31f9cf
graphql: fix nil deref on a timer (#27978)
jsvisa Aug 23, 2023
ab3762b
go.mod: update pebble to crl-release-23.1 (#27967)
karalabe Aug 23, 2023
0c6bbeb
core, eth, trie: expose more detailed dirty ram tracking for diff lay…
karalabe Aug 23, 2023
bce5c46
eth/catalyst: disable full payload when not in dev mode (#27921)
rjl493456442 Aug 23, 2023
00fead9
cmd/utils: fix a startup issue on deleted chaindata but dangling anci…
karalabe Aug 23, 2023
4af98d4
travis: increase travis wait time (#27975)
holiman Aug 23, 2023
76d4ac1
account/abi: convert if-else-if chain to tagged switch (#27869)
islishude Aug 23, 2023
52219ce
travis: get rid of old useless GO111MODULE directives (#27991)
karalabe Aug 23, 2023
5c7136a
rlp: remove allocation of bytes.Reader in DecodeBytes (#27987)
fjl Aug 23, 2023
f0f8703
core/rawdb, ethdb/pebble: avoid fsync db in tests (#27836)
holiman Aug 23, 2023
e3f3e01
les: use new atomic types (#27856)
ucwong Aug 23, 2023
4abc412
crypto/bn256: eliminate dead store (#27944)
cuiweixie Aug 23, 2023
2f4dbb4
core/rawdb: allocate database keys with explicit size to avoid slice …
MariusVanDerWijden Aug 23, 2023
eb6cbe3
core/state: remove public method ForEachStorage (#27986)
holiman Aug 23, 2023
d1f6735
core/rawdb: fix 32bit build (#27995)
fjl Aug 23, 2023
feb8f41
miner: add to build block with EIP-4844 blobs (#27875)
lightclient Aug 23, 2023
60ec41c
miner: refactor getSealingBlock method (#27993)
MariusVanDerWijden Aug 23, 2023
9b46986
all: use rlp.DecodeBytes instead of rlp.Decode where possible (#27994)
fjl Aug 24, 2023
45b198d
eth/catalyst: disable heartbeat for simulated beacon node (#27979)
jsvisa Aug 24, 2023
1a21350
eth/catalyst: use block as finalization (#28000)
rjl493456442 Aug 24, 2023
0ba2d3c
core/vm/runtime: Add Random field to config (#28001)
guidovranken Aug 25, 2023
56d2366
core/state/snapshot: replace diffToDisk ideal batch size with 64MB (#…
aaronbuchwald Aug 25, 2023
6dc9cdf
core: support null balance in genesis (#28005)
fjl Aug 25, 2023
5e0eb62
eth/protocols/eth: stop advertising eth/66 for pathdb nodes (#28006)
karalabe Aug 25, 2023
6b98d18
cmd, core, params: add support for the Holesky testnet (#28007)
karalabe Aug 25, 2023
9bbb9df
core/types: transaction and receipt encoding/decoding optimizations (…
fjl Aug 25, 2023
cde462c
eth/catalyst: reset to current header if chain is rewound (in dev mod…
jsvisa Aug 25, 2023
6aa88cc
beacon/engine, eth/catalyst, miner: EIP-4788 CL/EL protocol updates (…
holiman Aug 26, 2023
5ca7fb8
account/abi: handle solidity panic revert (#27868)
islishude Aug 26, 2023
3ff6b3c
core/state: implement fast storage deletion (#27955)
rjl493456442 Aug 26, 2023
3a662d4
eth: remove check for tdd reached on pos api block tags (#27799)
lightclient Aug 26, 2023
d4e345c
core/state: fix missing import (#28010)
holiman Aug 26, 2023
f174ddb
build, tests: add execution-spec-tests (#26985)
MariusVanDerWijden Aug 26, 2023
fe24d22
miner/stress/clique: fix typo (#28016)
Cr4shOv3rrid3 Aug 28, 2023
b8adb4c
tests: use 'sender' in state tests if present (#28023)
holiman Aug 29, 2023
41ee96f
core/txpool/blobpool: fix rlp decoding flaw during offload (#28027)
lightclient Aug 30, 2023
5b15949
go.mod: regenerate all indirect dependencies to clean up the junk (#2…
karalabe Aug 31, 2023
53f3c2a
metrics, cmd/geth: informational metrics (prometheus, influxdb, opent…
jorgeacortes Aug 31, 2023
0acc0a1
core/state: simplify storage trie update and commit (#28030)
rjl493456442 Aug 31, 2023
2885708
eth/catalyst: set random value in dev mode (#27940)
MariusVanDerWijden Aug 31, 2023
f260a9e
beacon/engine: add `shouldOverrideBuilder` to payload envelope (#28029)
lightclient Sep 4, 2023
eff7c3b
core/forkid: skip genesis forks by time (#28034)
lightclient Sep 4, 2023
25733a4
params: update 4844 parameters (#28026)
lightclient Sep 5, 2023
2f77299
go.mod: goupnp 1.3.0 (#28053)
ucwong Sep 6, 2023
2e02c1f
core/rawdb: don't warn for missing "unclean shutdown markers" (#28014)
jsvisa Sep 6, 2023
c60f7dd
deps: update minisign (#28066)
holiman Sep 7, 2023
a8d7201
log: avoid stack lookups when not needed/used (#28069)
holiman Sep 7, 2023
a7842c9
core, trie: cleanup trie database (#28062)
rjl493456442 Sep 7, 2023
83886e4
go.mod: pull in a fix from pebble crl-release-23.1 (#28081)
karalabe Sep 8, 2023
5cf53f5
ethclient: use 'input', not 'data' as field for transaction input (#2…
holiman Sep 8, 2023
1efd12f
core: fix calculation of blob gasprice in tx receipt (#28082)
lightclient Sep 11, 2023
12ef276
consensus/misc: fix min gas limit error message (#28085)
0xmuralik Sep 11, 2023
7371b38
params: release Geth v1.13.0
karalabe Sep 12, 2023
766272f
params: begin v1.13.1 release cycle
karalabe Sep 12, 2023
43df612
internal, log: remove code for old unsupported go-versions (#28090)
holiman Sep 13, 2023
8d38b1f
core/rawdb: skip pathdb state inspection in hashdb mode (#28108)
karalabe Sep 13, 2023
8b6cf12
metrics: refactor metrics (#28035)
holiman Sep 13, 2023
eb74389
cmd/geth: rename the protocols field in the metrics gague (#28102)
karalabe Sep 13, 2023
b9b99a1
eth: abort on api operations not available in pbss-mode (#28104)
s1na Sep 14, 2023
d9fbb71
cmd/geth, internal/flags, go.mod: colorize cli help, support env vars…
karalabe Sep 14, 2023
636c64c
build: upgrade -dlgo version to Go 1.21.1 (#28113)
sandakersmann Sep 14, 2023
86bc2cd
internal/flags: fix linter
karalabe Sep 14, 2023
8514d66
graphql: add 4844 blob fields (#27963)
jsvisa Sep 14, 2023
ee65462
internal/flags: fix loading env vars for custom flags (#28117)
karalabe Sep 14, 2023
909dd4a
rlp/rlpgen: remove build tag (#28106)
fjl Sep 14, 2023
65a17c0
metrics: add support for enabling metrics from env vars (#28118)
karalabe Sep 14, 2023
48fdb79
core/state: check err for iter.Error in fastDeleteStorage (#28122)
darioush Sep 15, 2023
4fa3db4
eth/downloader: prevent pivot moves after state commit (#28126)
karalabe Sep 15, 2023
16cd1a7
cmd/geth, internal/flags: print envvar config source and bad names (#…
karalabe Sep 15, 2023
9a9db3d
eth/catalyst: fix engine API (#28135)
rjl493456442 Sep 17, 2023
2177193
internal/ethapi: correctly calculate effective gas price (#28130)
cam-schultz Sep 17, 2023
52234eb
internal/flags: fix typo (#28133)
phenix3443 Sep 17, 2023
d8a351b
params: fix typo in comment (#28129)
phenix3443 Sep 17, 2023
c53b0fe
core, eth/downloader: fix genesis state missing due to state sync (#2…
rjl493456442 Sep 17, 2023
3f40e65
params: release Geth v1.13.1
karalabe Sep 17, 2023
90d5bd8
params: begin Geth v1.13.2 release cycle
karalabe Sep 17, 2023
e9f78db
cmd/evm: fix some issues with the evm run command (#28109)
fjl Sep 19, 2023
ef76afa
core/rawdb: fix typo in comment (#28140)
jsvisa Sep 19, 2023
4b748b7
eth: fix typo in comment (#28146)
bnovil Sep 19, 2023
41a0ad9
cmd/devp2p: use bootnodes as crawl input (#28139)
jsvisa Sep 19, 2023
30d5d7c
go.mod: use existing version of karalabe/usb (#28127)
holiman Sep 19, 2023
7ed5bc0
trie: add getter for preimage store in trie.Database (#28155)
gballet Sep 19, 2023
5c6f4b9
cmd/utils: fix typo in comment (#28159)
phenix3443 Sep 19, 2023
5b9cbe3
cmd/clef: suppress fsnotify error if keydir not exists (#28160)
jsvisa Sep 20, 2023
545f4c5
core/rawdb: no need to run truncateFile for readonly mode (#28145)
jsvisa Sep 21, 2023
4773dcb
trie: remove internal nodes between shortNode and child in path mode …
rjl493456442 Sep 22, 2023
03c2176
trie/triedb/pathdb: improve error log (#28177)
rjl493456442 Sep 22, 2023
83f3fc2
core/state/snapshot: be very noisy if the generator hits a trie error…
karalabe Sep 22, 2023
d135baf
cmd/geth: print progress logs when iterating large contracts too (#28…
karalabe Sep 22, 2023
f1b2ec0
core/rawdb: use readonly file lock in readonly mode (#28180)
jsvisa Sep 22, 2023
82ec555
cmd: add state.scheme to the database flag group for local flag handl…
karalabe Sep 22, 2023
323542a
core, params: update Holesky testnet to relaunched spec (#28191)
karalabe Sep 25, 2023
d051ea5
params: update hash for Holesky relaunch (#28192)
karalabe Sep 25, 2023
c2cfe35
core/bloombits: fix deadlock when matcher session hits an error (#28184)
msmania Sep 25, 2023
1fa3362
core/forkid: add forkid test for holesky (#28193)
MariusVanDerWijden Sep 25, 2023
c3742a9
internal/debug: add --log.rotate to the logging category (#28190)
fjl Sep 25, 2023
3d297fc
cmd/geth: ensure db is closed before exit (#28150)
jsvisa Sep 25, 2023
f6f64cc
cmd/utils: fix bootnodes config priority (#28095)
buddh0 Sep 25, 2023
4985d83
ethclient: fix BlockReceipts parameter encoding (#28087)
kandrianov Sep 25, 2023
4de89e9
core/vm: minor code formatting (#28199)
hzysvilla Sep 26, 2023
4021910
eth/downloader: typo in comment (#28196)
phenix3443 Sep 26, 2023
2b7bc2c
eth/fetcher: allow underpriced transactions in after timeout (#28097)
MariusVanDerWijden Sep 26, 2023
adb9b31
internal/ethapi: eth_call block parameter is optional (#28165)
s1na Sep 26, 2023
b85c183
eth/downloader: remove header rollback mechanism (#28147)
rjl493456442 Sep 26, 2023
614804b
core/txpool: fix typos (#28208)
bnovil Sep 27, 2023
a081130
core/txpool: fix typos (#28213)
0xbstn Sep 28, 2023
73f5bcb
core, accounts, eth, trie: handle genesis state missing (#28171)
rjl493456442 Sep 28, 2023
dc34fe8
params: release Geth v1.13.2
karalabe Sep 28, 2023
e8bcd80
remove direct go-ethereum dependency
darioush Feb 9, 2024
47e02bb
add formatting script
darioush Feb 9, 2024
0234af5
Merge branch 'master' of github.com:ava-labs/subnet-evm into geth-v1.…
darioush Feb 9, 2024
e63b792
format: remove avalanche header
darioush Feb 9, 2024
38b66f8
format: add upstream go-ethereum
darioush Feb 9, 2024
38ac6b3
format: rename packages to upstream
darioush Feb 9, 2024
63b5c2a
Merge tag 'v1.12.0' of github.com:ethereum/go-ethereum into geth-v1.1…
darioush Feb 9, 2024
13d4691
Merge tag 'v1.12.2' of github.com:ethereum/go-ethereum into geth-v1.1…
darioush Feb 10, 2024
f50fae9
uts passing
darioush Feb 11, 2024
cdf5ee1
fix allowed imports
darioush Feb 11, 2024
db44d2b
fix txpool close
darioush Feb 11, 2024
631a82f
format: remove upstream go-ethereum
darioush Feb 11, 2024
eeafb2d
format: rename packages as fork
darioush Feb 11, 2024
92f4c11
Revert "format: remove avalanche header"
darioush Feb 11, 2024
58542e7
format: add avalanche header
darioush Feb 11, 2024
072652b
couple more formatting scipts
darioush Feb 11, 2024
c20a58a
Merge branch 'master' of github.com:ava-labs/subnet-evm into geth-v1.…
darioush Feb 11, 2024
609f7b4
fix mockgen
darioush Feb 11, 2024
9b5259f
bump coreth to compile compatible
darioush Feb 11, 2024
1e72bac
linting
darioush Feb 11, 2024
2595549
fix sync argument
darioush Feb 11, 2024
3252162
shell-check
darioush Feb 11, 2024
5bf7a9d
move reorg feed notification
darioush Feb 12, 2024
d08dfe2
fix go:generate comments
darioush Feb 12, 2024
53ca9f9
hashdb: change metrics from trie/memcache -> hashdb/memcache
darioush Feb 12, 2024
aced8af
nit: update comment
darioush Feb 13, 2024
c4a770e
gossiper: change to skip unresolvable lazyTx
darioush Feb 13, 2024
a02f299
tx_gossip_test: preserve sync semantics of AddLocals
darioush Feb 13, 2024
5b16e4d
tx_gossip_test: preserve sync semantcis of AddLocal
darioush Feb 13, 2024
349bb30
remove unused: consensus/misc/gaslimit.go
darioush Feb 13, 2024
5087070
consensus/dummy: update comment
darioush Feb 13, 2024
3ed22f9
core/rawdb: remove unused "SnapshotRootKey"
darioush Feb 13, 2024
9ba495d
fix gen comment
darioush Feb 13, 2024
7c77dff
Geth v1.12.2 nits (#1099)
ceyonur Feb 21, 2024
23dfdc4
Merge branch 'master' of github.com:ava-labs/subnet-evm into geth-v1.…
darioush Feb 26, 2024
6d354d6
IteratePending returns bool
darioush Feb 26, 2024
a5b6bb5
update fastcache ns to match hashdb/
darioush Feb 26, 2024
4969682
remove unused RemoveTx
darioush Feb 26, 2024
c67b0fb
bump coreth to compile compatible version
darioush Feb 26, 2024
83f28ef
cmd, core, eth, graphql, trie: no persisted clean trie cache file (#2…
rjl493456442 Jul 4, 2023
7e8c6a3
remove more cache persistence code
darioush Feb 26, 2024
d4c07fb
lint: dead code
darioush Feb 26, 2024
45d3b34
core/txpool: SubscribeNewHeadEvent unused
darioush Feb 26, 2024
4396703
left out of prev. change
darioush Feb 26, 2024
24cc02a
Merge branch 'master' of github.com:ava-labs/subnet-evm into geth-v1.…
darioush Mar 4, 2024
ec95970
merge fixes
darioush Mar 4, 2024
bd2f96e
compile compatible coreth
darioush Mar 4, 2024
217b78c
format: remove avalanche header
darioush Mar 4, 2024
ecbcbb6
format: add upstream go-ethereum
darioush Mar 4, 2024
a4e07eb
format: rename packages to upstream
darioush Mar 4, 2024
d1f02c7
Merge tag 'v1.13.2' of github.com:ethereum/go-ethereum into geth-v.13…
darioush Mar 6, 2024
24163e3
fix test
darioush Mar 6, 2024
3624b90
format: remove upstream go-ethereum
darioush Mar 6, 2024
c92eeb2
format: rename packages as fork
darioush Mar 6, 2024
c6640ac
Revert "format: remove avalanche header"
darioush Mar 6, 2024
95f0e15
fix rlpgen comments
darioush Mar 6, 2024
80fdc34
Merge branch 'master' of github.com:ava-labs/subnet-evm into geth-v.1…
darioush Mar 6, 2024
9b482e6
unused files
darioush Mar 6, 2024
a2a2b35
lint
darioush Mar 6, 2024
e44d623
resolve some of the TODOS
darioush Mar 6, 2024
f38bab8
remove chaininfo metric
darioush Mar 20, 2024
52952b5
update schema accounting (database.go)
darioush Mar 20, 2024
95120b7
deprecate tx-lookup-limit
darioush Mar 21, 2024
1c2e8f9
fix testDeleteStorage
darioush Mar 21, 2024
8c0c7bd
Merge branch 'master' of github.com:ava-labs/subnet-evm into geth-v.1…
darioush Mar 21, 2024
2e2beea
fix race
darioush Mar 21, 2024
4af41a1
triedb/pathdb: document deviation from upstream
darioush Mar 25, 2024
cadd7bb
worker.go: update TODO comments
darioush Mar 25, 2024
1283cb0
Merge branch 'master' of github.com:ava-labs/subnet-evm into geth-v.1…
darioush Mar 25, 2024
02377fb
fix coreth versioning
darioush Mar 26, 2024
4bdba28
add log formats from upstream (#1140)
ceyonur Mar 29, 2024
a3baeec
Merge branch 'master' into geth-v.13.2-x
ceyonur Mar 29, 2024
eb9d16a
add comment
darioush Apr 2, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion core/state/statedb.go
Original file line number Diff line number Diff line change
Expand Up @@ -1019,7 +1019,7 @@ func (s *StateDB) clearJournalAndRefund() {
// storage iteration and constructs trie node deletion markers by creating
// stack trie with iterated slots.
func (s *StateDB) fastDeleteStorage(addrHash common.Hash, root common.Hash) (bool, common.StorageSize, map[common.Hash][]byte, *trienode.NodeSet, error) {
iter, _ := s.snap.StorageIterator(addrHash, common.Hash{}) // XXX
iter, _ := s.snap.StorageIterator(addrHash, common.Hash{})
defer iter.Release()

var (
Expand Down
2 changes: 1 addition & 1 deletion core/state/statedb_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1165,7 +1165,7 @@ func TestDeleteStorage(t *testing.T) {
value := common.Hash(uint256.NewInt(uint64(10 * i)).Bytes32())
state.SetState(addr, slot, value)
}
root, _ := state.Commit(0, true, false)
root, _ := state.CommitWithSnap(0, true, snaps, common.Hash{}, common.Hash{}, false)
// Init phase done, create two states, one with snap and one without
fastState, _ := New(root, db, snaps)
slowState, _ := New(root, db, nil)
Expand Down
15 changes: 14 additions & 1 deletion plugin/evm/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,10 +204,12 @@ type Config struct {
// on RPC nodes.
AcceptedCacheSize int `json:"accepted-cache-size"`

// TxLookupLimit is the maximum number of blocks from head whose tx indices
// TransactionHistory is the maximum number of blocks from head whose tx indices
// are reserved:
// * 0: means no limit
// * N: means N block limit [HEAD-N+1, HEAD] and delete extra indexes
TransactionHistory uint64 `json:"transaction-history"`
// Deprecated, use 'TransactionHistory' instead.
TxLookupLimit uint64 `json:"tx-lookup-limit"`

// SkipTxIndexing skips indexing transactions.
Expand Down Expand Up @@ -319,3 +321,14 @@ func (c *Config) Validate() error {

return nil
}

func (c *Config) Deprecate() string {
msg := ""
// Deprecate the old config options and set the new ones.
if c.TxLookupLimit != 0 {
msg += "tx-lookup-limit is deprecated, use transaction-history instead. "
c.TransactionHistory = c.TxLookupLimit
}

return msg
}
9 changes: 9 additions & 0 deletions plugin/evm/vm.go
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,11 @@ func (vm *VM) Initialize(
if err := vm.config.Validate(); err != nil {
return err
}
// We should deprecate config flags as the first thing, before we do anything else
// because this can set old flags to new flags. log the message after we have
// initialized the logger.
deprecateMsg := vm.config.Deprecate()

vm.ctx = chainCtx

// Create logger
Expand All @@ -288,6 +293,10 @@ func (vm *VM) Initialize(

log.Info("Initializing Subnet EVM VM", "Version", Version, "Config", vm.config)

if deprecateMsg != "" {
log.Warn("Deprecation Warning", "msg", deprecateMsg)
}

if len(fxs) > 0 {
return errUnsupportedFXs
}
Expand Down
1 change: 0 additions & 1 deletion trie/triedb/hashdb/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -736,7 +736,6 @@ func (db *Database) Size() (common.StorageSize, common.StorageSize) {
func (db *Database) Close() error {
if db.cleans != nil {
db.cleans.Reset()
db.cleans = nil
ceyonur marked this conversation as resolved.
Show resolved Hide resolved
}
return nil
}
Expand Down
Loading