Commit graph

13176 commits

Author SHA1 Message Date
Daniel Liu
958ad72b8e
trie: fix bloom crash on fast sync restart #22332 (#1060) 2025-06-03 11:54:40 +08:00
Daniel Liu
b18f9f2705
trie: use github.com/holiman/bloomfilter/v2 #22044 (#1059) 2025-06-03 11:52:45 +08:00
Daniel Liu
c4a98d2ddb
trie: remove redundant conversions (#1056) 2025-06-03 11:50:02 +08:00
Daniel Liu
aa7c8644c3
all: fix tests on 32-bit and windows + minor rpc fixes #21871 (#1055) 2025-06-03 11:47:11 +08:00
Wanwiset Peerapatanapokin
29cc718d4a
Merge pull request #1037 from Tarunshrma/fix-blocknumber-hex-unmarshal
rpc: support decimal integer as block number
2025-06-03 07:12:58 +04:00
Daniel Liu
63ff193931
trie: avoid copybytes for stacktrie #22686 (#1063)
Co-authored-by: Martin Holst Swende <martin@swende.se>
2025-06-03 10:58:46 +08:00
Daniel Liu
5b071d1b0d
trie: rename NodeFlag to nodeFlag (#1049) 2025-05-26 15:18:47 +08:00
Daniel Liu
5dd41a6765
trie: support empty range proof #21199 (#1048)
Co-authored-by: gary rong <garyrong0905@gmail.com>
2025-05-26 15:18:14 +08:00
Daniel Liu
b9626bfebf
trie: fix gaped range proof test case #21484 (#1047)
Co-authored-by: gary rong <garyrong0905@gmail.com>
2025-05-26 15:17:31 +08:00
Daniel Liu
2dd50b63ed
eth/downloader: improve test (#1043)
* eth/downloader: more context in errors #21067

* eth/downloader: fix spuriously failing tests #21149
2025-05-26 15:16:39 +08:00
Daniel Liu
e581aa5240
eth/downloader: flush state data before exit #16280 (#1042) 2025-05-26 15:15:32 +08:00
Wanwiset Peerapatanapokin
c7349e77d0
Merge pull request #1038 from XinFinOrg/update-bootnode
update mainnet bootnode
2025-05-21 13:35:36 +04:00
Daniel Liu
6395c15280
core/state, eth, trie: stabilize memory use, fix memory leak #21491 (#1040) 2025-05-20 15:14:47 +08:00
Daniel Liu
b94b29b8d0
trie: check nil bloom (#1039) 2025-05-20 15:13:34 +08:00
wanwiset25
6119591b7f update mainnet bootnode 2025-05-19 15:03:47 +04:00
Daniel Liu
1472f3b1eb
docs: add document for JSONRPC API (#1027)
* docs: add document for module XDPoS

* docs: add document for module admin

* docs: add document for module debug

* docs: add document for module eth

* docs: add document for module miner

* docs: add document for module net

* docs: add document for module personal

* docs: add document for module rpc

* docs: remove module shh

* docs: add document for module txpool
2025-05-19 15:30:52 +08:00
Tarun Sharma
c14f2e17aa test: Updated test cases to include MaxInt64, MinInt64 and MaxUint64, also rename testcase to TestHas0xPrefix to cover Has0xPrefix public method in hexutil package 2025-05-16 12:55:45 +04:00
Tarun Sharma
631be3cc04 refactor: Removed IsValidHexString and make has0xPrefix as public as per review comment 2025-05-16 12:33:25 +04:00
Tarun Sharma
46a301a528 test: added more table test data for TestBlockNumberJSONUnmarshal 2025-05-16 10:36:36 +04:00
JukLee0ira
47dae16a40
node: add JWT secret log line #25095 (#1036) 2025-05-16 12:03:11 +08:00
JukLee0ira
c145287e87
node: allow JWT pass by file only #24579 (#1035) 2025-05-16 12:01:36 +08:00
JukLee0ira
d81a5b6be1
docs: fix document for contract XDCValidator (#1034) 2025-05-15 19:15:50 +08:00
Daniel Liu
4fabc43a01
core/vm: fix invalid merkle root caused by PR #627 (#1033) 2025-05-14 16:47:53 +08:00
JukLee0ira
96c23408a5
docs: add document for contract XDCValidator (#1032) 2025-05-13 12:45:26 +08:00
Tarun Sharma
cccfefa669 test: adding test condition to mustFail=false in TestBlockNumberJSONUnmarshal for valid number input 2025-05-12 17:34:01 +04:00
Tarun Sharma
78e82ac8a9 test: updated test cases to cover hex and number support for XDPoS_getV2BlockByNumber 2025-05-09 14:32:01 +04:00
Tarun Sharma
8d0e24b2e2 api: accept both hex and decimal for block number 2025-05-08 17:57:46 +04:00
Tarun Sharma
47d4bf4bf6 common: add public method to check for valid hex string 2025-05-08 17:56:48 +04:00
JukLee0ira
7a659c9e7d
node: change JWT error status to 401 Unauthorized #25629 (#1029) 2025-05-08 16:24:41 +08:00
Daniel Liu
fbd4364fc3
cmd, debug: fix debug_verbosity (#1030) 2025-05-08 16:10:53 +08:00
Daniel Liu
c70186be18
internal/web3ext: remove deprecated debug api (#1031)
* internal/web3ext: remove debug api backtraceAt

* internal/web3ext: remove debug api setMutexProfileRate
2025-05-08 15:58:44 +08:00
JukLee0ira
fe422720f3
cmd, node: implement --authrpc-vhosts flag #24506 (#1028) 2025-05-08 11:13:44 +08:00
Wanwiset Peerapatanapokin
d21406c43e
Merge pull request #917 from XinFinOrg/update-reward-api
add new api XDPoS_getRewardByAccount
2025-05-07 15:29:32 +04:00
Wanwiset Peerapatanapokin
a9199d4140
Merge pull request #944 from nghiangovan/dev-upgrade
add-epoch-number-for-XDPoS_getMasternodesByNumber
2025-05-07 15:28:59 +04:00
Daniel Liu
266cf85510
rpc: remove deprecated method Notifier.Closed #29162 (#1022)
Co-authored-by: Undefinedor <wanghao@imwh.net>
2025-05-06 09:44:20 +08:00
Daniel Liu
f19813e3ee
rpc: run tests in parallel #30384 (#1021)
Continuation of https://github.com/ethereum/go-ethereum/pull/30381

Co-authored-by: Håvard Anda Estensen <haavard.ae@gmail.com>
2025-05-06 09:41:42 +08:00
wanwiset25
576bdfff79 change method and handle case with no reward 2025-05-05 18:09:29 +04:00
benjamin202410
3cea40cf9d
fix: owner and foundation same address for reward (#1024)
Co-authored-by: liam.lai <liam.lai@us>
2025-05-01 08:46:09 -07:00
Daniel Liu
d25c6f02a7
all: not copy loop var for golang v1.22 (#1020) 2025-04-29 17:27:36 +08:00
Daniel Liu
d955e17cd6
rpc: add timeout to rpc client Unsubscribe #30318 (#1019)
Fixes #30156

This adds a repro of the linked issue. I fixed it by adding a timeout
when issuing the call to unsubscribe.

Co-authored-by: lightclient <14004106+lightclient@users.noreply.github.com>
2025-04-29 17:26:34 +08:00
Daniel Liu
4c805e5968
rpc: show more error detail for invalidMessageError #30191 (#1018)
Here we add distinct error messages for network timeouts and JSON parsing errors.
Note this specifically applies to HTTP connections serving a single RPC request.

Co-authored-by: zhiqiangxu <652732310@qq.com>
Co-authored-by: Felix Lange <fjl@twurst.com>
2025-04-29 17:25:43 +08:00
Daniel Liu
445d9b37d3
rpc: truncate call error data logs #30028 (#1017)
Co-authored-by: Ceyhun Onur <ceyhun.onur@avalabs.org>
Co-authored-by: Felix Lange <fjl@twurst.com>
2025-04-29 17:14:14 +08:00
Daniel Liu
84b731fc23
rpc: close Clients in tests #29512 (#1016)
Co-authored-by: Darioush Jalali <darioush.jalali@avalabs.org>
2025-04-29 17:13:29 +08:00
Daniel Liu
fd42d8b292
rpc: implement Unwrap() for wsHandshakeError #29522 (#1015)
Co-authored-by: Marcus Baldassarre <baldassarremarcus@gmail.com>
2025-04-29 17:12:33 +08:00
Daniel Liu
c0747977e2
rpc: fix ipc max path size #29385 (#1014)
Co-authored-by: Miles Chen <fearlesschenc@gmail.com>
2025-04-29 17:11:33 +08:00
Daniel Liu
fa39dac391
rpc: fix leak by close http body #29223 (#1013) 2025-04-29 17:10:12 +08:00
Daniel Liu
656419ba14
rpc: add more test cases for arg types #29006 (#1012)
* rpc: add more test cases for arg types #29006

* rpc: add more test cases for arg types #29006

---------

Co-authored-by: Andrei Kostakov <bps@dzen.ws>
2025-04-29 17:08:05 +08:00
Daniel Liu
a4aebd5d88
rpc: fix typos (#1011) 2025-04-29 17:07:10 +08:00
Daniel Liu
35a202675d
node, rpc: add configurable HTTP request limit #28948 (#1010)
Adds a configurable HTTP request limit, and bumps the engine default

Co-authored-by: Felix Lange <fjl@twurst.com>
2025-04-29 17:06:06 +08:00
lightclient
9373c71211 rpc: use stable object in notifier test #30193
This makes the test resilient to changes of types.Header -- otherwise the test needs to be
updated each time the header structure is modified.
2025-04-29 17:04:50 +08:00