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.11.2 #205

Merged
merged 441 commits into from
May 8, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
441 commits
Select commit Hold shift + click to select a range
c539bda
metrics: improve reading Go runtime metrics (#25886)
fjl Nov 11, 2022
ea65eda
eth, catalyst: fix flaky tests (#26153)
holiman Nov 11, 2022
8334b5f
common/lru: fix race in lru (#26164)
holiman Nov 11, 2022
e34e540
accounts/keystore: replace inotify with fsnotify (#26176)
holiman Nov 14, 2022
8c5ce11
eth/filters: send rpctransactions in pending-subscription (#26126)
holiman Nov 14, 2022
f58ebd9
all: use github.com/deckarep/golang-set/v2 (generic set) (#26159)
Jolly23 Nov 14, 2022
9afc681
common/lru: add generic LRU implementation (#26162)
fjl Nov 14, 2022
ae42148
rpc: fix connection tracking set in Server (#26180)
fjl Nov 15, 2022
bc90a88
ethclient: docs, fix misleading comment (#26189)
ligi Nov 16, 2022
b4ea2bf
all: implement EIP-1153 transient storage (#26003)
tynes Nov 16, 2022
add337e
rpc: support injecting HTTP headers through context (#26023)
storyicon Nov 16, 2022
64067fb
eth/tracers: small refactor for native tracers (#26196)
s1na Nov 17, 2022
c3b4268
Dockerfile: upgrade to Go 1.19 (#26195)
fjl Nov 17, 2022
12df456
all: remove remaining uses of untyped golang-lru (#26194)
fjl Nov 17, 2022
722bb21
rlp: improve tests for Split functions (#26200)
therainisme Nov 17, 2022
97c563e
rpc, internal/guide: speed up tests a bit (#26193)
holiman Nov 17, 2022
c2e0abc
ethstats: set readlimit on ethstats server connection (#26207)
holiman Nov 17, 2022
6975f09
eth/catalyst: make tests less time-sensitive (#26201)
holiman Nov 21, 2022
64dccf7
cmd/utils: log path used when checking disk space (#26212)
kumavis Nov 21, 2022
ec2ec2d
core: implement EIP-3651, warm coinbase (#25819)
MariusVanDerWijden Nov 22, 2022
193f350
core/rawdb: improve freezerTable.Sync (#26245)
fjl Nov 24, 2022
8846c07
cmd/utils: print warning when --metrics.port set without --metrics.ad…
fjl Nov 24, 2022
e76813e
signer/core/apitypes: deep convert types in slice (#26203)
6xiaowu9 Nov 24, 2022
c5dc61c
cmd/utils: gofmt
fjl Nov 24, 2022
add1bff
core/rawdb: fix freezer validation (#26251)
rjl493456442 Nov 25, 2022
6a4e05c
signer: enable typed data signing from signer rpc (#26241)
holiman Nov 25, 2022
8c6e74e
rpc: decrease websocket ping interval (#26253)
Wihandebeer Nov 25, 2022
53d1ae0
p2p/nat: use IP.IsPrivate (#26252)
dbadoy Nov 25, 2022
1325fef
internal/web3ext: fix eth_call stateOverrides in console (#26265)
s1na Nov 28, 2022
0dc9b01
core: clarify code in forkchoice (#26257)
setunapo Nov 28, 2022
eb01927
tests: update evm-benchmarks (#26255)
chfast Nov 28, 2022
63ffda3
internal/web3ext: fix eth.call regression in console (#26266)
s1na Nov 28, 2022
0e06735
internal/web3ext: fix eth_call in console, part III (#26268)
s1na Nov 28, 2022
743e404
core, eth, les, tests, trie: abstract node scheme (#25532)
rjl493456442 Nov 28, 2022
1b8a392
console: use default APIs when server doesn't have rpc_modules (#26267)
fjl Nov 28, 2022
c1aa1db
p2p/discover: add config option for discv5 protocol ID (#26041)
richard-ramos Nov 30, 2022
e24d600
miner: fix potential goroutine leak in test (#26281)
BarrensZeppelin Dec 2, 2022
10347c6
core: drop legacy receipt types (#26225)
s1na Dec 3, 2022
06632da
all: assign zero after resize in implementations of heap.Interface (#…
estensen Dec 5, 2022
1f35988
eth/tracers, core/vm: remove `time` from trace output and tracing int…
holiman Dec 5, 2022
41306b0
cmd/evm: output stateroot in statetest result (#26297)
holiman Dec 5, 2022
01953b3
cmd/geth: fix typo in comment (#26308)
qiuhaohao Dec 5, 2022
b44abf5
cmd/devp2p: add --extaddr flag (#26312)
fjl Dec 6, 2022
f20eba4
graphql, node, rpc: improve HTTP write timeout handling (#25457)
s1na Dec 7, 2022
4221280
p2p/nat: handle responses with alternative port in NAT-PMP (#26321)
dbadoy Dec 7, 2022
6891288
core: fix state flushing for catalyst mode (#26319)
s1na Dec 7, 2022
a9dfac0
p2p/discover: improve nodesByDistance.push code (#26019)
zhiqiangxu Dec 7, 2022
890e2ef
eth, cmd: remove syncTarget from eth config (#26330)
rjl493456442 Dec 8, 2022
711afbc
core,eth: add `debug_setTrieFlushInterval` to change trie flush frequ…
s1na Dec 9, 2022
3315bad
core: pass block into collectLogs (#26335)
fjl Dec 9, 2022
3775e19
event: add FeedOf[T] (#26310)
fjl Dec 9, 2022
262bd38
eth/tracers: return proper error from debug_TraceTransaction when tx …
mdehoog Dec 10, 2022
250a80a
core: fix comment about recipient for contract creation (#26349)
ralexstokes Dec 13, 2022
cda051e
core, cmd: fill blockNumber in logs (#26345)
rjl493456442 Dec 13, 2022
fa97788
eth/tracers/native: fix possible crash in prestate tracer (#26351)
holiman Dec 13, 2022
502fa82
signer/core: handle gnosis safe problem with missing chain id (#26309)
holiman Dec 14, 2022
f51f6ed
core: fix typo in blockchain_snapshot_test.go (#26357)
eltociear Dec 14, 2022
f53ff0f
eth/filters, eth/tracers: add request cancellation checks (#26320)
fjl Dec 15, 2022
d3411b9
trie: wrap deletion in case trie.root is nil (#26365)
rjl493456442 Dec 19, 2022
79a478b
core/rawdb: implement resettable freezer (#26324)
rjl493456442 Dec 19, 2022
b818e73
tests: update tests (#26314)
holiman Dec 20, 2022
0180842
core/state: return error when storage trie can't be opened (#26350)
rjl493456442 Dec 21, 2022
577db2e
build: add support for Ubuntu 22.10 (Kinetic Kudu) (#26379)
Zachinquarantine Dec 27, 2022
9921ca0
miner: allow for extradata in post-merge blocks (#26387)
MariusVanDerWijden Dec 28, 2022
c87f321
core/state: maintain destruction flag by default (#26371)
rjl493456442 Dec 28, 2022
db82ea2
core: reset txpool on sethead (#26392)
MariusVanDerWijden Dec 29, 2022
9d38466
eth/downloader: fix some typos (#26396)
hadv Jan 3, 2023
dad9250
cmd, internal: update copyright year to 2023 (#26382)
sandakersmann Jan 3, 2023
c6a2f77
cmd/devp2p/internal/v4test: add pong validation in bond (#26400)
strykerin Jan 3, 2023
efc9409
params: core: enable shanghai based on timestamps
MariusVanDerWijden Sep 27, 2022
a4e19c5
all: implement forkid changes for shanghai
MariusVanDerWijden Nov 10, 2022
0848102
core, les, params: add timestamp based fork compatibility checks
karalabe Dec 15, 2022
d021157
core, les, light: implement timestamp based sethead and genesis rewinds
karalabe Dec 16, 2022
9e6a1c3
common/mclock: add Alarm (#26333)
fjl Jan 3, 2023
a251bca
p2p/discover: add more packet information in logs (#26307)
fjl Jan 3, 2023
41fe9d6
cmd/evm: update documentation (#26385)
holiman Jan 3, 2023
6c149fd
core, eth, trie, light: clean up trie interface (#26388)
rjl493456442 Jan 3, 2023
f426805
build: upgrade -dlgo version to Go 1.19.4 (#26440)
sandakersmann Jan 6, 2023
fcf3d00
eth, les: polish forkid a bit, fix races and transition validation
karalabe Jan 3, 2023
b56c796
cmd, core, eth, els, params: disallow setheads below genesis, tweaks
karalabe Jan 6, 2023
2189773
Merge pull request #25878 from MariusVanDerWijden/shanghai-by-time
karalabe Jan 6, 2023
686f743
eth/downloader: fix unexpected skeleton header deletion
rjl493456442 Jan 9, 2023
71f7988
eth/downloader: create repro testcase for beacon header loss
karalabe Jan 9, 2023
43692c8
Merge pull request #26451 from rjl493456442/fix-beacon-sync-2
karalabe Jan 9, 2023
ccacb99
cmd/evm: support shanghai in tests + evm t8n (#26458)
marioevz Jan 10, 2023
faff980
crypto/bls12381: use worst case scalar for input to G1/G2 mul benchma…
jwasinger Jan 10, 2023
b8bc8c2
README.md: add website contribution instructions (#26442)
jmcook1186 Jan 10, 2023
4ada314
tests: fix DIFFICULTY error in state executor (#26465)
holiman Jan 10, 2023
7a48962
core/state: remove notion of fake storage (#24916)
holiman Jan 10, 2023
2c6dda5
eth/tracers: use non-threaded tracechain (#24283)
holiman Jan 10, 2023
452a12a
eth/downloader: move the pivot in beacon sync mode too (#26453)
karalabe Jan 10, 2023
793f0f9
core/vm: implement EIP-3860: Limit and meter initcode (#23847)
gumb0 Jan 11, 2023
c125e6e
core/vm: enable EIP-3855 (PUSH0) in Shanghai (#26475)
yperbasis Jan 12, 2023
6f858fa
rpc: fix setting client in DialHTTPWithClient (#26470)
lightclient Jan 12, 2023
b748709
eth/downloader: fix cornercase when clean stale beacon headers (#26441)
rjl493456442 Jan 12, 2023
d379e3f
ethclient/gethclient: ensure getProof keys parameter is not null (#26…
fjl Jan 12, 2023
a21e963
eth/catalyst: trigger beacon sync directly with provided chain head (…
rjl493456442 Jan 13, 2023
e04d63e
core/rawdb: fsync head data file before closing it (#26490)
rjl493456442 Jan 13, 2023
0e486a5
Use filepath.clean instead of path.clean (#26404)
MariusVanDerWijden Jan 13, 2023
450d771
readme: fix broken link to installation instructions (#26497)
dhij Jan 15, 2023
0b53b29
core/rawdb: fix cornercase shutdown behaviour in freezer (#26485)
holiman Jan 16, 2023
554c8d7
cmd/utils: update Rinkeby deprecation message (#26496)
Zachinquarantine Jan 16, 2023
55c3b6f
swarm: fix outdated link (#26501)
ucwong Jan 16, 2023
d345a4a
cmd/bootnode, cmd/utils: add 'pmp:<IP>' to --nat flag description (#2…
dbadoy Jan 16, 2023
c858da5
cmd/evm: fix typo in README.md (#26500)
eltociear Jan 16, 2023
8d4c81d
build: upgrade -dlgo version to Go 1.19.5 (#26472)
sandakersmann Jan 16, 2023
f2758a8
cmd/evm: typo fix in docs (#26506)
ucwong Jan 16, 2023
297ec06
metrics/influxdb: fix time ticker leaks (#26507)
ucwong Jan 17, 2023
97401b6
eth/filters: fix typo in comment (#26515)
molecula451 Jan 17, 2023
4a3fb58
les/fetcher : fix requestTimer leak (#26514)
ucwong Jan 18, 2023
a35b654
core/txpool: check if initcode size is exceeded (#26504)
MariusVanDerWijden Jan 18, 2023
690338f
all: remove Kiln testnet (#26522)
Zachinquarantine Jan 19, 2023
2d2c069
console, internal/jsre: fix autocomplete issues (#26518)
s1na Jan 19, 2023
24c7023
go.mod: upgrade to go-bip39 v1.1.0 (#26527)
meehow Jan 20, 2023
8748972
go.sum: tidy (#26525)
ucwong Jan 20, 2023
3f544ce
.travis.yml: go1.19.5 for android builds (#26524)
ucwong Jan 20, 2023
50e6539
params: define cancun and prague as timestamp based forks (#26481)
rjl493456442 Jan 20, 2023
4f4a25d
signer/core: don't require capital lettered reference types (#26462)
holiman Jan 20, 2023
2b44ef5
miner, cmd, eth: require explicit etherbase address (#26413)
rjl493456442 Jan 20, 2023
d36e6fc
go.mod: upgrade to latest goja (#26523)
s1na Jan 23, 2023
e4fa2cf
go.sum: go mod tidy (#26536)
ucwong Jan 23, 2023
163e996
all: use http package to replace http method names (#26535)
islishude Jan 24, 2023
59a48e0
cmd/utils: improve parsing of --miner.etherbase address (#26541)
fjl Jan 24, 2023
2b57a27
all: make timestamp-based fork checks based on uint64 (#26474)
holiman Jan 25, 2023
2a2b041
all: implement withdrawals (EIP-4895) (#26484)
MariusVanDerWijden Jan 25, 2023
55f41d1
cmd/utils: fix error at geth startup in --dev mode (#26550)
fjl Jan 26, 2023
245cff0
eth/catalyst: error on nil withdrawals post-shanghai (#26549)
MariusVanDerWijden Jan 27, 2023
2fecac6
eth/catalyst: implement exchangeCapabilities method (#26555)
MariusVanDerWijden Jan 27, 2023
34115c8
params: fix timestamp display in fork banner (#26553)
fjl Jan 27, 2023
abe4159
params: remove deprecated bootnodes (#26530)
ncocchiaro Jan 27, 2023
a63875b
go.mod: gnark-crypto upgrade (#26545)
ucwong Jan 27, 2023
90f15a0
cmd/evm: add blocktest subcommand to evm (#26526)
marioevz Jan 27, 2023
df52967
eth/catalyst: fix panic in TestWithdrawals (#26563)
fjl Jan 27, 2023
fd4230f
log: fix typo in comment (#26569)
ucwong Jan 30, 2023
3ff3d07
cmd/devp2p: fix broken link in readme(#26576)
pcaversaccio Jan 30, 2023
17017b2
log: better sanitation (#26556)
holiman Jan 30, 2023
78d089b
ethclient/gethclient: fix typo (#26580)
shimmeris Jan 31, 2023
efbd508
eth/tracer: rename to revertReason (#26574)
rjl493456442 Jan 31, 2023
bd6a05e
internal/ethapi: always return block withdrawals if present (#26565)
lightclient Jan 31, 2023
8ded6a9
cmd/puppeth: remove puppeth
holiman Jan 31, 2023
5c8cc10
core: improve ambiguous block validation message (#26582)
holiman Feb 1, 2023
5d8bff1
Merge pull request #26581 from holiman/nuke_puppet
karalabe Feb 2, 2023
a8cf439
eth/catalyst: return invalid params instead of invalid payload params…
MariusVanDerWijden Feb 2, 2023
d0a4989
cmd, eth, node: deprecate personal namespace (#26390)
MariusVanDerWijden Feb 2, 2023
d9699c8
accounts, build, mobile: remove Andriod and iOS support
karalabe Feb 3, 2023
3a79a99
Merge pull request #26599 from karalabe/mobile-nuke
karalabe Feb 3, 2023
877d217
core/vm: improve EVM instance reusability (#26341)
lmittmann Feb 5, 2023
9826cd6
eth/catalyst: implement engine_getPayloadBodiesByHash/Range methods (…
MariusVanDerWijden Feb 6, 2023
bd726f8
readme: fix broken link (#26612)
delihiros Feb 6, 2023
8e92881
rpc: fix off-by-one in ipc endpoint length check (#26614)
holiman Feb 6, 2023
918aed4
core/vm: add bn256ScalarMul testcase for zero scalar value (#26607)
raulk Feb 6, 2023
10c1484
README: remove text about GPU mining (#26609)
sandakersmann Feb 6, 2023
8860b39
all: prepare for path-based trie storage (#26603)
holiman Feb 6, 2023
3a5acee
beacon/engine: move core/beacon to beacon/engine (#26616)
zsfelfoldi Feb 6, 2023
37e3208
build: upgrade to golangci-lint v1.51.1 (#26618)
fjl Feb 6, 2023
91cb6f8
tests: update (#26548)
holiman Feb 6, 2023
cefc0fa
accounts/abi: fix integer encoding/decoding (#26568)
zhiqiangxu Feb 7, 2023
31d401e
rpc: remove DecimalOrHex type (#26629)
fjl Feb 7, 2023
2f73f4f
eth/catalyst,miner: include withdrawals in payload id calculation (#2…
MariusVanDerWijden Feb 7, 2023
00a9b80
light: fix receiver name from Python style to Go (#26631)
halilylm Feb 8, 2023
8c18b48
log: allow tabs in log messages (#26630)
fjl Feb 8, 2023
9842301
all: remove database commit callback, rework noderesolver (#26637)
rjl493456442 Feb 8, 2023
0c9eb8c
eth/catalyst: make getPayloadBodiesByRange take hex inputs (#26624)
jwasinger Feb 8, 2023
095e365
all: remove support for Ropsten (#26644)
karalabe Feb 9, 2023
ed51b8c
ethdb: pebble backend (64bit platforms only) (#26517)
holiman Feb 9, 2023
6a148dd
eth/catalyst: disallow forkchoiceupdate v1 post-shanghai (#26645)
MariusVanDerWijden Feb 9, 2023
bf1798e
common/prque: generic priority queue (#26290)
karalabe Feb 9, 2023
da3c974
ethdb/pebble: fix nil callbacks (#26650)
karalabe Feb 9, 2023
3086c25
eth/downloader: fix timeout resurrection panic (#26652)
karalabe Feb 9, 2023
22c3ad1
core/state, trie: remove unused error-return from trie Commit operati…
holiman Feb 9, 2023
77380b9
go.mod: update pebble to latest master (#26654)
karalabe Feb 9, 2023
b0cd8c4
core/vm: set tracer-observable `value` of a delegatecall to match par…
ziogaschr Feb 10, 2023
0ea65d4
ethdb: add benchmark test suite (#26659)
rjl493456442 Feb 10, 2023
241cf62
params: schedule shanghai fork on sepolia (#26662)
MariusVanDerWijden Feb 10, 2023
2def62b
eth/filters: avoid block body retrieval when no matching logs (#25199)
s1na Feb 13, 2023
7d29fff
eth/tracers: more fork overrides in traceBlockToFile (#26655)
darioush Feb 13, 2023
03585ed
tests/fuzzers: supply gnark multiexp config, fixes #26669 (#26670)
holiman Feb 13, 2023
1c5fa40
cmd/devp2p: reduce output of node crawler (#26674)
holiman Feb 14, 2023
f44ebc4
params: update mainnet + rinkeby CHT (#26677)
holiman Feb 14, 2023
ff38c9e
eth/filters: replace atomic pointer with value (#26689)
s1na Feb 14, 2023
101587b
p2p/dnsdisc: fix tests with Go 1.20 (#26690)
fjl Feb 14, 2023
dbd6c13
eth/catalyst: return error if withdrawals are nil post-shanghai (#26691)
MariusVanDerWijden Feb 14, 2023
5967a22
ethdb/pebble: Fix `MemTableStopWritesThreshold` (#26692)
patrick-ogrady Feb 15, 2023
7fb42e6
eth/downloader: handle missing withdrawals if empty list is expected …
MariusVanDerWijden Feb 15, 2023
18b641b
params: go-ethereum v1.11.0 stable
holiman Feb 15, 2023
194b5c9
params: begin v1.11.1 release cycle
holiman Feb 15, 2023
5ccc99b
travis, build: update Go to 1.20.1 (#26653)
karalabe Feb 16, 2023
08bf8a6
core: check genesis state presence by disk read (#26703)
rjl493456442 Feb 16, 2023
645e3e8
core, eth/downloader: make body validation more strict (#26704)
holiman Feb 16, 2023
13d7de7
eth/downloader: fix empty-body case in queue fetchresult (#26707)
holiman Feb 16, 2023
e9d4249
eth/downloader: fix typo (#26716)
ucwong Feb 16, 2023
4d35256
all: remove deprecated uses of math.rand (#26710)
holiman Feb 16, 2023
7696106
params: go-ethereum v1.11.1 stable
holiman Feb 16, 2023
b40c109
params: begin v1.11.2 release cycle
holiman Feb 16, 2023
6428663
eth/catalyst: send INVALID instead of INVALID_BLOCK_HASH (#26696)
MariusVanDerWijden Feb 17, 2023
15e5e61
eth/catalyst: request too large error (#26722)
rkrasiuk Feb 17, 2023
7c749c9
core/trie: remove trie tracer (#26665)
holiman Feb 19, 2023
1db978c
rpc: fix unmarshaling of null result in CallContext (#26723)
fjl Feb 19, 2023
2166c86
build: ship bootstrapper Go along with builder for PPA (#26731)
karalabe Feb 20, 2023
e1e2781
build: fix setting env var, temp early exit
karalabe Feb 20, 2023
4ec4235
build: fix gobootstrap path for the PPA
karalabe Feb 20, 2023
a43efce
build: add some PPA debug logs, sigh
karalabe Feb 20, 2023
1652684
internal/build: revert raising the chunk size for PPA
karalabe Feb 20, 2023
c02334b
build: yet another weird PPA fix
karalabe Feb 20, 2023
4519054
build: fix (finaly?) the PPA env vars for Go bootstrapping
karalabe Feb 20, 2023
41dee26
build: fix Go 1.19.0 bootstrapper issues on 386 PPA
karalabe Feb 20, 2023
ba4267f
build: enable Lunar Lobster PPA builds
karalabe Feb 20, 2023
13ef21d
Revert "core/trie: remove trie tracer (#26665)" (#26732)
rjl493456442 Feb 20, 2023
7d4db69
cmd/geth: clarify dumpconfig options (#26729)
swkim101 Feb 21, 2023
90d2551
core, eth: merge snap-sync chain download progress logs (#26676)
karalabe Feb 21, 2023
6d2d126
core: fix accessor mismatch for genesis state (#26747)
holiman Feb 21, 2023
2f20fd3
core/rawdb: expose chain freezer constructor without internals (#26748)
karalabe Feb 21, 2023
fe01a2f
all: use unified emptyRootHash and emptyCodeHash (#26718)
rjl493456442 Feb 21, 2023
4034c67
eth/filters: fix a breaking change and return rpctransaction (#26757)
yierx Feb 22, 2023
f86f048
common/math: allow HexOrDecimal to accept unquoted decimals too (#26758)
karalabe Feb 22, 2023
73b01f4
params: release Geth v1.11.2
karalabe Feb 22, 2023
200f18a
Merge tag 'v1.11.2'
Tristan-Wilson Feb 28, 2023
5b323d5
go mod tidy
Tristan-Wilson Feb 28, 2023
c863fd8
Compatibility fns now have block in name
Tristan-Wilson Feb 28, 2023
2c6866f
Remove refs to dropped legacy types
Tristan-Wilson Feb 28, 2023
619f528
rlp decoding merge fix
Tristan-Wilson Feb 28, 2023
3e96f97
Fix arbitrum tx marshalling for tx rename
Tristan-Wilson Feb 28, 2023
5061259
Fix batchCallBuffer timeout handling
Tristan-Wilson Feb 28, 2023
11ec7fe
Remove fastcache finalizer, not using fastcache
Tristan-Wilson Feb 28, 2023
7d84c94
Fix merge of blockchain.go timestamp limit
Tristan-Wilson Feb 28, 2023
7d93587
Fix merge of applyTransaction missing filter arg
Tristan-Wilson Feb 28, 2023
8cf1b94
Fix snap sync.go merge
Tristan-Wilson Feb 28, 2023
5c973ad
Fix GetStorageAt, key decoding for classic
Tristan-Wilson Feb 28, 2023
3b2bb0a
Fix merge of arbitrum tracing functions
Tristan-Wilson Feb 28, 2023
d6fffd9
Fix arbitrum state transaction fn
Tristan-Wilson Feb 28, 2023
252be1d
Fix arbitrum package build
Tristan-Wilson Feb 28, 2023
3800745
Make storedReceiptRLP rawdb redef match core type
Tristan-Wilson Mar 2, 2023
1a3622e
Fix merge of rpc/client.go CallContext unmarshal
Tristan-Wilson Mar 2, 2023
1e33eb0
Fix refs to DefaultTriesInMemory
Tristan-Wilson Mar 3, 2023
f2975a0
Add Arbitrum specific APIs to backendMock
Tristan-Wilson Mar 3, 2023
3f45f11
More references to DefaultTriesInMemory
Tristan-Wilson Mar 3, 2023
6484970
add gasUsedForL1 to expected output for T8n tests
Tristan-Wilson Mar 3, 2023
1193877
Fix CallContext merge attempt 2
Tristan-Wilson Mar 3, 2023
94f91bc
Make console test know about git version
Tristan-Wilson Mar 3, 2023
d62d1b4
Revert "Merge remote-tracking branch 'origin/master' into ws_jwt_client"
Tristan-Wilson Mar 30, 2023
24d6a56
Merge branch 'revert-offchain-jwt' into merge-v1.11.2
Tristan-Wilson Mar 30, 2023
06b5ef6
Use flushInterval instead of TrieTimeLimit
Tristan-Wilson Mar 30, 2023
d6ee418
Rename root to triegcEntry
Tristan-Wilson Apr 4, 2023
b8f10c7
Fix moved DiskDB TODO
Tristan-Wilson Apr 4, 2023
a1cc048
Merge remote-tracking branch 'origin/master' into merge-v1.11.2
Tristan-Wilson Apr 18, 2023
503ffe6
Fix handling of statedb.StorageTrie returning err
Tristan-Wilson Apr 18, 2023
ac74403
Add IsArbitrum special case to NewBlockChain
Tristan-Wilson May 1, 2023
e272e4e
Merge remote-tracking branch 'origin/master' into merge-v1.11.2
Tristan-Wilson May 2, 2023
c2794dd
Update core.NewBlockChain call sites in tests
Tristan-Wilson May 2, 2023
558c5fe
Move parens
Tristan-Wilson May 8, 2023
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
Prev Previous commit
Next Next commit
Revert "Merge remote-tracking branch 'origin/master' into ws_jwt_client"
This reverts commit c3e683a, reversing
changes made to 01cc043.

JWT support was added upstream, we'll use it instead.
  • Loading branch information
Tristan-Wilson committed Mar 30, 2023
commit d62d1b4035c1707b171784003d024cacf0c410b7
17 changes: 0 additions & 17 deletions node/rpcstack_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ package node

import (
"bytes"
"context"
"fmt"
"net/http"
"net/url"
Expand Down Expand Up @@ -418,21 +417,5 @@ func TestJWT(t *testing.T) {
t.Errorf("tc %d-http, token '%v': expected not to allow, got %v", i, token, resp.StatusCode)
}
}
ctx, cancel := context.WithCancel(context.Background())
defer cancel()
client, err := rpc.DialWebsocketJWT(ctx, wsUrl, "orig", []byte("secret"))
if err != nil {
t.Errorf("DialWebsocketJWT should have succeeded, got %v", err)
}
if client != nil {
client.Close()
}
client, err = rpc.DialWebsocketJWT(ctx, wsUrl, "orig", []byte("bad"))
if err == nil {
t.Error("DialWebsocketJWT with bad secret should have failed")
}
if client != nil {
client.Close()
}
srv.stop()
}
26 changes: 0 additions & 26 deletions rpc/websocket.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ import (

mapset "github.com/deckarep/golang-set"
"github.com/ethereum/go-ethereum/log"
"github.com/golang-jwt/jwt/v4"
"github.com/gorilla/websocket"
)

Expand Down Expand Up @@ -185,17 +184,10 @@ func parseOriginURL(origin string) (string, string, string, error) {
// DialWebsocketWithDialer creates a new RPC client that communicates with a JSON-RPC server
// that is listening on the given endpoint using the provided dialer.
func DialWebsocketWithDialer(ctx context.Context, endpoint, origin string, dialer websocket.Dialer) (*Client, error) {
return DialWebsocketWithDialerAndExtraHeaders(ctx, endpoint, origin, dialer, nil)
}

func DialWebsocketWithDialerAndExtraHeaders(ctx context.Context, endpoint, origin string, dialer websocket.Dialer, headers http.Header) (*Client, error) {
endpoint, header, err := wsClientHeaders(endpoint, origin)
if err != nil {
return nil, err
}
for headerType, content := range headers {
header[headerType] = append(header[headerType], content...)
}
return newClient(ctx, func(ctx context.Context) (ServerCodec, error) {
conn, resp, err := dialer.DialContext(ctx, endpoint, header)
if err != nil {
Expand Down Expand Up @@ -223,24 +215,6 @@ func DialWebsocket(ctx context.Context, endpoint, origin string) (*Client, error
return DialWebsocketWithDialer(ctx, endpoint, origin, dialer)
}

func DialWebsocketJWT(ctx context.Context, endpoint, origin string, jwtSecret []byte) (*Client, error) {
dialer := websocket.Dialer{
ReadBufferSize: wsReadBuffer,
WriteBufferSize: wsWriteBuffer,
WriteBufferPool: wsBufferPool,
}
claims := jwt.StandardClaims{
IssuedAt: time.Now().Unix(),
}
jwtToken, err := jwt.NewWithClaims(jwt.SigningMethodHS256, claims).SignedString(jwtSecret)
if err != nil {
return nil, err
}
extraHeaders := http.Header(make(map[string][]string))
extraHeaders["Authorization"] = []string{fmt.Sprintf("Bearer %s", jwtToken)}
return DialWebsocketWithDialerAndExtraHeaders(ctx, endpoint, origin, dialer, extraHeaders)
}

func wsClientHeaders(endpoint, origin string) (string, http.Header, error) {
endpointURL, err := url.Parse(endpoint)
if err != nil {
Expand Down