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
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
Daniel Liu
c46302cf65
all: fix invalid signer list on checkpoint block for trace api #1185 ( #1186 )
2025-07-12 06:56:30 +08:00
Daniel Liu
ae006030c6
core: fill blockNumber in logs #26345 ( #1215 )
2025-07-11 10:53:48 +08:00
Daniel Liu
6f84f67a15
core: rename CommitTrie to commitTrie #25896 ( #1214 )
2025-07-11 10:48:10 +08:00
Daniel Liu
34a245fbc8
all: use common.FileExist for checking file existence #24748 ( #1212 )
2025-07-11 10:42:51 +08:00
Daniel Liu
f272ce1123
core/rawdb: add func HasCodeWithPrefix and HasTrieNode #24117 ( #1210 )
2025-07-11 10:37:10 +08:00
Daniel Liu
9a50df0b62
core/rawdb: do prefixed lookup first #24288 ( #1209 )
...
Co-authored-by: Martin Holst Swende <martin@swende.se>
2025-07-11 10:22:26 +08:00
Daniel Liu
495a8b919a
core/state: simplify meter code #24304 ( #1208 )
2025-07-11 10:15:16 +08:00
Daniel Liu
906f07736e
core/state: remove unuseful code #23092 ( #1207 )
2025-07-11 10:09:56 +08:00
Daniel Liu
f98fbc7dc7
core/state: fix database leak and copy tests #19306 ( #1192 )
...
Co-authored-by: zcheng9 <zcheng9@hawk.iit.edu>
2025-07-11 09:58:59 +08:00
Daniel Liu
ef0fe4ed95
core/state: revert noop finalise, fix copy-commit-copy #20113 ( #1191 )
2025-07-11 09:52:31 +08:00
Daniel Liu
be97571471
core/state: fix state object deep copy #20100 ( #1190 )
2025-07-11 09:47:37 +08:00
Daniel Liu
16638e9e17
core/state: avoid unnecessary conversions #19870 ( #1188 )
2025-07-11 09:42:20 +08:00
Daniel Liu
220b2f4174
core/state: fix random test args #19255 ( #1187 )
...
Co-authored-by: Sheldon <11510383@mail.sustc.edu.cn>
2025-07-11 09:37:51 +08:00
Daniel Liu
618a8dd247
core, cmd: streaming json output for command #15475 ( #1184 )
2025-07-11 09:29:13 +08:00
Daniel Liu
9affb6a582
core/state: memory efficient, add AddPreimage test #16663 ( #1182 )
2025-07-02 14:53:00 +08:00
Daniel Liu
b4f4b95634
core/state: rename new variable #18301 ( #1178 )
2025-07-02 14:13:47 +08:00
Daniel Liu
957e9d8d05
core/state: remove lock #18065 ( #1174 )
2025-07-02 14:13:06 +08:00
Daniel Liu
801e92b56d
XDCx, consensus: fix some typos ( #1173 )
2025-07-02 14:12:11 +08:00
Daniel Liu
e24293a49c
core, eth: fix tracer dirty finalization #16588 ( #1172 )
2025-07-02 14:11:22 +08:00
Daniel Liu
4c5d1bd95e
core: change handling of dirty objects in state #15225 #16485 #16491 ( #1171 )
...
* core: change handling of dirty objects in state #15225
* core/state: fix bug in copy of copy State #16485
* core/state: fix ripemd-cornercase in Copy #16491
2025-07-02 14:07:21 +08:00
JukLee0ira
87ed24a113
all: update to golangci-lint 1.61.0 #30587 ( #1181 )
...
Co-authored-by: Martin Holst Swende <martin@swende.se>
2025-07-01 18:10:05 +08:00
Daniel Liu
dbe173e794
core, trie: speed up some tests with quadratic processing flaw #21987 ( #1057 )
2025-06-25 16:17:05 +08:00
JukLee0ira
a74b87307c
all: use strings.EqualFold for string comparison #24890 ( #1134 )
2025-06-23 16:00:32 +08:00
Daniel Liu
937b3d75e0
core, eth, trie: prepare trie sync for path based operation #21504 ( #1046 )
2025-06-21 08:30:25 +08:00
Daniel Liu
7feff61647
core/state: remove toAddr helper in tests #22772 ( #1100 )
2025-06-17 13:33:47 +08:00
Daniel Liu
6200e8d7de
core, trie: change format 0x%x to %#x #25221 ( #1094 )
2025-06-17 13:31:20 +08:00
Daniel Liu
f07824db20
core, ethdb, tests, trie: implement NewBatchWithSize API for batcher #24392 ( #1085 )
2025-06-17 13:26:50 +08:00
Daniel Liu
45d89bd4d1
trie: faster snapshot generation #22504 ( #1062 )
2025-06-17 13:13:14 +08:00
Daniel Liu
93c2745b7b
all: disable recording preimage of trie keys #21402 ( #1054 )
2025-06-17 13:10:47 +08:00
Daniel Liu
e8c9fdde0f
eth/downloader: refactor downloader + queue #21263 ( #1041 )
...
* eth/downloader: refactor downloader + queue
downloader, fetcher: throttle-metrics, fetcher filter improvements, standalone resultcache
downloader: more accurate deliverytime calculation, less mem overhead in state requests
downloader/queue: increase underlying buffer of results, new throttle mechanism
eth/downloader: updates to tests
eth/downloader: fix up some review concerns
eth/downloader/queue: minor fixes
eth/downloader: minor fixes after review call
eth/downloader: testcases for queue.go
eth/downloader: minor change, don't set progress unless progress...
eth/downloader: fix flaw which prevented useless peers from being dropped
eth/downloader: try to fix tests
eth/downloader: verify non-deliveries against advertised remote head
eth/downloader: fix flaw with checking closed-status causing hang
eth/downloader: hashing avoidance
eth/downloader: review concerns + simplify resultcache and queue
eth/downloader: add back some locks, address review concerns
downloader/queue: fix remaining lock flaw
* eth/downloader: nitpick fixes
* eth/downloader: remove the *2*3/4 throttling threshold dance
* eth/downloader: print correct throttle threshold in stats
Co-authored-by: Martin Holst Swende <martin@swende.se>
Co-authored-by: Péter Szilágyi <peterke@gmail.com>
2025-06-17 13:01:06 +08:00
wgr523
e13265a7d7
record total minted into smart contract ( #1026 )
...
* feat: record total minted into smart contract
* feat: GetCurrentTotalMinted API
2025-06-16 02:31:33 -07: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
4fabc43a01
core/vm: fix invalid merkle root caused by PR #627 ( #1033 )
2025-05-14 16:47:53 +08:00
Daniel Liu
26a9ea539f
core, rpc: speed up tests #28461 ( #1008 )
2025-04-29 16:57:58 +08:00
Daniel Liu
57c40154be
core: use atomic type #27011
2025-04-28 16:57:56 +08:00
Daniel Liu
9a06e129b8
core: simplify atomic store after writeBlockWithState #20798
2025-04-28 16:57:56 +08:00
Daniel Liu
1d3e5cb455
core: prefetch next block state concurrently #19328
2025-04-28 16:57:56 +08:00
Daniel Liu
c02ab17b17
core: use headers only where blocks are unnecessary #19261 ( #984 )
2025-04-28 06:46:40 +08:00
Daniel Liu
08dbbe705d
core: fix error in block iterator #18986
2025-04-25 08:03:58 +08:00
Daniel Liu
ff435e081f
core: rework blockchain import #17973
2025-04-25 08:03:58 +08:00
Daniel Liu
a997425b03
all: fix warning of DeepEqual on error #23624 ( #960 )
2025-04-24 18:31:47 +08:00
Daniel Liu
ab0ce75ede
core: simplify code of trading and lending state ( #949 )
2025-04-24 18:00:21 +08:00
Daniel Liu
733a1be4dc
common, core: add block age into info logs #17718 ( #947 )
2025-04-24 17:56:54 +08:00
Daniel Liu
e974d96977
core/txpool: accept non-local transaction with zero tip ( #950 )
2025-04-21 16:11:43 +08:00
Daniel Liu
b9a6c8c32d
cmd, core, eth, trie: add trie read caching layer ( #18087 ) ( #946 )
2025-04-16 17:27:43 +08:00
Daniel Liu
734abb26dc
Revert "core/types: fix wrong hash after EIP-1559 for EncodeIndex in PR #933 ( #939 )"
...
This reverts commit 0cc4813e48 .
2025-04-12 11:30:50 +08:00
Daniel Liu
0cc4813e48
core/types: fix wrong hash after EIP-1559 for EncodeIndex in PR #933 ( #939 )
2025-04-09 00:05:21 +08:00
Daniel Liu
3eb9f63513
core/types: implement DerivableList interface for transactions and receipts ( #21502 )
2025-04-07 16:44:32 +08:00
Daniel Liu
5b8c267122
trie: use trie.NewStackTrie instead of new(trie.Trie) ( #22246 )
2025-04-07 16:44:32 +08:00
Daniel Liu
54f73e471f
trie: Derivesha with stacktrie ( #21407 )
2025-04-07 16:44:32 +08:00
Daniel Liu
a4c7d7f458
all: clean duplicate constants in package common
2025-04-07 16:43:01 +08:00
Daniel Liu
ff7bcf8d15
core/state: separate hashes and committer, collapse on commit ( #20481 )
2025-03-28 22:34:59 +08:00
Daniel Liu
db4dc24094
core/state: accumulate writes and only update tries when must ( #19953 )
2025-03-28 22:34:59 +08:00
Daniel Liu
c73a0aa929
core/state: fix state iterator ( #19127 )
2025-03-28 22:34:59 +08:00
Daniel Liu
3fd025e814
core/state: optimize state object and storage iteration according to EIP-1283 ( #17383 )
2025-03-28 22:34:59 +08:00
Daniel Liu
f2f2044470
core/txpool: fix zero tip tx always pending
2025-03-25 11:56:46 +08:00
Daniel Liu
a9b9f53701
core, eth, trie: add a prefix to contract code (21080)
2025-03-24 22:31:03 +08:00
Daniel Liu
6285a4fe05
core: improve commit genesis
2025-03-20 14:15:09 +08:00
Daniel Liu
6ec0d13873
core/txpool, crypto, node: fix os.CreateTemp in test ( #31172 )
2025-03-19 18:02:46 +08:00
Daniel Liu
3856e16d8c
core: initialize current block/fastblock atomics to nil (19352)
2025-03-19 17:46:12 +08:00
Daniel Liu
3837d0c2cc
core, cmd/XDC: fix wrong hash caused by EIP-1559 number when init genesis
2025-03-13 16:55:09 +08:00
Daniel Liu
0273448333
core, eth/downloader: fix validation and downloader printout flaw ( #17974 )
2025-03-11 13:24:02 +08:00
Daniel Liu
2697703c0f
core, eth, params: make indexer configurable ( #17188 )
2025-03-10 15:41:53 +08:00
Daniel Liu
f039b26e7a
light: CHT and bloom trie indexers working in light mode ( #16534 )
2025-03-06 15:30:48 +08:00
Daniel Liu
3976617ac2
core, light, params: clean genesis hash
2025-03-05 14:30:39 +08:00
Daniel Liu
6e8fe5121d
eth/downloader: speed up tests by generating chain only once ( #17916 )
2025-03-01 15:55:27 +08:00
Daniel Liu
588dcd35ce
cmd, common, core, eth: optimize rollback by flag
2025-03-01 11:34:32 +08:00
Daniel Liu
3adec81483
downloader: different sync strategy ( #18085 )
2025-02-26 15:06:08 +08:00
Daniel Liu
cc5359e063
core: fix integer divide by zero in function ValidateHeaderChain
2025-02-26 14:30:57 +08:00
JukLee0ira
620eaa7443
core: remove the duplicate func getProcInterrupt
2025-02-26 14:27:21 +08:00
Daniel Liu
7017077508
cmd/XDC, core/rawdb: add db command inspect
2025-02-21 15:32:35 +08:00
Daniel Liu
b60396a233
core, internal/ethapi: improve function IsSpecialTransaction
2025-02-20 12:48:17 +08:00
Daniel Liu
4f8d11e11d
core: fix BlockSigner tx cause debug API fail after EIP-1559
2025-02-20 12:35:24 +08:00
Daniel Liu
783d46f29e
core/types: remove unused error variables
2025-02-20 11:46:49 +08:00
Daniel Liu
98cff5d6c2
all: remove network rinkeby
2025-02-19 15:52:29 +08:00
Daniel Liu
54b4be1aa2
cmd, core: add flag mainet and devnet
2025-02-19 14:24:20 +08:00
Daniel Liu
1d653e57ab
cmd, core: merge flags testnet and apothem
2025-02-19 14:24:20 +08:00
Daniel Liu
30195e88ee
core/vm: enable cancun instruction set
2025-02-19 14:20:45 +08:00
Daniel Liu
6eebfd340f
core: tidy up genesis alloc
2025-02-19 14:15:09 +08:00
Daniel Liu
3fc7eeff8a
params: print chain configuration in more detail
2025-02-17 10:05:50 +08:00
Daniel Liu
cfc8cca674
common: refactor constants
2025-02-17 09:13:40 +08:00
Daniel Liu
511a372f14
core/vm: BLOBHASH opcode 0x49 ( #27356 )
2025-02-11 18:31:30 +08:00
Daniel Liu
d8fb27b987
all: clean up and properly abstract database accesses ( #19021 )
2025-02-11 18:28:50 +08:00
Daniel Liu
af4a3b0f9f
core/vm: implement BLOBBASEFEE opcode 0x4a ( #28098 )
2025-02-10 10:58:59 +08:00
Daniel Liu
c08d4ff4a6
core/state, core/vm: implement EIP 6780 ( #27189 )
2025-02-07 14:52:29 +08:00
Daniel Liu
186d49b1f3
core/vm: use types.EmptyCodeHash ( #27729 )
2025-02-07 13:50:48 +08:00
Daniel Liu
ebb2c3b2ea
all: new empty trie with types.EmptyRootHash instead of null ( #27230 )
2025-02-07 13:04:45 +08:00
Daniel Liu
6d40cdf7c0
core/vm: implement EIP-5656, mcopy instruction ( #26181 )
2025-02-06 16:54:19 +08:00
Daniel Liu
240de84287
core/vm: define cancun + enable 1153 (tstore/tload) in cancun ( #27663 )
2025-02-05 18:16:17 +08:00
Daniel Liu
07fd1c64cf
core/vm: order opcodes properly (#27113)
2025-02-05 18:16:17 +08:00
Daniel Liu
4bbcd988b2
params: remove EIP150Hash from chainconfig ( #27087 )
2025-02-05 18:16:17 +08:00
Daniel Liu
3f58066879
all: remove debug field from vm config ( #27048 )
2025-02-05 18:16:17 +08:00
joohhnnn
6473d18cdb
core/vm: clarify comment ( #27045 )
2025-02-05 18:16:17 +08:00
Daniel Liu
551e3594cf
core/vm: use atomic.Bool ( #26951 )
2025-02-05 18:16:17 +08:00
Daniel Liu
4190465c53
core/vm: expose jumptable constructors ( #26880 )
2025-02-05 18:16:17 +08:00
Daniel Liu
e7d8e14298
core: improve the format of report block
2025-02-05 12:59:20 +08:00
Daniel Liu
ef71887d7a
accounts, cmd/geth, core: close opened files ( #29598 )
...
* fix: open file used up but not closed
* feat: more same case
* feat: accept conversation
2025-01-24 16:54:12 +08:00
Daniel Liu
b6f3007af1
core: move genesis alloc types to core/types ( #29003 )
2025-01-24 16:54:12 +08:00
Daniel Liu
0f737b4725
core: replace suicide with selfdestruct to improve code consistency ( #27716 )
2025-01-24 16:54:12 +08:00
Daniel Liu
5b10b2441c
all: use T.TempDir to create temporary test directories ( #24633 )
2025-01-24 16:54:08 +08:00
Daniel Liu
fb85aca8d8
accounts/abi/bind: allow specifying signer on transactOpts ( #21356 )
2025-01-24 16:18:30 +08:00
Daniel Liu
2ff9f336ed
core: improve contextual information on core errors ( #21869 )
2025-01-24 16:18:30 +08:00
Daniel Liu
d8c9ad3c9f
all: replace RWMutex with Mutex in places where RLock is not used ( #21622 )
2025-01-24 16:18:30 +08:00
Daniel Liu
5b48621c36
accouts, core: fix some comments ( #21617 )
2025-01-24 16:18:30 +08:00
Daniel Liu
b0063d39b9
accounts/abi: ABI explicit difference between Unpack and UnpackIntoInterface ( #21091 )
...
* accounts/abi: refactored abi.Unpack
* accounts/abi/bind: fixed error
* accounts/abi/bind: modified template
* accounts/abi/bind: added ToStruct for conversion
* accounts/abi: reenabled tests
* accounts/abi: fixed tests
* accounts/abi: fixed tests for packing/unpacking
* accounts/abi: fixed tests
* accounts/abi: added more logic to ToStruct
* accounts/abi/bind: fixed template
* accounts/abi/bind: fixed ToStruct conversion
* accounts/abi/: removed unused code
* accounts/abi: updated template
* accounts/abi: refactored unused code
* contracts/checkpointoracle: updated contracts to sol ^0.6.0
* accounts/abi: refactored reflection logic
* accounts/abi: less code duplication in Unpack*
* accounts/abi: fixed rebasing bug
* fix a few typos in comments
* rebase on master
Co-authored-by: Guillaume Ballet <gballet@gmail.com>
2025-01-24 16:18:30 +08:00
Daniel Liu
6d17a42edb
all: replace t.Log(); t.FailNow() with t.Fatal() ( #19849 )
2025-01-24 16:18:29 +08:00
Daniel Liu
002fac8b14
all: remove the duplicate 'the' in annotations ( #17509 )
2025-01-24 16:18:28 +08:00
Daniel Liu
85fc56733f
core: lookup txs by block number instead of block hash ( #19431 )
2025-01-24 15:52:43 +08:00
Daniel Liu
2b8b7e68f7
all: avoid storing computable receipt metadata ( #19345 )
2025-01-24 15:52:43 +08:00
Daniel Liu
92f0d07e6d
core: remove unnecessary fields in log ( #17106 #19182 )
2025-01-24 15:52:43 +08:00
Daniel Liu
97c50f97bb
all: add read-only option to database
2025-01-24 14:24:39 +08:00
JukLee0ira
197291443f
core, light: handle the nil return value of GetBlockNumber, fix #517
2025-01-23 13:57:07 +08:00
Daniel Liu
cbdf0e69f9
core: refactor function reorg ( #23761 , #24616 , #24996 , #30600 )
2025-01-22 15:23:37 +08:00
Daniel Liu
adba311c5c
Merge pull request #788 from JukLee0ira/Migrate-to-rawdb
...
core/rawdb: separate raw database access to own package
2025-01-22 15:21:38 +08:00
JukLee0ira
653b59710e
core/rawdb: separate raw database access to own package ( #16666 #19345 )
2025-01-22 15:19:39 +08:00
Daniel Liu
6794504d40
all: update files by 'go generate ./...'
2025-01-22 15:10:52 +08:00
Daniel Liu
5740ca1fe4
core/types: remove extra byte when EncodeRLP for Receipt
2025-01-22 15:07:10 +08:00
JukLee0ira
f7b591ffe3
eth/tracers: add a golang tracer to locate contracts ( #23708 )
2025-01-22 12:37:37 +08:00
Daniel Liu
588f61661c
build: add imports for go generate tools ( #24682 )
2025-01-20 11:52:59 +08:00
Daniel Liu
47a67158e5
core/types: remove generate directive for gen_tx_json.go
2025-01-14 11:50:20 +08:00
Daniel Liu
911fe219df
Merge pull request #779 from gzliudan/core_blockchain
...
upgrade the core package for reorg
2024-12-28 13:05:40 +08:00
benjamin202410
3e62a4c611
Merge pull request #778 from XinFinOrg/release-br-v2.4.6-beta1-dev-upgrade
...
Release br v2.4.6 beta1 merge back to dev upgrade
2024-12-27 20:07:41 -08:00
Daniel Liu
c8c39efb63
core: remove unnecessary log copy ( #27475 )
2024-12-28 10:45:00 +08:00
Daniel Liu
d03859d49e
core: update the fast block on chain import at the end of the fast sync phase ( #23576 )
2024-12-28 10:44:54 +08:00
Daniel Liu
2baadc6e87
core: improve shutdown synchronization in BlockChain ( #22853 )
2024-12-28 10:44:49 +08:00
Daniel Liu
2d5dc550d0
core/rawdb: rename WriteTxLookupEntries to WriteTxLookupEntriesByBlock ( #21480 )
2024-12-28 10:44:42 +08:00
Daniel Liu
d7e0e9d734
core: write chain data in atomic way ( #20287 )
2024-12-28 10:44:36 +08:00
Daniel Liu
1c555b2def
core, light: get rid of the dual mutexes ( #18436 )
2024-12-28 10:44:30 +08:00
Daniel Liu
6e33633d28
common: drop BigMin and BigMax, they pollute our dep graph ( #30645 )
2024-12-28 09:06:31 +08:00
Daniel Liu
6ec35b9644
all: get rid of custom MaxUint64 and MaxUint64 ( #30636 )
2024-12-28 09:06:31 +08:00
Daniel Liu
ff13d16fe5
core/vm: make structlog/json-log stack hex again ( #28628 )
2024-12-28 09:06:31 +08:00
Daniel Liu
4cc2b2ea5f
tests/fuzzers: move fuzzers into native packages ( #28467 )
2024-12-28 09:06:31 +08:00
Daniel Liu
441f8ed70c
common: add variable MaxHash ( #28306 )
2024-12-28 09:06:31 +08:00
Péter Szilágyi
39e9d8f94d
common/prque: generic priority queue ( #26290 )
2024-12-28 09:06:31 +08:00
Daniel Liu
28739d7863
common: remove usage of deprecated function ( #21610 )
2024-12-28 09:06:30 +08:00
Daniel Liu
56e242b06c
core/state: optimize some internals during encoding ( #20038 )
2024-12-28 09:06:30 +08:00
Daniel Liu
cd1ff5d322
common: remove function Big() for type Address ( #19210 )
2024-12-28 09:06:30 +08:00
Daniel Liu
f19422e1c7
cmd/utils: relinquish GC cache to read cache in archive mode ( #18991 )
2024-12-28 09:06:30 +08:00
Daniel Liu
89c51c5e69
common: improve documentation comments ( #16701 )
2024-12-28 09:06:30 +08:00
Daniel Liu
240757a1ce
all: remove empty function SaveData()
2024-12-28 09:04:02 +08:00
JukLee0ira
48d1f22fde
all: simplify function TransitionDb ( #20830 )
2024-12-28 09:02:48 +08:00
liam.lai
77f9cc59ec
merge from dev-upgrade
2024-12-27 10:03:54 -08:00
Daniel Liu
e2afaec8b0
core: remove unused variables in BlockChain struct
2024-12-25 17:25:51 +08:00
Daniel Liu
a5c48e77bd
core: remove unused function writeHeader
2024-12-25 17:22:28 +08:00
Daniel Liu
6114a3a13b
core: remove unused function reorgTxMatches
2024-12-25 17:17:25 +08:00
liam.lai
00785b096f
fix tc cross epoch different masternode counts issue
2024-12-22 19:34:09 -08:00
Daniel Liu
82ff8c19a0
all: remove uses of untyped golang-lru
2024-12-21 14:39:26 +08:00