Commit graph

13313 commits

Author SHA1 Message Date
Daniel Liu
3fecfcaa76
internal/web3ext: fix eth_call in console #26265 #26266 #26268 (#1329)
* internal/web3ext: fix eth_call stateOverrides in console #26265

* internal/web3ext: fix eth.call regression in console #26266

* internal/web3ext: fix eth_call in console 2 #26268
2025-08-08 10:43:27 +08:00
Daniel Liu
2539836ede
internal/web3ext: add eth_getLogs to console #24297 (#1328) 2025-08-08 10:37:46 +08:00
Daniel Liu
a2cf4e3111
core: fix deprecation comment for GenesisAccount #29218 (#1323) 2025-08-08 10:35:58 +08:00
Daniel Liu
34020969ff
all: simplify timestamps to uint64 #19372 (#1318) 2025-08-08 10:33:37 +08:00
Daniel Liu
36374be05f
eth/tracers: move tracing APIs into eth/tracers #22161 #22473 (#1252) 2025-08-08 10:25:43 +08:00
Daniel Liu
cdd6a9eb94
eth: add debug_accountRange API #19645 (#1194)
This new API allows reading accounts and their content by address range.

Co-authored-by: Wenbiao Zheng <delweng@gmail.com>
Co-authored-by: Martin Holst Swende <martin@swende.se>
Co-authored-by: Felix Lange <fjl@twurst.com>
2025-08-08 09:55:17 +08:00
Daniel Liu
8750881da2
trie: remove the sync bloom, used by fast sync #24047 (#1077) 2025-08-08 09:31:26 +08:00
Daniel Liu
f0ee1211cc
trie: reject deletions when verifying range proofs #23960 (#1076)
Co-authored-by: Péter Szilágyi <peterke@gmail.com>
2025-08-08 09:23:50 +08:00
Daniel Liu
3da4549e07
core/state: move state account to core/types + abstracted write account to trie #23567 (#1072) 2025-08-08 09:13:34 +08:00
benjamin202410
bc7e213b96
fix syncinfo skip condition (#1285)
* fix syncinfo skip condition

* fix condition

* fix condition

---------

Co-authored-by: liam.lai <liam.lai@us>
2025-08-04 02:51:05 -07:00
Daniel Liu
cd407af1aa
core/rawdb: add HasCode, HasTrieNode and use them where possible #24454 (#1211) 2025-08-04 14:42:13 +08:00
Daniel Liu
7464f0a7f3
trie: better error-handling #23657 (#1073) 2025-08-04 14:38:48 +08:00
Daniel Liu
655f975bbb
trie: simplify range proofs #22762 (#1067) 2025-08-04 14:36:02 +08:00
Daniel Liu
ae58eb9f64
go.mod: upgrade goja #23721 (#1281) 2025-08-04 11:57:13 +08:00
Daniel Liu
3620d9930d
core/vm: use clear from go v1.21 #29307 (#1246) 2025-08-04 11:54:49 +08:00
Daniel Liu
f9025ecc91
core/state: unexport NodeIterator #27239 (#1222)
Co-authored-by: Guillaume Ballet <3272758+gballet@users.noreply.github.com>
2025-08-04 11:53:31 +08:00
Daniel Liu
1d9fd6bdd2
core: show db error-info in case of mismatched hash root #26870 (#1220)
When a database failure occurs, bubble it up a into statedb, and report it in suitable places, such as during a 'bad block' report.

Co-authored-by: rjl493456442 <garyrong0905@gmail.com>
2025-08-04 11:51:47 +08:00
Daniel Liu
cb888541c5
core, trie: add state metrics #23433 (#1071) 2025-08-04 11:19:42 +08:00
Daniel Liu
52f5766059
core: pre-allocate in Copy() #25279 (#1213) 2025-07-28 16:57:51 +08:00
Daniel Liu
390ea247d3
cmd/XDC: fixes db unavailability for chain commands #21415 (#1204) 2025-07-28 16:56:37 +08:00
Daniel Liu
2eac17980c
core/state: avoid statedb.dbErr due to emptyCode #21051 (#1197) 2025-07-28 16:55:29 +08:00
Daniel Liu
cdd48dd4de
core/state: fix staticcheck warnings #20357 (#1193) 2025-07-28 16:53:27 +08:00
Daniel Liu
77522e51ec
core, trie: decode the value for storage dump #19943 (#1189)
* core, trie: decode the value for storage dump

* core/state: address comment

Co-authored-by: gary rong <garyrong0905@gmail.com>
2025-07-28 16:52:06 +08:00
Daniel Liu
cf5766177a
trie: remove the duplicate write for preimage #23001 (#1068) 2025-07-28 16:50:39 +08:00
Daniel Liu
f552cebfcd
trie: remove redundant returns + use stacktrie where applicable #22760 (#1066)
* trie: add benchmark for proofless range

* trie: remove unused returns + use stacktrie

Co-authored-by: Martin Holst Swende <martin@swende.se>
2025-07-28 16:49:31 +08:00
benjamin202410
db9c3de1dc
add syncinfo pool (#1236)
* add syncinfo message into pool for process later

* add missing file back

---------

Co-authored-by: liam.lai <liam.lai@us>
2025-07-28 01:43:41 -07:00
Daniel Liu
85f08c7732
eth: skip VerifyHeader in traceBlock to fix #1185 (#1265) 2025-07-26 18:18:50 +08:00
Daniel Liu
fd96101af7
eth: make tracers respect pre-EIP158/161 rules #18503 (#1250) 2025-07-26 18:17:48 +08:00
Daniel Liu
db48539c17
eth/tracers: expose gas used in tx to js tracer #22038 (#1249) 2025-07-26 18:16:06 +08:00
Daniel Liu
f87caf0b58
eth/tracers: fix benchmarks #23806 (#1262) 2025-07-26 17:48:42 +08:00
Daniel Liu
f3e346c471
params: prettier output of V2Config Description (#1259) 2025-07-26 17:47:54 +08:00
Daniel Liu
23a83dce3e
consensus, eth/tracers: remove redundant import names #21903 (#1248) 2025-07-26 17:47:14 +08:00
Daniel Liu
c41a96d179
eth/tracers: fix comments (#1247) 2025-07-26 17:46:15 +08:00
Daniel Liu
7bb2c7793b
core/vm: delete unused error #29062 (#1245) 2025-07-26 17:45:31 +08:00
Daniel Liu
6f6e08f83b
core/vm: prevent overflow #29023 (#1244) 2025-07-26 17:44:45 +08:00
Daniel Liu
42d3549e2c
core: using math.MaxUint64 instead of 0xffffffffffffffff #29022 #29024 (#1243) 2025-07-26 17:43:36 +08:00
Daniel Liu
5561c27308
core: fix typos (#1237)
fixes various typos in core

Co-authored-by: 0xbstn <bastien-bouge@hotmail.fr>
2025-07-26 17:42:50 +08:00
Daniel Liu
32b929e781
core/vm/runtime: add Random field to config #28001 (#1234) 2025-07-26 17:41:56 +08:00
Daniel Liu
9f360824a9
crypto/bn256: add documentation on subgroup checks for G2 #32066 (#1232)
This PR improves the IsOnCurve methods for BN254 G2 points by:

* Clarifying its behavior the docstring, making it explicit that it
verifies both the point being on the curve and in the correct subgroup.

* Adding an in-line comment explaining the subgroup membership check
(c.Mul(Order)).

 * Minor wording adjustments for readability and consistency.

Co-authored-by: Antonio Sanso <antonio.sanso@gmail.com>
2025-07-26 17:41:09 +08:00
Daniel Liu
f5ad8091e2
crypto/bn256/cloudflare: pull in upstream fix for R27 and R29 usage #32057 (#1229)
Pulls in https://github.com/cloudflare/bn256/pull/48 to remove usage of
R27 and R29 [which are reserved](https://go.dev/doc/asm#arm64).

Co-authored-by: Stephen Buttolph <stephen@avalabs.org>
2025-07-26 17:39:28 +08:00
Daniel Liu
0fd51f13a1
tests/fuzzers: added bn marshaling fuzzers #32053 (#1228)
Adds marshaling fuzzing for G1 and G2 to oss-fuzz.

Also aligns the behavior of the google library to that of gnark and
cloudflare, which only ever read the first 64 / 128 bytes of the input,
regardless of how long the input is

Co-authored-by: Marius van der Wijden <m.vanderwijden@live.de>
2025-07-26 17:36:58 +08:00
Daniel Liu
f30a126380
crypto/bn256: fix gnark deserialisation #32055 (#1227)
fixes the gnark deserialisation

---------

Co-authored-by: kevaundray <kevtheappdev@gmail.com>
Co-authored-by: Felix Lange <fjl@twurst.com>
2025-07-26 17:35:13 +08:00
Daniel Liu
d06f219dc3
crypto: use pure Go signature implementation in tinygo #31878 (#1226)
tinygo is having problems compiling the C implementation

Co-authored-by: Ömer Faruk Irmak <omerfirmak@gmail.com>
2025-07-26 17:33:55 +08:00
Daniel Liu
badb46ce2b
crypto: remove kgz4844 (#1225) 2025-07-26 17:32:07 +08:00
Wanwiset Peerapatanapokin
957d6093a3
Merge pull request #1230 from XinFinOrg/v1compatible-getblockbyepochnumber
make XDPoS_getBlockInfoByEpochNum work with v1 epoch number
2025-07-19 09:30:08 +07:00
Wanwiset Peerapatanapokin
f74924fe51
Merge pull request #1221 from XinFinOrg/update-devnet-cicd
Update Devnet CICD
2025-07-19 09:08:58 +07:00
Daniel Liu
8f76709a10
core/vm, go.mod: update uint256 to v1.3.2 and use faster method #30868 (#1241) 2025-07-17 17:56:53 +08:00
Daniel Liu
a9d4fffc97
trie: move fuzzers into native packages #28467 (#1239) 2025-07-17 17:55:19 +08:00
Daniel Liu
4b4980d949
core/vm: set basefee to 0 internally on eth_call #28470 (#1238) 2025-07-17 17:54:23 +08:00
Daniel Liu
dc01dba464
core/vm: minor code formatting #28199 (#1235)
Adding a space beween function opOrigin() and opcCaller() in instruciton.go.
Adding a space beween function opkeccak256()  and opAddress() in instruciton.go.

Co-authored-by: hzysvilla <ecjgvmhc@gmail.com>
2025-07-17 17:53:02 +08:00