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

Cancun code merge [v1.13.0, v1.13.11] #2200

Merged
merged 430 commits into from
Mar 4, 2024
Merged
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
430 commits
Select commit Hold shift + click to select a range
8976a0c
trie: remove owner and binary marshaling from stacktrie (#28291)
holiman Oct 11, 2023
7776a32
ethdb/pebble: add level file metrics (#28271)
rjl493456442 Oct 11, 2023
a6deb2d
eth/fetcher: throttle tx fetches to 128KB responses (#28304)
karalabe Oct 11, 2023
13d1d42
eth/fetcher: fix typo
karalabe Oct 11, 2023
eeb5dc3
cmd, core: resolve scheme from a read-write database (#28313)
rjl493456442 Oct 11, 2023
0004c6b
accounts, cmd: fix typos (#28300)
vuittont60 Oct 11, 2023
d2c0bed
cmd/geth: fix failing test (#28322)
holiman Oct 12, 2023
0d45d72
params: release Geth v.1.13.3
karalabe Oct 12, 2023
2f66d7c
params: begin v1.13.4 release cycle
karalabe Oct 12, 2023
1cb3b6a
eth/protocols/snap: fix snap sync failure on empty storage range (#28…
rjl493456442 Oct 13, 2023
1f30cae
go.mod, internal/build: update Azure dependencies (#28329)
karalabe Oct 13, 2023
78c8e10
go.mod: update gnark lib to fix a malleability issue (#28333)
karalabe Oct 13, 2023
660cbe4
go.mod: update fastcache to latest (#28334)
karalabe Oct 13, 2023
ed5da55
build: move version-info into checksum file (#28324)
holiman Oct 13, 2023
31b566f
go.mod: update AWS APIs to latest heads (#28332)
karalabe Oct 13, 2023
f62c58f
trie: make rhs-proof align with last key in range proofs (#28311)
holiman Oct 13, 2023
425cb6f
go.mod: pull in the latest cloudflare API libs (#28336)
karalabe Oct 13, 2023
509a64f
cmd, core, ethdb: enable Pebble on 32 bits and OpenBSD too (#28335)
karalabe Oct 13, 2023
4632b7b
tests: update execution-spec-tests to 1.0.5 (#28337)
holiman Oct 16, 2023
2e478aa
eth/fetcher: only make noise big mismatches (#28356)
karalabe Oct 16, 2023
a5544d3
fix: broken url link (#28342)
phenix3443 Oct 17, 2023
8b99ad4
internal/ethapi: fix codehash lookup in eth_getProof (#28357)
holiman Oct 17, 2023
00c6383
cmd: fix typos (#28323)
xiaolou86 Oct 17, 2023
667966c
eth/fetcher: fix fetcher timeout (#28220)
MariusVanDerWijden Oct 17, 2023
3f907d6
params: release Geth v1.13.4
karalabe Oct 17, 2023
aeb0abf
params: begin v1.13.5 release cycle
karalabe Oct 17, 2023
1b1611b
core, trie, eth: refactor stacktrie constructor (#28350)
rjl493456442 Oct 17, 2023
1f11d2d
ethclient: ensure the close of canceled context (#28349)
keroro520 Oct 17, 2023
f62502e
internal/ethapi, accounts/abi/bind: use `errors.Is` for error compari…
bnovil Oct 17, 2023
b85c860
api/bind: add CallOpts.BlockHash to allow calling contracts at a spec…
ajsutton Oct 17, 2023
20d5256
core/chain_makers: add SetParentBeaconRoot(..) to chain makers (#28252)
lightclient Oct 17, 2023
d782dc2
tests/fuzzers/les: fix crash in fuzzer (#28362)
MariusVanDerWijden Oct 17, 2023
da55b23
eth/fetcher: downgrade stale txs log from warn to debug (#28364)
lightclient Oct 17, 2023
d10a2f6
tests/fuzzers: update fuzzers to be based on go-native fuzzing (#28352)
MariusVanDerWijden Oct 18, 2023
ec1a050
rpc: increase timeout in TestClientWebsocketPing (#28371)
bnovil Oct 19, 2023
4d3c0d4
eth/filters: fix flaky test TestPendingTxFilterDeadlock (#28376)
s1na Oct 19, 2023
cd29535
crypto/blake2b: put architecture-dependent features behind build-tag …
MariusVanDerWijden Oct 19, 2023
c1d5a01
core/state, tests: fix memory leak via fastcache (#28387)
holiman Oct 20, 2023
a6a0ae4
crypto/kzg4844: use the new trusted setup file and format (#28383)
kevaundray Oct 22, 2023
ffc6a0f
event: fix Resubscribe deadlock when unsubscribing after inner sub en…
Inphi Oct 22, 2023
6c69821
core/state/pruner: track number of skipped items during state pruning…
aaronbuchwald Oct 23, 2023
54f35c6
ethstats: fix bug in block reporting (#28398)
Oct 23, 2023
062598b
core/blockchain: fix typos and grammar (#28295)
hyunchel Oct 23, 2023
3853f50
trie/triedb/pathdb, core/rawdb: enhance error message in freezer (#28…
rjl493456442 Oct 23, 2023
43e6a3c
graphql: return error if block from>to (#28393)
jsvisa Oct 23, 2023
ab04aeb
core, eth, trie: filter out boundary nodes and remove dangling nodes …
rjl493456442 Oct 23, 2023
a8617c6
txpool/legacypool: remove already known error in legacypool (#28400)
nothingmin Oct 23, 2023
300df87
cmd/evm: make t8ntool handle transaction decoding errors better (#28397)
holiman Oct 25, 2023
96b7503
trie: use explicit errors in stacktrie (instead of panic) (#28361)
holiman Oct 25, 2023
f7b62e5
graphql: logs return error if from block > to (#28412)
jsvisa Oct 25, 2023
d8c6ae0
rpc: use correct stringer-method for serializing BlockNumberOrHash (#…
ajsutton Oct 25, 2023
58ae1df
cmd/geth: test for logging-output (#28373)
holiman Oct 25, 2023
abe3fca
graphql: fix an issue of nil pointer panic (#28416)
jsvisa Oct 26, 2023
4cbca51
core, cmd/geth: add --override.* flags to geth init (#28407)
gballet Oct 27, 2023
2d7dba0
graphql: always set content-type to application/json (#28417)
jsvisa Oct 27, 2023
233db64
all: make vendored copy of reexec (#28382)
holiman Oct 27, 2023
ea2e66a
trie/triedb/pathdb: improve dirty node flushing trigger (#28426)
rjl493456442 Oct 31, 2023
447945e
core/rawdb: add logging and fix comments around AncientRange function…
jakub-freebit Oct 31, 2023
bc42e88
core: add basic chain history support in GenerateChain (#28428)
fjl Oct 31, 2023
285202a
cmd/evm: add --run option to blocktest command (#28421)
marioevz Oct 31, 2023
f4ac548
ethdb/pebble: cap memory table size as maxMemTableSize-1 (#28444)
rjl493456442 Oct 31, 2023
a3be381
core/vm: performance tweak of `OpCode.String()` (#28453)
lmittmann Nov 2, 2023
b1cec85
eth/tracers: add position field for callTracer logs (#28389)
alvarosevilla95 Nov 3, 2023
e91cdb4
ethclient: fix forwarding 1559 gas fields (#28462)
karalabe Nov 3, 2023
51b5ad3
.travis: enable cross building to macos arm64 (#28474)
karalabe Nov 7, 2023
97ae324
travis: use newer builder image (#28475)
karalabe Nov 7, 2023
f20b334
eth/filters: eth_getLogs fast exit for invalid block range (#28386)
jsvisa Nov 7, 2023
4d9f3cd
eth: set networkID to chainID by default (#28250)
MariusVanDerWijden Nov 7, 2023
470dba8
core/vm: set basefee to 0 internally on eth_call (#28470)
karalabe Nov 8, 2023
7ea860d
graphql: type of yParity from Long to BigInt (#28456)
jsvisa Nov 9, 2023
b77a9b1
cmd/geth: more testcases for logging (#28501)
holiman Nov 9, 2023
f7dde2a
ethdb/pebble: add `Errorf` function to panicLogger (#28491)
mcdee Nov 9, 2023
e38b9f1
eth/filters: exit early if topics-filter has more than 4 topics (#28494)
jsvisa Nov 10, 2023
326fa00
core/rawdb: fsync the index file after each freezer write (#28483)
rjl493456442 Nov 10, 2023
2f4833b
cmd/evm: allow state dump regardless if test passes in statetest (#28…
sorpaas Nov 10, 2023
ce5a480
ethclient: add empty/nonexist account testcase for eth_getProof RPC (…
jsvisa Nov 10, 2023
49b2c5f
build: upgrade -dlgo version to Go 1.21.4 (#28505)
sandakersmann Nov 10, 2023
f265cc2
cmd/geth: remove some whitespace in code and comments (#28148)
jsvisa Nov 10, 2023
916d6a4
params: release Geth v1.15.5
karalabe Nov 14, 2023
fa8d398
cmd, core, trie: verkle-capable `geth init` (#28270)
gballet Nov 14, 2023
e803ef0
eth/tracers/js: fix isPush for push0 (#28520)
s1na Nov 14, 2023
24d4622
trie: spelling - fix comments in hasher (#28507)
sysvm Nov 14, 2023
2391fbc
tests/fuzzers: move fuzzers into native packages (#28467)
holiman Nov 14, 2023
c5b7cfa
tests: skip tests on windows 32bit CI (#28521)
holiman Nov 14, 2023
984f826
cmd/geth: more special cases logging tests (#28527)
jwasinger Nov 15, 2023
2814ee0
accounts,cmd,console,les,metrics: refactor some errors checked by (S…
BabyHalimao Nov 15, 2023
b9504e4
miner: run tests in parallel (#28506)
estensen Nov 15, 2023
fcc7ae1
internal/jsre/deps: fix typo in jsdoc (#28511)
aliening Nov 15, 2023
db7895d
accounts/abi: improve readability of method-to-string conversion (#2…
Halimao Nov 15, 2023
a75a2d6
all: replace some cases of strings.SplitN with strings.Cut (#28446)
estensen Nov 15, 2023
5bf8769
ethdb/memorydb, trie: reduced allocations (#28473)
holiman Nov 15, 2023
8b78d6a
Dockerfile: update Go to 1.21 (#28538)
estensen Nov 17, 2023
c8a2202
cmd/evm: validate blockchain tests poststate account storage (#28443)
danceratopz Nov 17, 2023
77cb21d
signer: run tests in parallel (#28536)
estensen Nov 20, 2023
a737482
accounts, cmd: fix typos (#28526)
levisyin Nov 20, 2023
14a1e96
core/txpool/legacypool: respect nolocals-setting (#28435)
jp-imx Nov 20, 2023
460cc16
cmd: run tests in parallel (#28546)
estensen Nov 20, 2023
661bd45
core/state/snapshot: print correct error from trie iterator (#28560)
rjl493456442 Nov 21, 2023
ad16f11
cmd/evm: capitalize evm commands (#28569)
tmelhao Nov 21, 2023
525db7b
accounts/abi: context info on unpack-errors (#28529)
levisyin Nov 21, 2023
146e8d9
core, trie, rpc: speed up tests (#28461)
MariusVanDerWijden Nov 21, 2023
6489a0d
ethdb/pebble: don't double-close iterator inside pebbleIterator (#28566)
magicxyyz Nov 21, 2023
e9f59b5
eth/filters: reuse error msg for invalid block range (#28479)
ucwong Nov 21, 2023
347fecd
core/types: make 'v' optional for DynamicFeeTx and BlobTx (#28564)
marioevz Nov 22, 2023
d6cea48
rpc: improve performance of subscription notification encoding (#28328)
jsvisa Nov 22, 2023
104dbf7
cmd/utils: validate pre-existing genesis in --dev mode (#28468)
jwasinger Nov 22, 2023
3cfcd25
cmd/geth: add support for --dev flag in dumpgenesis (#28463)
jwasinger Nov 22, 2023
5ff929c
les/vflux: run tests in parallel (#28524)
estensen Nov 22, 2023
d468c33
cmd/{geth,utils}: add cmd to export preimages in snap enumeration ord…
gballet Nov 22, 2023
63127f5
cmd/geth: fix build error (#28585)
fjl Nov 22, 2023
eec37e3
cmd/devp2p/internal/ethtest: undo debug-hack (#28588)
holiman Nov 23, 2023
d76efbb
params: update discV5 bootnodes (#28562)
cortze Nov 23, 2023
bdf5e38
cmd, les, tests: remove light client code (#28586)
MariusVanDerWijden Nov 23, 2023
2a20130
eth, internal/ethapi: drop some weird indirection (#28597)
karalabe Nov 24, 2023
333dd95
trie: fix random test generator early terminate (#28590)
weiihann Nov 25, 2023
1e28e0b
eth/gasestimator, internal/ethapi: move gas estimator out of rpc (#28…
karalabe Nov 27, 2023
5b57727
go.mod: update uint256 to v1.2.4 (#28612)
holiman Nov 27, 2023
71817f3
eth/catalyst, eth/downloader: expose more sync information (#28584)
rjl493456442 Nov 28, 2023
58297e3
light: remove package light(#28614)
lightclient Nov 28, 2023
63979bc
cmd/evm, core/state: fix post-exec dump of state (statetests, blockch…
holiman Nov 28, 2023
248dc50
ethereum: remove TODO comment about subscription (#28609)
sbs2001 Nov 28, 2023
bbc5db8
eth/tracers/js: fix type inconsistencies (#28488)
s1na Nov 28, 2023
34dcd74
crypto/secp256k1: fix 32-bit tests when CGO_ENABLED=0 (#28602)
gballet Nov 28, 2023
e0c7ad0
consensus: verify the nonexistence of shanghai- and cancun-specific h…
jakub-freebit Nov 28, 2023
61b844f
eth/gasestimator: allow slight estimation error in favor of less iter…
karalabe Nov 28, 2023
28e7371
all: replace log15 with slog (#28187)
jwasinger Nov 29, 2023
ab0eb46
core/state: make stateobject.create selfcontain (#28459)
rjl493456442 Nov 29, 2023
fa0df76
trie/triedb/hashdb: take lock around access to dirties cache (#28542)
magicxyyz Nov 30, 2023
f2b509d
accounts/abi/bind: fix typo (#28630)
BorkBorked Dec 1, 2023
dd0d0a2
slog: faster and less memory-consumption (#28621)
holiman Dec 1, 2023
5fb8ebc
eth/tracers: tx-level state in debug_traceCall (#28460)
jsvisa Dec 1, 2023
6e488c2
cmd/evm: fix Env struct json tag (#28635)
ddl-hust Dec 4, 2023
f04e5bd
accounts/abi/bind: fixed typos (#28634)
BorkBorked Dec 4, 2023
70fd0b6
eth/fetcher: fix invalid tracking of received at time for block (#28637)
manav2401 Dec 4, 2023
2e13b01
accounts: run tests in parallel (#28544)
estensen Dec 4, 2023
3dc071e
eth/tracers/logger: make structlog/json-log stack hex again (#28628)
holiman Dec 5, 2023
b8d44ed
log: remove lazy, remove unused interfaces, unexport methods (#28622)
holiman Dec 5, 2023
69576df
.github: use github actions to run 32-bit linux tests (#28549)
gballet Dec 5, 2023
55b483d
ethdb/pebble: remove a dependency (#28627)
MariusVanDerWijden Dec 6, 2023
a113497
tests/fuzzers/bls12381: deactivate BLS fuzzer when CGO_ENABLED=0 (#28…
gballet Dec 7, 2023
77c4bbc
build: upgrade -dlgo version to Go 1.21.5 (#28648)
sandakersmann Dec 7, 2023
5a45e7a
rpc: fix ns/µs mismatch in metrics (#28649)
holiman Dec 8, 2023
1048e2d
cmd/evm: fix dump after state-test exec (#28650)
holiman Dec 8, 2023
fff843c
beacon/light: add CommitteeChain (#27766)
zsfelfoldi Dec 8, 2023
d98d70f
cmd/utils, eth: disallow invalid snap sync / snapshot flag combos (#2…
karalabe Dec 8, 2023
e206d3f
trie: remove inconsistent trie nodes during sync in path mode (#28595)
rjl493456442 Dec 8, 2023
a3ca1b2
cmd/utils: fix HTTPHost, WSHost flag priority (#28669)
weiihann Dec 12, 2023
17c2b3c
eth/protocols/eth: fix typos in comments (#28652)
guerrierindien Dec 12, 2023
81fd1b3
core/txpool : small cleanup refactors (#28654)
ucwong Dec 12, 2023
b2ced97
eth/fetcher, eth/gasestimator: fix typos in comments (#28675)
Ursulafe Dec 13, 2023
0f74aad
all: fix typos in comments (#28662)
nnsW3 Dec 13, 2023
f1794ba
miner: eliminate the dead loop possibility for `newWorkLoop` and `mai…
FletcherMan Dec 15, 2023
edc864f
all: fix typos in comments (#28682)
bodhi-crypo Dec 18, 2023
5b22a47
p2p/discover: add liveness check in collectTableNodes (#28686)
fjl Dec 18, 2023
02766d3
internal/flags: add missing flag types for auto-env-var generation (#…
sebastianst Dec 18, 2023
05bbc56
cmd/evm: default to mirror mainnet forks enabled (#28691)
jwasinger Dec 18, 2023
553bafc
cmd/evm, cmd/clef, cmd/bootnode: fix / unify logging (#28696)
holiman Dec 18, 2023
c18c5c3
cmd/evm: t8n support custom tracers (#28557)
jsvisa Dec 18, 2023
a18b845
params: release go-ethereum v1.13.6 stable
fjl Dec 18, 2023
5ba3d57
Merge branch 'release/1.13' into release-1.13.6
fjl Dec 18, 2023
da6cdaf
all: release go-ethereum v1.13.6
fjl Dec 18, 2023
4410c14
params: begin v1.13.7 release cycle
fjl Dec 18, 2023
54a400e
internal/ethapi: ethSendTransaction check baseFee (#27834)
jsvisa Dec 18, 2023
cd58897
core/rawdb: implement size reporting for live items in freezer_table …
wangyifan Dec 18, 2023
952b343
build: make linter emit output (#28704)
holiman Dec 19, 2023
5a9dda6
.travis: set lower GOGC value (#28705)
holiman Dec 19, 2023
435bed5
ci: disable lint on travis (#28706)
holiman Dec 19, 2023
0cc192b
build(deps): bump golang.org/x/crypto from 0.15.0 to 0.17.0 (#28702)
dependabot[bot] Dec 19, 2023
3fd5688
params: go-ethereum v1.13.7 stable
fjl Dec 19, 2023
c3d9ca6
all: release go-ethereum v1.13.7
fjl Dec 19, 2023
9258a44
params: begin go-ethereum v1.13.8 release cycle
fjl Dec 19, 2023
7124057
internal/build: fix crash in MustRunCommandWithOutput (#28709)
fjl Dec 20, 2023
d3452a2
accounts: properly close managed wallets when closing manager (#28710)
holiman Dec 20, 2023
8c2d455
build: upgrade to golangci-lint v1.55.2 (#28712)
fjl Dec 20, 2023
577be37
cmd/devp2p: update eth/snap protocol test suites for PoS (#28340)
lightclient Dec 20, 2023
cca9479
core, cmd, trie: fix the condition of pathdb initialization (#28718)
rjl493456442 Dec 21, 2023
f469470
core/rawdb: improve state scheme checking (#28724)
rjl493456442 Dec 22, 2023
904a278
params: go-ethereum v1.13.8 stable
holiman Dec 22, 2023
b20b4a7
all: release go-ethereum v1.13.8
holiman Dec 22, 2023
8d03918
params: begin v1.13.9 release cycle
holiman Dec 22, 2023
d2e3cb8
core/state: logic equivalence for GetCodeHash (#28733)
cygaar Dec 26, 2023
b5b7003
tests: add currentExcessBlobGas to state tests (#28735)
marioevz Dec 28, 2023
09e0208
accounts,signer: fix typos in comments (#28730)
taeguk Dec 28, 2023
76a5474
build: add support for ubuntu 23.10 (mantic minotaur) (#28728)
holiman Dec 30, 2023
c053eb7
log: avoid setting default slog logger in init (#28747)
fjl Dec 30, 2023
33c94ef
cmd/evm: fix link in README.md (#28755)
ddl-hust Jan 2, 2024
2365d77
core/vm: update comments to match eip number (#28743)
darioush Jan 2, 2024
0b471c3
cmd/evm: Fix blob-gas-used on invalid transactions in t8n (#28734)
marioevz Jan 3, 2024
99eb49e
internal/flags: update copyright year to 2024 (#28760)
sandakersmann Jan 4, 2024
e3eeb64
ethclient: simplify error handling in TransactionReceipt (#28748)
rosenk Jan 4, 2024
877d094
eth/downloader, eth/filters: use defer to call Unsubscribe (#28762)
ucwong Jan 5, 2024
07b17f9
log: emit error level string as "error", not "eror" (#28774)
jwasinger Jan 8, 2024
e7fa158
eth/filters: fix early Unsubscribe of log events (#28769)
ucwong Jan 8, 2024
f29520f
cmd/devp2p/internal/ethtest: fix typos in comments (#28772)
vuittont60 Jan 8, 2024
cfff3cb
params, core/forkid: schedule cancun fork on goerli (#28719)
MariusVanDerWijden Jan 8, 2024
1010a79
cmd/geth: make it possible to autopilot removedb (#28725)
holiman Jan 9, 2024
d0edc5a
accounts/abi: fix bigInt topic encoding (#28764)
rjl493456442 Jan 9, 2024
9e018ce
cmd/geth: update log test data (#28780)
jwasinger Jan 9, 2024
2d08c99
ethclient/simulated: implement new sim backend (#28202)
MariusVanDerWijden Jan 10, 2024
4f82531
params: go-ethereum v1.13.9 stable
fjl Jan 10, 2024
dd938d1
Merge branch 'master' into release/1.13
fjl Jan 10, 2024
daa2e5d
params: begin v1.13.10 release cycle
fjl Jan 10, 2024
a162091
version: release v1.13.10 to fix bad tag
karalabe Jan 11, 2024
bc0be1b
Merge branch 'master' into release/1.13
karalabe Jan 11, 2024
2e8b118
params: begin v1.13.11 release cycle
karalabe Jan 11, 2024
5c2de7f
docs: fix badge in README (#28796)
drstevenbrule Jan 12, 2024
6e235c0
eth: minor change of config-accessor (#28782)
0xmountaintop Jan 12, 2024
ae4ea04
cmd: fix typos (#28798)
vuittont60 Jan 12, 2024
7280a5b
build: fix typo in comment (#28800)
drstevenbrule Jan 12, 2024
065f82a
accounts, ethclient: minor tweaks on the new simulated backend (#28799)
karalabe Jan 12, 2024
43ba7d6
cmd/geth, internal/debug: get rid of by-default log config (#28801)
karalabe Jan 12, 2024
a608c0a
cmd/devp2p/internal/ethtest: skip large tx test on github build (#28794)
s1na Jan 12, 2024
1335ba5
p2p/dnsdisc: use strings.Cut over strings.IndexByte (#28787)
ddl-hust Jan 12, 2024
407f779
internal/ethapi: avoid using pending for defaults (#28784)
s1na Jan 12, 2024
29b7355
core/state: unexport GetOrNewStateObject (#28804)
darioush Jan 14, 2024
1485814
cmd/rlpdump: add -pos flag, displaying byte positions (#28785)
fjl Jan 14, 2024
89ccc68
tests: update reference tests (#28778)
holiman Jan 15, 2024
7596db5
ethclient: add tests for TransactionInBlock (#28283)
hyunchel Jan 15, 2024
18e154e
eth: fix potential hang in waitSnapExtension (#28744)
niuxiaojie81 Jan 15, 2024
9ee6809
core/txpool/blobpool: fix typos
alfiedotwtf Jan 15, 2024
566754c
acounts/usbwallet: fix typo (#28815)
bodhi-crypo Jan 15, 2024
d4f25b4
tests: more verbosity if block decoding fails (#28814)
holiman Jan 16, 2024
c66ca8b
tracer: use proper base fee in tests (#28775)
palango Jan 16, 2024
2e2e89c
miner: fix typo in payload_building_test.go (#28825)
Thabokani Jan 17, 2024
e5d5e09
internal/ethapi: handle blobs in API methods (#28786)
s1na Jan 17, 2024
830f3c7
eth/filters: reset filter.begin in BenchmarkFilters (#28830)
darioush Jan 18, 2024
0e93da3
crypto/kzg4844: add helpers for versioned blob hashes (#28827)
fjl Jan 19, 2024
1c48829
ethclient: apply accessList field in toCallArg (#28832)
colinlyguo Jan 19, 2024
f55a10b
params, core/forkid: enable cancun on sepolia and holesky (#28834)
MariusVanDerWijden Jan 20, 2024
78a3c32
core, core/rawdb, eth/sync: no tx indexing during snap sync (#28703)
rjl493456442 Jan 22, 2024
6a724b9
docs: remove reference to being official (#28858)
holiman Jan 23, 2024
19d9977
go.{mod,sum}: upgrade go-ole to support arm64 (#28859)
gballet Jan 23, 2024
819a497
core: fix genesis setup in benchReadChain (#28856)
darioush Jan 23, 2024
a5a4fa7
all: use uint256 in state (#28598)
holiman Jan 23, 2024
4c8d92d
build: upgrade -dlgo version to Go 1.21.6 (#28836)
sandakersmann Jan 23, 2024
c89a3da
core/state/snapshot: use AddHash/ContainHash instead of Hasher interf…
MariusVanDerWijden Jan 23, 2024
2dc7477
core/vm: fix misleading comment (#28860)
trocher Jan 23, 2024
98eaa57
eth/catalyst: add timestamp checks to fcu and new payload and improve…
lightclient Jan 23, 2024
542c861
core/txpool, eth/catalyst: fix racy simulator due to txpool backgroun…
karalabe Jan 23, 2024
6b0de79
core: move tx indexer to its own file (#28857)
rjl493456442 Jan 23, 2024
a8a8758
eth/catalyst: prefix payload id with version (#28246)
lightclient Jan 24, 2024
765f290
ethclient: fix flaky test (#28864)
rjl493456442 Jan 24, 2024
99dc3fe
params: go-ethereum v1.13.11 stable
holiman Jan 24, 2024
8f7eb9c
all: release go-ethereum v1.13.11 (#28868)
holiman Jan 24, 2024
a1c2491
Merge tag 'v1.13.11' from go-ethereum
buddh0 Feb 2, 2024
9ec1223
Cancun code merge v1.13.0 v1.13.11 fix ci (#29)
buddh0 Feb 21, 2024
a501442
Merge branch 'develop' into cancun_code_merge_v1.13.0_v1.13.11
buddh0 Feb 21, 2024
2ecffd3
Merge branch 'develop' into cancun_code_merge_v1.13.0_v1.13.11
buddh0 Feb 26, 2024
ba58f57
upstream: code review fix (#31)
buddh0 Feb 27, 2024
93d652b
upstream: more code review fix (#33)
buddh0 Mar 1, 2024
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
  •  
  •  
  •  
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,5 @@ cmd/geth/__debug_bin
cmd/bootnode/bootnode
graphql/__debug_bin
logs/

tests/spec-tests/
35 changes: 7 additions & 28 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,6 @@ jobs:
- azure-osx

include:
# This builder only tests code linters on latest version of Go
- stage: lint
os: linux
dist: bionic
go: 1.21.x
env:
- lint
git:
submodules: false # avoid cloning ethereum/tests
script:
- go run build/ci.go lint

# These builders create the Docker sub-images for multi-arch push and each
# will attempt to push the multi-arch image if they are the last builder
- stage: build
Expand Down Expand Up @@ -66,7 +54,6 @@ jobs:
go: 1.21.x
env:
- azure-linux
- GO111MODULE=on
git:
submodules: false # avoid cloning ethereum/tests
addons:
Expand Down Expand Up @@ -97,46 +84,42 @@ jobs:
- stage: build
if: type = push
os: osx
osx_image: xcode14.2
go: 1.21.x
env:
- azure-osx
- GO111MODULE=on
git:
submodules: false # avoid cloning ethereum/tests
script:
- go run build/ci.go install -dlgo
- go run build/ci.go archive -type tar -signer OSX_SIGNING_KEY -signify SIGNIFY_KEY -upload gethstore/builds
- go run build/ci.go install -dlgo -arch arm64
- go run build/ci.go archive -arch arm64 -type tar -signer OSX_SIGNING_KEY -signify SIGNIFY_KEY -upload gethstore/builds

# These builders run the tests
- stage: build
os: linux
arch: amd64
dist: bionic
go: 1.21.x
env:
- GO111MODULE=on
script:
- go run build/ci.go test $TEST_PACKAGES
- travis_wait 30 go run build/ci.go test $TEST_PACKAGES

- stage: build
if: type = pull_request
os: linux
arch: arm64
dist: bionic
go: 1.20.x
env:
- GO111MODULE=on
script:
- go run build/ci.go test $TEST_PACKAGES
- travis_wait 30 go run build/ci.go test $TEST_PACKAGES

- stage: build
os: linux
dist: bionic
go: 1.20.x
env:
- GO111MODULE=on
script:
- go run build/ci.go test $TEST_PACKAGES
- travis_wait 30 go run build/ci.go test $TEST_PACKAGES

# This builder does the Ubuntu PPA nightly uploads
- stage: build
Expand All @@ -146,7 +129,6 @@ jobs:
go: 1.21.x
env:
- ubuntu-ppa
- GO111MODULE=on
git:
submodules: false # avoid cloning ethereum/tests
addons:
Expand All @@ -170,7 +152,6 @@ jobs:
go: 1.21.x
env:
- azure-purge
- GO111MODULE=on
git:
submodules: false # avoid cloning ethereum/tests
script:
Expand All @@ -182,8 +163,6 @@ jobs:
os: linux
dist: bionic
go: 1.21.x
env:
- GO111MODULE=on
script:
- go run build/ci.go test -race $TEST_PACKAGES
- travis_wait 30 go run build/ci.go test -race $TEST_PACKAGES

4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

GOBIN = ./build/bin
GO ?= latest
GORUN = env GO111MODULE=on go run
GORUN = go run
GIT_COMMIT=$(shell git rev-parse HEAD)
GIT_COMMIT_DATE=$(shell git log -n1 --pretty='format:%cd' --date=format:'%Y%m%d')

Expand Down Expand Up @@ -36,7 +36,7 @@ lint: ## Run linters.
$(GORUN) build/ci.go lint

clean:
env GO111MODULE=on go clean -cache
go clean -cache
rm -fr build/_workspace/pkg/ $(GOBIN)/*

# The devtools target installs tools required for 'go generate'.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ The goal of BNB Smart Chain is to bring programmability and interoperability to
BNB Smart Chain starts its development based on go-ethereum fork. So you may see many toolings, binaries and also docs are based on Ethereum ones, such as the name “geth”.

[![API Reference](
https://camo.githubusercontent.com/915b7be44ada53c290eb157634330494ebe3e30a/68747470733a2f2f676f646f632e6f72672f6769746875622e636f6d2f676f6c616e672f6764646f3f7374617475732e737667
https://pkg.go.dev/badge/github.com/ethereum/go-ethereum
)](https://pkg.go.dev/github.com/ethereum/go-ethereum?tab=doc)
[![Discord](https://img.shields.io/badge/discord-join%20chat-blue.svg)](https://discord.gg/z2VpC455eU)

Expand Down
66 changes: 54 additions & 12 deletions accounts/abi/abi.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import (
"errors"
"fmt"
"io"
"math/big"

"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/crypto"
Expand Down Expand Up @@ -246,24 +247,65 @@ func (abi *ABI) HasReceive() bool {
// revertSelector is a special function selector for revert reason unpacking.
var revertSelector = crypto.Keccak256([]byte("Error(string)"))[:4]

// panicSelector is a special function selector for panic reason unpacking.
var panicSelector = crypto.Keccak256([]byte("Panic(uint256)"))[:4]

// panicReasons map is for readable panic codes
// see this linkage for the details
// https://docs.soliditylang.org/en/v0.8.21/control-structures.html#panic-via-assert-and-error-via-require
// the reason string list is copied from ether.js
// https://github.com/ethers-io/ethers.js/blob/fa3a883ff7c88611ce766f58bdd4b8ac90814470/src.ts/abi/interface.ts#L207-L218
var panicReasons = map[uint64]string{
0x00: "generic panic",
0x01: "assert(false)",
0x11: "arithmetic underflow or overflow",
0x12: "division or modulo by zero",
0x21: "enum overflow",
0x22: "invalid encoded storage byte array accessed",
0x31: "out-of-bounds array access; popping on an empty array",
0x32: "out-of-bounds access of an array or bytesN",
0x41: "out of memory",
0x51: "uninitialized function",
}

// UnpackRevert resolves the abi-encoded revert reason. According to the solidity
// spec https://solidity.readthedocs.io/en/latest/control-structures.html#revert,
// the provided revert reason is abi-encoded as if it were a call to a function
// `Error(string)`. So it's a special tool for it.
// the provided revert reason is abi-encoded as if it were a call to function
// `Error(string)` or `Panic(uint256)`. So it's a special tool for it.
func UnpackRevert(data []byte) (string, error) {
if len(data) < 4 {
return "", errors.New("invalid data for unpacking")
}
if !bytes.Equal(data[:4], revertSelector) {
switch {
case bytes.Equal(data[:4], revertSelector):
typ, err := NewType("string", "", nil)
if err != nil {
return "", err
}
unpacked, err := (Arguments{{Type: typ}}).Unpack(data[4:])
if err != nil {
return "", err
}
return unpacked[0].(string), nil
case bytes.Equal(data[:4], panicSelector):
typ, err := NewType("uint256", "", nil)
if err != nil {
return "", err
}
unpacked, err := (Arguments{{Type: typ}}).Unpack(data[4:])
if err != nil {
return "", err
}
pCode := unpacked[0].(*big.Int)
// uint64 safety check for future
// but the code is not bigger than MAX(uint64) now
if pCode.IsUint64() {
if reason, ok := panicReasons[pCode.Uint64()]; ok {
return reason, nil
}
}
return fmt.Sprintf("unknown panic code: %#x", pCode), nil
default:
return "", errors.New("invalid data for unpacking")
}
typ, err := NewType("string", "", nil)
if err != nil {
return "", err
}
unpacked, err := (Arguments{{Type: typ}}).Unpack(data[4:])
if err != nil {
return "", err
}
return unpacked[0].(string), nil
}
Loading
Loading