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

Merge v1.12.1 #258

Merged
merged 226 commits into from
Nov 14, 2023
Merged
Show file tree
Hide file tree
Changes from 225 commits
Commits
Show all changes
226 commits
Select commit Hold shift + click to select a range
690249d
params: begin v1.12.1 release cycle
holiman May 25, 2023
6c73276
core,console: replace noarg fmt.Errorf with errors.New (#27332)
jsvisa May 25, 2023
9358b62
accounts: replace noarg fmt.Errorf with errors.New (#27331)
jsvisa May 25, 2023
db9a178
eth/filters: retrieve logs in async (#27135)
jsvisa May 25, 2023
1816cdc
internal/ethapi: don't return header size from rpc (#27347)
jsvisa May 25, 2023
1316621
eth: split api.go into namespace based files (#27263)
jsvisa May 29, 2023
c57b343
internal/ethapi: add more testcases for block/header rpc (#27325)
jsvisa May 29, 2023
1888174
core/types: remove superfluous todo-comment (#27383)
gballet May 30, 2023
d789c68
eth: make debug_StorageRangeAt take a block hash or number (#27328)
jwasinger May 30, 2023
560dceb
les, eth: fix typo in comment (#27369)
ucwong May 30, 2023
8013a49
event: move type fixation logic into Feed.init (#27249)
dbadoy May 30, 2023
61dcf76
internal/ethapi: prevent unnecessary resource usage in eth_getProof i…
prestwich May 31, 2023
d496188
miner: suspend miner if node is syncing (#27218)
rjl493456442 May 31, 2023
cc2ab42
go.mod: golang.org/x upgrade (#27299)
ucwong May 31, 2023
1f9b69b
consensus, core, eth/downloader, params: 4844 chain validation (#27382)
karalabe May 31, 2023
495692c
core, eth/downloader, params: validate blob tx bodies (#27392)
karalabe May 31, 2023
008086f
core, eth/downloader: validate blobtx.To at serialization time (#27393)
karalabe May 31, 2023
ac86547
p2p/discover: add Table configuration and Nodes method (#27387)
fjl May 31, 2023
45a3ab4
core/state: move slot RLP encoding into the MPT implementation (#27000)
gballet Jun 1, 2023
2372fb2
internal/web3ext: fix parameter count of miner_start (#27400)
lochjin Jun 1, 2023
15bd21f
core/state: mark account as dirty when resetObject occurs (#27339)
rjl493456442 Jun 1, 2023
c7c84ca
all: remove the Rinkeby testnet (#27406)
karalabe Jun 2, 2023
a7b2106
eth/downloader: drop beacon head updates if the syncer is restarting …
karalabe Jun 5, 2023
78f7a6b
graphql: simplify tx resolve (#27285)
joohhnnn Jun 5, 2023
380fb4e
core/state: clear out cached state data when reset occurs (#27376)
rjl493456442 Jun 5, 2023
c537ace
core: 4844 opcode and precompile (#27356)
MariusVanDerWijden Jun 5, 2023
0e5d2c7
core/state/snapshot, core/types, eth: move account definition to type…
rjl493456442 Jun 6, 2023
8eb0c2d
cmd/evm: make evm blocktest output logs if so instructed (#27396)
holiman Jun 6, 2023
b8ee287
core/txpool: fix minor flaw in isGapped check (#27404)
dkatzan Jun 6, 2023
4cf708d
les: remove unused var `AdvertiseProtocolVersions` (#27405)
palango Jun 6, 2023
950d564
core/txpool: make transaction validation reusable across packages (po…
karalabe Jun 6, 2023
0783cb7
eth,core: add api debug_getTrieFlushInterval (#27303)
jsvisa Jun 6, 2023
fbe432f
graphql: implement withdrawals (EIP-4895) (#27072)
s1na Jun 6, 2023
99eb0b5
rlp: use identical receiver names for encBuffer methods (#27430)
stephenfire Jun 7, 2023
5c51ef8
accounts/keystore: handle error for invalid key in DecryptKey (#27432)
ThreeAndTwo Jun 7, 2023
281e8cd
eth/filters: reuse handleLogs method for removed logs (#27438)
jsvisa Jun 8, 2023
174d267
miner: log number of withdrawals in block upon payload update (#27457)
jwasinger Jun 13, 2023
5ac4da3
internal/ethapi: remove error return on RPCMarshalBlock (#27449)
hero5512 Jun 13, 2023
f3314bb
rpc: add limit for batch request items and response size (#26681)
mmsqe Jun 13, 2023
8bbaf88
core/types: add "chainID" field to legacy tx JSON encoding (#27452)
freeman-jiang Jun 13, 2023
6f08c2f
rpc: add method to test for subscription support (#25942)
zhiqiangxu Jun 14, 2023
acc2a2a
node: remove unused error return from Attach (#27450)
pengin7384 Jun 14, 2023
7823ff6
eth/tracers: refactor exporting js buffer (#27472)
s1na Jun 14, 2023
93ecd77
core: remove unnecessary log copy (#27475)
aaronbuchwald Jun 15, 2023
9cf9fae
core/types: add support for BlobTxType receipts (#27470)
holiman Jun 15, 2023
604da5c
cmd/evm: fix typos in docs (#27478)
cuishuang Jun 15, 2023
c375936
rlp: fix typos (#27484)
joohhnnn Jun 16, 2023
d40a255
all: move main transaction pool into a subpool (#27463)
karalabe Jun 16, 2023
36ca59f
build: use slices package for sorting (#27486)
Jun 18, 2023
46ec972
core/txpool/legacypool: reheap the tx list if london fork not enabled…
lochjin Jun 18, 2023
289c6c3
p2p: use slices package for sorting (#27494)
Jun 19, 2023
5d75123
ethdb/dbtest: use slices package for sorting (#27491)
Jun 19, 2023
168d0cc
internal/jsre/deps: fix typos in web3.js (#27500)
joohhnnn Jun 19, 2023
a71b9b9
core/txpool/legacypool: remove redundant check for floatingRatio == 0…
hero5512 Jun 19, 2023
e4660a1
core/txpool/legacypool: handle missing head in reset (#27479)
holiman Jun 19, 2023
f0b5af7
rpc: avoid use of cgo by hard-coding maxPathSize (#27447)
zchee Jun 19, 2023
311b742
accounts/keystore: use slices package for sorting (#27485)
Jun 19, 2023
4544dc5
cmd/devp2p: use slices package for sorting (#27487)
Jun 19, 2023
cd3b8c3
cmd/evm: fix typos in documentation (#27501)
joohhnnn Jun 19, 2023
760fd0c
consensus/clique: fix typo in comment (#27503)
pengin7384 Jun 19, 2023
4367ab4
metrics: use slices package for sorting (#27493)
Jun 19, 2023
a848212
consensus/clique: use slices package for sorting (#27488)
Jun 19, 2023
87e510d
internal/ethapi, les: use slices package for sorting (#27492)
Jun 19, 2023
50ecb16
tests, trie: use slices package for sorting (#27496)
Jun 19, 2023
091c25d
go.mod: update kzg libraries to use big-endian (#27510)
MariusVanDerWijden Jun 19, 2023
ceca457
trie: remove parameter 'fromLevel' in Prove (#27512)
rjl493456442 Jun 19, 2023
9a167c4
core/txpool/legacypool: narrow down the scope of the variable (#27471)
hero5512 Jun 19, 2023
b1ef0bf
eth: use slices package for sorting (#27490)
Jun 19, 2023
84b05d4
internal/build: ignore some files in FindMainPackages (#27521)
jsvisa Jun 20, 2023
154b016
core: use slices package for sorting (#27489)
Jun 20, 2023
1affc1c
core/txpool: remove use of errors.Join function (#27523)
fjl Jun 20, 2023
8c288b5
internal/ethapi: use same state for each invocation within EstimateGa…
jwasinger Jun 20, 2023
6d2aeb4
cmd, core/state, eth, tests, trie: improve state reader (#27428)
rjl493456442 Jun 20, 2023
713fc8b
ethdb/pebble: fsync for batch writes (#27522)
holiman Jun 21, 2023
fd5d2ef
internal/ethapi: quantity-encode storage keys in eth_getProof respons…
prestwich Jun 21, 2023
5520cd9
p2p/discover: swap verification order in discv4 ping handler (#27532)
Exca-DK Jun 22, 2023
699243f
core/state, light, trie: add UpdateContractCode to the Trie interface…
gballet Jun 22, 2023
942ba4d
crypto/secp256k1: define NDEBUG only if not defined (#27550)
fbac Jun 23, 2023
2754b19
common/math: fix typo in comment (#27561)
pengin7384 Jun 25, 2023
8044177
eth/protocols: put protocols in order (#27543)
jsvisa Jun 27, 2023
b4bc9b0
cmd/geth: error message should not be capitalised (#27549)
puhtaytow Jun 27, 2023
4b90c44
ethdb/pebble: use sync mode for pebble writes (#27615)
rjl493456442 Jun 27, 2023
d7ea278
core/vm: move TSTORE,TLOAD to correct opcode nums (#27613)
MariusVanDerWijden Jun 27, 2023
9005912
common/lru: add test case for BasicLRU.Peek (#27559)
pengin7384 Jun 27, 2023
d73eb87
core: log message if DeriveFields returns error (#27530)
aaronbuchwald Jun 27, 2023
c7b099b
trie, core/state: revert error removal in (*state.Trie).Commit (#27544)
gballet Jun 27, 2023
eed7983
core/txpool/legacypool: fix typo (#27620)
hero5512 Jun 27, 2023
f5d3d48
eth: send big transactions by announce/retrieve only (#27618)
MariusVanDerWijden Jun 28, 2023
85b8d1c
params, trie: add verkle fork management + upgrade go-verkle (#27464)
gballet Jun 28, 2023
8bbb16b
core/state, light, les: make signature of ContractCode hash-independe…
gballet Jun 28, 2023
6ca3ef9
node: fix listening on IPv6 address (#27628) (#27635)
oiooj Jul 2, 2023
59f7b28
cmd, core, eth, graphql, trie: no persisted clean trie cache file (#2…
rjl493456442 Jul 4, 2023
863f6da
ethdb/leveldb: update leveldb metrics collection (#27643)
Exca-DK Jul 5, 2023
83d7f42
core: stop chain when tests are finished (#27660)
darioush Jul 6, 2023
ab0e0f3
signer/core: show helptext when clef rejects signing (#27538)
joohhnnn Jul 6, 2023
ea78280
cmd/geth: implement dev mode for post-merge (#27327)
jwasinger Jul 6, 2023
cbf2579
p2p, p2p/discover: add dial metrics (#27621)
lightclient Jul 6, 2023
c866dfd
core: remove outdated tests (#27662)
holiman Jul 6, 2023
c2db667
miner: remove unused commented code (#27664)
jwasinger Jul 7, 2023
af8b138
core/vm: define cancun + enable 1153 (tstore/tload) in cancun (#27663)
holiman Jul 10, 2023
5c9cbc2
core/vm: implement EIP-5656, mcopy instruction (#26181)
charles-cooper Jul 11, 2023
e1fd3d6
eth: better active protocol handler tracking (#27665)
lightclient Jul 11, 2023
aecf3f9
internal/blocktest: add package for shared test code (#27270)
jsvisa Jul 11, 2023
4b06e4f
core/state: value diff tracking in StateDB (#27349)
rjl493456442 Jul 11, 2023
645b0db
cmd/utils, p2p: clean up discovery setup (#27518)
lightclient Jul 11, 2023
7a565fa
console: add cleanup to avoid leaks in newTester (#27695)
Mskxn Jul 11, 2023
cecd221
go.mod: upgrade github.com/karalabe/usb to fix build warning (#27698)
fjl Jul 11, 2023
0b1f97e
core/rawdb: support freezer batch read with no size limit (#27687)
rjl493456442 Jul 12, 2023
a426999
p2p/discover: filter bootnodes by netrestrict (#27701)
fjl Jul 12, 2023
80b7bfe
accounts, cmd/evm: fix docstrings (#27703)
cuishuang Jul 12, 2023
040a4a5
build: upgrade -dlgo version to Go 1.20.6 (#27708)
sandakersmann Jul 12, 2023
714f759
eth, miner: rm redundant type declare (#27713)
jsvisa Jul 13, 2023
4f0d8f0
graphql: fix race in withdrawals test (#27706)
s1na Jul 13, 2023
10a136a
internal: early exit if tx for getTxReceipt not found (#27712)
jsvisa Jul 13, 2023
5d03504
internal/ethapi: add more testcase for GetTransactionReceipt (#27527)
jsvisa Jul 13, 2023
1e069cf
eth/tracers: add ReturnData in the tracer's response (#27704)
jsvisa Jul 13, 2023
517ac88
eth/tracers/native: panic on memory read in prestateTracer (#27691)
ryanschneider Jul 13, 2023
e1fe6bc
go.sum: go mod tidy (#27717)
ucwong Jul 13, 2023
c40ab6a
core/blockchain: fast to snap in comments (#27722)
ucwong Jul 14, 2023
60ecf48
cmd/bootnode, p2p: support for alternate mapped ports (#26359)
dbadoy Jul 14, 2023
13c0305
metrics: NilTimer should still run the function to be timed (#27723)
omerfirmak Jul 14, 2023
47b9f1b
cmd/geth: use automaxprocs to apply cpu quota correctly (#27506)
jsvisa Jul 14, 2023
34d5072
metrics: NilResettingTimer.Time should execute the timed function (#2…
omerfirmak Jul 14, 2023
00408f7
accounts/abi/bind/backends: fix goroutine leak in unit test (#27705)
yuriechan Jul 15, 2023
d233b6b
core: replace instances of 'suicide' with 'selfdestruct' to improve …
jwasinger Jul 15, 2023
99e000c
core/vm: use types.EmptyCodeHash (#27729)
ucwong Jul 15, 2023
b058cf4
core, tests: EIP-4844 transaction processing logic (#27721)
holiman Jul 15, 2023
988d84a
core/state, core/vm: implement EIP 6780 (#27189)
jwasinger Jul 17, 2023
d4d88f9
les: remove obsolete code related to PoW header syncing (#27737)
zsfelfoldi Jul 17, 2023
e86ad52
beacon/engine, eth/catalyst: EIP-4844 updates for the engine API (#27…
fjl Jul 18, 2023
7f756dc
cmd/evm/testdata: fix typos in docs (#27742)
pgrimaud Jul 18, 2023
a46f417
ethclient/gethclient: gofmt -s (#27762)
MariusVanDerWijden Jul 24, 2023
88f3d61
all: expose block number information to statedb (#27753)
rjl493456442 Jul 24, 2023
7a1fba1
cmd/geth: atomic types used (#27756)
ucwong Jul 24, 2023
a196f3e
cmd/devp2p: atomic types used (#27755)
ucwong Jul 24, 2023
2274a03
crypto/kzg4844: do lazy init in all ckzg funcs (#27679)
jtraglia Jul 24, 2023
37b952a
core/types: deepcopy ExcessDataGas, DataGasUsed (#27767)
darioush Jul 27, 2023
1662228
core/txpool/blobpool: 4844 blob transaction pool (#26940)
karalabe Jul 27, 2023
393d4db
core/types: add 4844 data gas fields in Receipt (#27743)
fjl Jul 27, 2023
0f4b21f
core/txpool/blobpool: fix a merge conflict from a package rename (#27…
karalabe Jul 27, 2023
57268f7
all: rename dataGas to blobGas (#27789)
karalabe Jul 27, 2023
d955653
core/types: put header fields in correct order (#27791)
MariusVanDerWijden Jul 27, 2023
8f2ae29
core/types: fix receipt blob fields marshaling (#27793)
marioevz Jul 28, 2023
95cc7bf
cmd/geth: import package catalyst once (#27803)
islishude Jul 31, 2023
5a4eba6
eth: conver if-else-if chain to tagged switch (#27816)
islishude Jul 31, 2023
43a1a48
core: remove pointless check for excessBlobGas nilness (#27797)
jsvisa Jul 31, 2023
817553c
core, trie: track state change set with account address (#27815)
rjl493456442 Jul 31, 2023
4e97756
cmd/bootnode: defer udp connection close (#27787)
ZigBalthazar Jul 31, 2023
3ca92f7
all: replace data gas to blob gas in comments (#27825)
jsvisa Aug 1, 2023
852be57
tests: make tests pass on windows/386 (#27821)
holiman Aug 1, 2023
2fd77a6
core/txpool/blobpool: remove error log when finalized block is nil (#…
rjl493456442 Aug 1, 2023
7c95ebd
consensus/misc: move eip1559 into a package (#27828)
jsvisa Aug 1, 2023
f404a2d
cmd/evm: set ExcessBlobGas from env (#27796)
jsvisa Aug 1, 2023
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
5dff368
Merge commit '6c732766c892beefc7bd194fa7b715ce7a524974' into nitro-48…
Tristan-Wilson Aug 1, 2023
2216937
Merge commit '13166210c8ce9be46b11ec06ffc6cd39564e147e' into nitro-48…
Tristan-Wilson Aug 1, 2023
d04bde0
p2p: use atomic types (#27764)
ucwong Aug 1, 2023
6243a2f
Merge commit 'c7c84ca16c724edbf9adad10893de502a5ee7e0a' into nitro-48…
Tristan-Wilson Aug 1, 2023
6b8bd71
Fix args on upstream added call to NewBlockChain
Tristan-Wilson Aug 1, 2023
33fe3f3
Merge commit 'c537ace249805903f068c4c66b90558848b49a2f' into nitro-48…
Tristan-Wilson Aug 2, 2023
a0ac7a4
Merge commit '8eb0c2de769e852754958e2c5a5dd272617c207f' into nitro-48…
Tristan-Wilson Aug 2, 2023
8224bb9
build: upgrade -dlgo version to Go 1.20.7 (#27835)
sandakersmann Aug 2, 2023
0a8735c
Merge commit '950d5643b1926682ac7362df127d07f53e138350' into nitro-48…
Tristan-Wilson Aug 2, 2023
72be9b6
Merge commit '5ac4da3653d6f59a3b7e13dc2d3f71d02cfb35fc' into nitro-48…
Tristan-Wilson Aug 2, 2023
a07ccaf
Add ArbOSFormatVersion to new IsShanghai calls
Tristan-Wilson Aug 2, 2023
0f1170e
Revert "Fix batchCallBuffer timeout handling"
Tristan-Wilson Aug 3, 2023
951494e
Merge commit 'upstream/master:f3314bb6' into merge-v1.12.1-pre
Tristan-Wilson Aug 3, 2023
ec16028
Merge commit 'upstream/master:9cf9fae6' into merge-v1.12.1-pre
Tristan-Wilson Aug 3, 2023
824de03
Merge commit '4367ab499fd69def921cdbf2da547f1245edda52' into merge-v1…
Tristan-Wilson Aug 3, 2023
dfa78ab
Fix arb APIBackend TxPoolContent fn signatures
Tristan-Wilson Aug 3, 2023
47a9c63
Merge commit '8c288b528d3c9653c84321387e78687ed02134d7' into merge-v1…
Tristan-Wilson Aug 3, 2023
6e934f4
eth/protocols/snap: fix batch writer when resuming an aborted sync (#…
karalabe Aug 3, 2023
c1c3ddb
Merge commit 'upstream/master:6d2aeb43' into merge-v1.12.1-pre
Tristan-Wilson Aug 3, 2023
7b54577
Merge commit 'upstream/master:fd5d2ef0' into merge-v1.12.1-pre
Tristan-Wilson Aug 3, 2023
14095af
Merge commit '85b8d1c06c49342966cad2bbdc17d0dc28b66ffd' into merge-v1…
Tristan-Wilson Aug 3, 2023
0939328
Merge commit '59f7b289c329b5a56fa6f4e9acee64e504c4cc0d' into merge-v1…
Tristan-Wilson Aug 3, 2023
13602da
Fix pruner.go conflict with OpenStorageTrie params
Tristan-Wilson Aug 3, 2023
672eb4c
Merge commit 'ea782809f732da63f893f9ad6f104227fd1e606f' into merge-v1…
Tristan-Wilson Aug 3, 2023
fd0079f
Merge commit 'c866dfdc78fda6a9cd940970aa8c787dd4762205' into merge-v1…
Tristan-Wilson Aug 3, 2023
d0699bc
Merge commit '5d035043ea53a083215735d1f1e3c9e9bdfd91a7' into merge-v1…
Tristan-Wilson Aug 3, 2023
8eee2df
Merge commit '517ac886d45fc282f0f925f2c1a9d76eaadfcdfd' into merge-v1…
Tristan-Wilson Aug 3, 2023
c04b050
Merge commit 'd233b6b23af33dd64fda3237377130e3b5991ad8' into merge-v1…
Tristan-Wilson Aug 3, 2023
a9297fe
Merge commit 'upstream/master:b058cf454b' into merge-v1.12.1-pre
Tristan-Wilson Aug 3, 2023
57ff1d6
Merge commit 'upstream/master:d4d88f9bce' into merge-v1.12.1-pre
Tristan-Wilson Aug 4, 2023
5a9b2ba
Fix conflict in les/api_backend.go
Tristan-Wilson Aug 4, 2023
dcd5591
Merge commit 'upstream/master:88f3d61468' into merge-v1.12.1-pre
Tristan-Wilson Aug 4, 2023
624b187
Fix conflict with extra param on StateDB.Commit
Tristan-Wilson Aug 4, 2023
96f9e29
Merge commit '1662228ac68325b4024e0cb6a4ce7dde27eb4c2d' into merge-v1…
Tristan-Wilson Aug 4, 2023
1b79ff4
Merge commit '57268f7e6cb40e6d487514ba25a00c759bf4b2ec' into merge-v1…
Tristan-Wilson Aug 4, 2023
bb482ed
Merge commit 'upstream/master:7c95ebd63d8' into merge-v1.12.1-pre
Tristan-Wilson Aug 4, 2023
c352439
Merge remote-tracking branch 'upstream/master' into merge-v1.12.1-pre
Tristan-Wilson Aug 4, 2023
85ad2ed
Add gasUsedForL1 to expected receipt of new test
Tristan-Wilson Aug 4, 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
ccecfb5
Merge branch 'merge-v1.12.0' into merge-v1.12.1-pre
Tristan-Wilson Aug 11, 2023
c2a044a
jwtSecret is part of sharedConfig now
Tristan-Wilson Aug 11, 2023
2f907cb
Merge commit 'bb148dd342ba03ce40cf04295e193c94b9dda322' into merge-v1…
Tristan-Wilson Sep 27, 2023
585c459
Merge commit 'eeebb07c735e0f10ee0945d47fe85591dd9baec8' into merge-v1…
Tristan-Wilson Sep 27, 2023
48c0460
Merge tag 'v1.12.1' into merge-v1.12.1
Tristan-Wilson Sep 27, 2023
90dbc8e
Merge remote-tracking branch 'origin/master' into merge-v1.12.1
Tristan-Wilson Sep 27, 2023
c530059
eth/catalyst: set finalized block hash properly in dev mode (#27886)
jwasinger Aug 21, 2023
ca2d9a7
eth/catalyst: reset to current header if chain is rewound (in dev mod…
jsvisa Aug 25, 2023
2a53ab6
Merge remote-tracking branch 'origin/master' into merge-v1.12.1
Tristan-Wilson Oct 20, 2023
627e5f3
Recreate statedb after Commit() in RecordingDb
Tristan-Wilson Oct 27, 2023
93b7de9
Merge remote-tracking branch 'origin/master' into merge-v1.12.1
Tristan-Wilson Oct 31, 2023
4332b35
Merge branch 'master' into merge-v.1.12.1-fastcache-fix-update
magicxyyz Nov 1, 2023
bafe56a
reset fastcache in Database.Close
magicxyyz Nov 1, 2023
614c728
update comment
magicxyyz Nov 1, 2023
4b27832
Merge pull request #267 from OffchainLabs/merge-v.1.12.1-fastcache-fi…
Tristan-Wilson Nov 1, 2023
890cbca
Merge remote-tracking branch 'origin/master' into merge-v1.12.1
Tristan-Wilson Nov 2, 2023
be1fd29
PR fixes
Tristan-Wilson Nov 13, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
9 changes: 0 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,15 +123,6 @@ use separate accounts for play and real money. Unless you manually move
accounts, `geth` will by default correctly separate the two networks and will not make any
accounts available between them.*

### Full node on the Rinkeby test network

Go Ethereum also supports connecting to the older proof-of-authority based test network
called [*Rinkeby*](https://www.rinkeby.io) which is operated by members of the community.

```shell
$ geth --rinkeby console
```

### Configuration

As an alternative to passing the numerous flags to the `geth` binary, you can also pass a
Expand Down
2 changes: 1 addition & 1 deletion accounts/abi/bind/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (
var (
// ErrNoCode is returned by call and transact operations for which the requested
// recipient contract to operate on does not exist in the state db or does not
// have any code associated with it (i.e. suicided).
// have any code associated with it (i.e. self-destructed).
ErrNoCode = errors.New("no contract code at given address")

// ErrNoPendingState is raised when attempting to perform a pending state action
Expand Down
4 changes: 2 additions & 2 deletions accounts/abi/bind/backends/simulated.go
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,7 @@ func (b *SimulatedBackend) SendTransaction(ctx context.Context, tx *types.Transa
// Get the last block
block, err := b.blockByHash(ctx, b.pendingBlock.ParentHash())
if err != nil {
return fmt.Errorf("could not fetch parent")
return errors.New("could not fetch parent")
}
// Check transaction validity
signer := types.MakeSigner(b.blockchain.Config(), block.Number(), block.Time())
Expand Down Expand Up @@ -815,7 +815,7 @@ func (b *SimulatedBackend) AdjustTime(adjustment time.Duration) error {
// Get the last block
block := b.blockchain.GetBlockByHash(b.pendingBlock.ParentHash())
if block == nil {
return fmt.Errorf("could not find parent")
return errors.New("could not find parent")
}

blocks, _ := core.GenerateChain(b.config, block, ethash.NewFaker(), b.database, 1, func(number int, block *core.BlockGen) {
Expand Down
1 change: 1 addition & 0 deletions accounts/abi/bind/backends/simulated_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ func TestAdjustTime(t *testing.T) {
func TestNewAdjustTimeFail(t *testing.T) {
testAddr := crypto.PubkeyToAddress(testKey.PublicKey)
sim := simTestBackend(testAddr)
defer sim.blockchain.Stop()

// Create tx and send
head, _ := sim.HeaderByNumber(context.Background(), nil) // Should be child's, good enough
Expand Down
16 changes: 8 additions & 8 deletions accounts/abi/bind/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ var (
if err != nil {
return *outstruct, err
}
{{range $i, $t := .Normalized.Outputs}}
{{range $i, $t := .Normalized.Outputs}}
outstruct.{{.Name}} = *abi.ConvertType(out[{{$i}}], new({{bindtype .Type $structs}})).(*{{bindtype .Type $structs}}){{end}}

return *outstruct, err
Expand All @@ -335,7 +335,7 @@ var (
}
{{range $i, $t := .Normalized.Outputs}}
out{{$i}} := *abi.ConvertType(out[{{$i}}], new({{bindtype .Type $structs}})).(*{{bindtype .Type $structs}}){{end}}

return {{range $i, $t := .Normalized.Outputs}}out{{$i}}, {{end}} err
{{end}}
}
Expand Down Expand Up @@ -378,7 +378,7 @@ var (
}
{{end}}

{{if .Fallback}}
{{if .Fallback}}
// Fallback is a paid mutator transaction binding the contract fallback function.
//
// Solidity: {{.Fallback.Original.String}}
Expand All @@ -392,16 +392,16 @@ var (
func (_{{$contract.Type}} *{{$contract.Type}}Session) Fallback(calldata []byte) (*types.Transaction, error) {
return _{{$contract.Type}}.Contract.Fallback(&_{{$contract.Type}}.TransactOpts, calldata)
}

// Fallback is a paid mutator transaction binding the contract fallback function.
//
//
// Solidity: {{.Fallback.Original.String}}
func (_{{$contract.Type}} *{{$contract.Type}}TransactorSession) Fallback(calldata []byte) (*types.Transaction, error) {
return _{{$contract.Type}}.Contract.Fallback(&_{{$contract.Type}}.TransactOpts, calldata)
}
{{end}}

{{if .Receive}}
{{if .Receive}}
// Receive is a paid mutator transaction binding the contract receive function.
//
// Solidity: {{.Receive.Original.String}}
Expand All @@ -415,9 +415,9 @@ var (
func (_{{$contract.Type}} *{{$contract.Type}}Session) Receive() (*types.Transaction, error) {
return _{{$contract.Type}}.Contract.Receive(&_{{$contract.Type}}.TransactOpts)
}

// Receive is a paid mutator transaction binding the contract receive function.
//
//
// Solidity: {{.Receive.Original.String}}
func (_{{$contract.Type}} *{{$contract.Type}}TransactorSession) Receive() (*types.Transaction, error) {
return _{{$contract.Type}}.Contract.Receive(&_{{$contract.Type}}.TransactOpts)
Expand Down
2 changes: 1 addition & 1 deletion accounts/abi/error.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ type Error struct {
str string

// Sig contains the string signature according to the ABI spec.
// e.g. error foo(uint32 a, int b) = "foo(uint32,int256)"
// e.g. error foo(uint32 a, int b) = "foo(uint32,int256)"
// Please note that "int" is substitute for its canonical representation "int256"
Sig string

Expand Down
2 changes: 1 addition & 1 deletion accounts/abi/reflect.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ func mapArgNamesToStructFields(argNames []string, value reflect.Value) (map[stri
structFieldName := ToCamelCase(argName)

if structFieldName == "" {
return nil, fmt.Errorf("abi: purely underscored output cannot unpack to struct")
return nil, errors.New("abi: purely underscored output cannot unpack to struct")
}

// this abi has already been paired, skip it... unless there exists another, yet unassigned
Expand Down
5 changes: 3 additions & 2 deletions accounts/abi/selector_parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
package abi

import (
"errors"
"fmt"
)

Expand All @@ -40,7 +41,7 @@ func isIdentifierSymbol(c byte) bool {

func parseToken(unescapedSelector string, isIdent bool) (string, string, error) {
if len(unescapedSelector) == 0 {
return "", "", fmt.Errorf("empty token")
return "", "", errors.New("empty token")
}
firstChar := unescapedSelector[0]
position := 1
Expand Down Expand Up @@ -110,7 +111,7 @@ func parseCompositeType(unescapedSelector string) ([]interface{}, string, error)

func parseType(unescapedSelector string) (interface{}, string, error) {
if len(unescapedSelector) == 0 {
return nil, "", fmt.Errorf("empty type")
return nil, "", errors.New("empty type")
}
if unescapedSelector[0] == '(' {
return parseCompositeType(unescapedSelector)
Expand Down
6 changes: 3 additions & 3 deletions accounts/abi/type.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ var (
func NewType(t string, internalType string, components []ArgumentMarshaling) (typ Type, err error) {
// check that array brackets are equal if they exist
if strings.Count(t, "[") != strings.Count(t, "]") {
return Type{}, fmt.Errorf("invalid arg type in abi")
return Type{}, errors.New("invalid arg type in abi")
}
typ.stringKind = t

Expand Down Expand Up @@ -109,7 +109,7 @@ func NewType(t string, internalType string, components []ArgumentMarshaling) (ty
}
typ.stringKind = embeddedType.stringKind + sliced
} else {
return Type{}, fmt.Errorf("invalid formatting of array type")
return Type{}, errors.New("invalid formatting of array type")
}
return typ, err
}
Expand Down Expand Up @@ -348,7 +348,7 @@ func (t Type) pack(v reflect.Value) ([]byte, error) {
}
}

// requireLengthPrefix returns whether the type requires any sort of length
// requiresLengthPrefix returns whether the type requires any sort of length
// prefixing.
func (t Type) requiresLengthPrefix() bool {
return t.T == StringTy || t.T == BytesTy || t.T == SliceTy
Expand Down
7 changes: 4 additions & 3 deletions accounts/abi/unpack.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package abi

import (
"encoding/binary"
"errors"
"fmt"
"math"
"math/big"
Expand Down Expand Up @@ -125,7 +126,7 @@ func readBool(word []byte) (bool, error) {
// readFunctionType enforces that standard by always presenting it as a 24-array (address + sig = 24 bytes)
func readFunctionType(t Type, word []byte) (funcTy [24]byte, err error) {
if t.T != FunctionTy {
return [24]byte{}, fmt.Errorf("abi: invalid type in call to make function type byte array")
return [24]byte{}, errors.New("abi: invalid type in call to make function type byte array")
}
if garbage := binary.BigEndian.Uint64(word[24:32]); garbage != 0 {
err = fmt.Errorf("abi: got improperly encoded function type, got %v", word)
Expand All @@ -138,7 +139,7 @@ func readFunctionType(t Type, word []byte) (funcTy [24]byte, err error) {
// ReadFixedBytes uses reflection to create a fixed array to be read from.
func ReadFixedBytes(t Type, word []byte) (interface{}, error) {
if t.T != FixedBytesTy {
return nil, fmt.Errorf("abi: invalid type in call to make fixed byte array")
return nil, errors.New("abi: invalid type in call to make fixed byte array")
}
// convert
array := reflect.New(t.GetType()).Elem()
Expand Down Expand Up @@ -166,7 +167,7 @@ func forEachUnpack(t Type, output []byte, start, size int) (interface{}, error)
// declare our array
refSlice = reflect.New(t.GetType()).Elem()
} else {
return nil, fmt.Errorf("abi: invalid type in array/slice unpacking stage")
return nil, errors.New("abi: invalid type in array/slice unpacking stage")
}

// Arrays have packed elements, resulting in longer unpack steps.
Expand Down
13 changes: 7 additions & 6 deletions accounts/external/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
package external

import (
"errors"
"fmt"
"math/big"
"sync"
Expand Down Expand Up @@ -98,11 +99,11 @@ func (api *ExternalSigner) Status() (string, error) {
}

func (api *ExternalSigner) Open(passphrase string) error {
return fmt.Errorf("operation not supported on external signers")
return errors.New("operation not supported on external signers")
}

func (api *ExternalSigner) Close() error {
return fmt.Errorf("operation not supported on external signers")
return errors.New("operation not supported on external signers")
}

func (api *ExternalSigner) Accounts() []accounts.Account {
Expand Down Expand Up @@ -145,7 +146,7 @@ func (api *ExternalSigner) Contains(account accounts.Account) bool {
}

func (api *ExternalSigner) Derive(path accounts.DerivationPath, pin bool) (accounts.Account, error) {
return accounts.Account{}, fmt.Errorf("operation not supported on external signers")
return accounts.Account{}, errors.New("operation not supported on external signers")
}

func (api *ExternalSigner) SelfDerive(bases []accounts.DerivationPath, chain ethereum.ChainStateReader) {
Expand Down Expand Up @@ -242,14 +243,14 @@ func (api *ExternalSigner) SignTx(account accounts.Account, tx *types.Transactio
}

func (api *ExternalSigner) SignTextWithPassphrase(account accounts.Account, passphrase string, text []byte) ([]byte, error) {
return []byte{}, fmt.Errorf("password-operations not supported on external signers")
return []byte{}, errors.New("password-operations not supported on external signers")
}

func (api *ExternalSigner) SignTxWithPassphrase(account accounts.Account, passphrase string, tx *types.Transaction, chainID *big.Int) (*types.Transaction, error) {
return nil, fmt.Errorf("password-operations not supported on external signers")
return nil, errors.New("password-operations not supported on external signers")
}
func (api *ExternalSigner) SignDataWithPassphrase(account accounts.Account, passphrase, mimeType string, data []byte) ([]byte, error) {
return nil, fmt.Errorf("password-operations not supported on external signers")
return nil, errors.New("password-operations not supported on external signers")
}

func (api *ExternalSigner) listAccounts() ([]common.Address, error) {
Expand Down
14 changes: 7 additions & 7 deletions accounts/keystore/account_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,18 @@ import (
"github.com/ethereum/go-ethereum/accounts"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/log"
"golang.org/x/exp/slices"
)

// Minimum amount of time between cache reloads. This limit applies if the platform does
// not support change notifications. It also applies if the keystore directory does not
// exist yet, the code will attempt to create a watcher at most this often.
const minReloadInterval = 2 * time.Second

type accountsByURL []accounts.Account

func (s accountsByURL) Len() int { return len(s) }
func (s accountsByURL) Less(i, j int) bool { return s[i].URL.Cmp(s[j].URL) < 0 }
func (s accountsByURL) Swap(i, j int) { s[i], s[j] = s[j], s[i] }
// byURL defines the sorting order for accounts.
func byURL(a, b accounts.Account) bool {
return a.URL.Cmp(b.URL) < 0
}

// AmbiguousAddrError is returned when attempting to unlock
// an address for which more than one file exists.
Expand All @@ -67,7 +67,7 @@ type accountCache struct {
keydir string
watcher *watcher
mu sync.Mutex
all accountsByURL
all []accounts.Account
byAddr map[common.Address][]accounts.Account
throttle *time.Timer
notify chan struct{}
Expand Down Expand Up @@ -194,7 +194,7 @@ func (ac *accountCache) find(a accounts.Account) (accounts.Account, error) {
default:
err := &AmbiguousAddrError{Addr: a.Address, Matches: make([]accounts.Account, len(matches))}
copy(err.Matches, matches)
sort.Sort(accountsByURL(err.Matches))
slices.SortFunc(err.Matches, byURL)
return accounts.Account{}, err
}
}
Expand Down
7 changes: 4 additions & 3 deletions accounts/keystore/account_cache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,20 @@
package keystore

import (
"errors"
"fmt"
"math/rand"
"os"
"path/filepath"
"reflect"
"sort"
"testing"
"time"

"github.com/cespare/cp"
"github.com/davecgh/go-spew/spew"
"github.com/ethereum/go-ethereum/accounts"
"github.com/ethereum/go-ethereum/common"
"golang.org/x/exp/slices"
)

var (
Expand Down Expand Up @@ -74,7 +75,7 @@ func waitForAccounts(wantAccounts []accounts.Account, ks *KeyStore) error {
select {
case <-ks.changes:
default:
return fmt.Errorf("wasn't notified of new accounts")
return errors.New("wasn't notified of new accounts")
}
return nil
}
Expand Down Expand Up @@ -202,7 +203,7 @@ func TestCacheAddDeleteOrder(t *testing.T) {
// Check that the account list is sorted by filename.
wantAccounts := make([]accounts.Account, len(accs))
copy(wantAccounts, accs)
sort.Sort(accountsByURL(wantAccounts))
slices.SortFunc(wantAccounts, byURL)
list := cache.accounts()
if !reflect.DeepEqual(list, wantAccounts) {
t.Fatalf("got accounts: %s\nwant %s", spew.Sdump(accs), spew.Sdump(wantAccounts))
Expand Down
10 changes: 5 additions & 5 deletions accounts/keystore/keystore_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import (
"math/rand"
"os"
"runtime"
"sort"
"strings"
"sync"
"sync/atomic"
Expand All @@ -31,6 +30,7 @@ import (
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/crypto"
"github.com/ethereum/go-ethereum/event"
"golang.org/x/exp/slices"
)

var testSigData = make([]byte, 32)
Expand Down Expand Up @@ -397,19 +397,19 @@ func TestImportRace(t *testing.T) {
t.Fatalf("failed to export account: %v", acc)
}
_, ks2 := tmpKeyStore(t, true)
var atom uint32
var atom atomic.Uint32
var wg sync.WaitGroup
wg.Add(2)
for i := 0; i < 2; i++ {
go func() {
defer wg.Done()
if _, err := ks2.Import(json, "new", "new"); err != nil {
atomic.AddUint32(&atom, 1)
atom.Add(1)
}
}()
}
wg.Wait()
if atom != 1 {
if atom.Load() != 1 {
t.Errorf("Import is racy")
}
}
Expand All @@ -424,7 +424,7 @@ func checkAccounts(t *testing.T, live map[common.Address]accounts.Account, walle
for _, account := range live {
liveList = append(liveList, account)
}
sort.Sort(accountsByURL(liveList))
slices.SortFunc(liveList, byURL)
for j, wallet := range wallets {
if accs := wallet.Accounts(); len(accs) != 1 {
t.Errorf("wallet %d: contains invalid number of accounts: have %d, want 1", j, len(accs))
Expand Down
Loading