Daniel Liu
bc5794cdf5
core: refactor read and write valid sections ( #1808 )
2025-12-08 15:07:33 +05:30
Daniel Liu
348b7fa68f
consensus/XDPoS, core/rawdb: stop node if fail to store snapshot ( #1803 )
2025-12-08 15:07:22 +05:30
wit liu
d6309612fc
all: fix unnecessary whitespace ( #1800 )
2025-12-08 15:07:11 +05:30
Daniel Liu
28efc50013
build: fix make generate not print changed files ( #1820 )
2025-12-08 15:06:08 +05:30
Daniel Liu
01b8fce6e3
cmd/utils, internal/flags: deprecate flag XDCx-dbName and XDCx.dbName ( #1823 )
2025-12-08 15:05:25 +05:30
Daniel Liu
47501c8834
core/state, trie: remove unused error-return from trie Commit operation #26641 ( #1135 )
...
Co-authored-by: Martin Holst Swende <martin@swende.se>
2025-12-08 15:05:11 +05:30
wit liu
ea3a55aef4
all: fix invalid directive syntax for golangci-lint nolint ( #1799 )
2025-12-08 13:02:54 +05:30
Daniel Liu
bfbb024dc4
core/vm/program: evm bytecode-building utility #30725 ( #1801 )
...
In many cases, there is a need to create somewhat nontrivial bytecode. A
recent example is the verkle statetests, where we want a `CREATE2`- op
to create a contract, which can then be invoked, and when invoked does a
selfdestruct-to-self.
It is overkill to go full solidity, but it is also a bit tricky do
assemble this by concatenating bytes. This PR takes an approach that
has been used in in goevmlab for several years.
Using this utility, the case can be expressed as:
```golang
// Some runtime code
runtime := program.New().Ops(vm.ADDRESS, vm.SELFDESTRUCT).Bytecode()
// A constructor returning the runtime code
initcode := program.New().ReturnData(runtime).Bytecode()
// A factory invoking the constructor
outer := program.New().Create2AndCall(initcode, nil).Bytecode()
```
We have a lot of places in the codebase where we concatenate bytes, cast
from `vm.OpCode` . By taking tihs approach instead, thos places can be made a
bit more maintainable/robust.
Co-authored-by: Martin HS <martin@swende.se>
2025-12-08 13:01:55 +05:30
wit liu
0aeb971b33
p2p: fix unused warnings ( #1804 )
2025-12-08 13:01:07 +05:30
Daniel Liu
6450d5bbb9
core/rawdb: refactor func WriteChainConfig ( #1805 )
2025-12-08 13:00:25 +05:30
Daniel Liu
e3efe5e0bb
core: refactor read and write section head ( #1809 )
2025-12-08 12:59:23 +05:30
Daniel Liu
8c42c02bde
Makefile, build: remove unused xgo ( #1812 )
2025-12-08 12:58:22 +05:30
Daniel Liu
67df2bcb29
internal/ethapi: explicitly return chain id for EIP-155 legacy txs #25155 #25244 ( #1813 )
2025-12-08 12:57:49 +05:30
wit liu
0ef3edf183
consensus: fix unused warnings ( #1815 )
2025-12-08 12:57:14 +05:30
Daniel Liu
0c2b0f3234
internal/ethapi: eth api changes needed #27928 ( #1818 )
2025-12-08 12:56:40 +05:30
wit liu
8664487b0c
tests: delete unused parameter ( #1819 )
2025-12-08 12:55:54 +05:30
Daniel Liu
601d3c101e
go.mod: tidy go mod file ( #1821 )
2025-12-08 12:55:12 +05:30
Daniel Liu
52f682065a
eth/ethconfig: update file gen_config.go ( #1822 )
2025-12-08 12:54:20 +05:30
Daniel Liu
8eb5fa7666
cmd: remove slave mode and flag XDCSlaveModeFlag ( #1824 )
2025-12-08 12:53:05 +05:30
wit liu
016ab30c50
bmt: fix unused warnings ( #1825 )
2025-12-08 12:52:37 +05:30
wit liu
013098e59d
build: update golangci-lint to v2.6.2 ( #1826 )
2025-12-08 12:51:43 +05:30
Daniel Liu
640d448491
cmd/XDC, metrics/prometheus: fix staticcheck QF1012 ( #1713 )
2025-12-07 16:03:06 +05:30
Daniel Liu
8129ac77cd
core/types: implement encode/decode for TxData interface #27841 ( #1795 )
2025-12-07 15:52:27 +05:30
Daniel Liu
4881c9445a
core, eth: for types with accurate size calcs, return uint64 #26046 ( #1791 )
2025-12-07 15:52:03 +05:30
Daniel Liu
eaaeea0cad
all: use slices.Sort() to sort strings ( #1712 )
2025-12-07 15:49:13 +05:30
Daniel Liu
1990e73b3c
core, eth/hooks, internal/ethapi: rename xdc sort package ( #1707 )
2025-12-07 15:47:49 +05:30
Daniel Liu
93d453c4c4
core/txpool: remove a redundant heap.Init #28910 ( #1706 )
2025-12-07 15:47:20 +05:30
Daniel Liu
35c905a131
p2p: use slices package for sorting #27494 ( #1705 )
2025-12-07 15:44:25 +05:30
Daniel Liu
8be96e4622
trie: use slices package for sorting #27496 ( #1703 )
2025-12-07 15:43:53 +05:30
Daniel Liu
b4b6328544
eth: use slices package for sorting #27490 ( #1702 )
2025-12-07 15:43:37 +05:30
Daniel Liu
62dbd3bceb
core: use slices package for sorting #27489 #27909 ( #1701 )
2025-12-07 15:43:24 +05:30
Daniel Liu
0ad629d484
p2p: use package slices to sort in PeersInfo #29957 ( #1700 )
2025-12-07 15:42:51 +05:30
Daniel Liu
c922f26d0c
all: replace strings.Split with more efficient strings.SplitSeq ( #1698 )
2025-12-07 15:42:23 +05:30
Daniel Liu
4d790e6c45
params: refactor Description() for ChainConfig ( #1697 )
2025-12-07 15:40:07 +05:30
wit liu
5ada9b8866
core: fix unused warnings ( #1811 )
2025-12-07 15:39:31 +05:30
Daniel Liu
940fd2adbd
core, trie: port changes from pbss #26637 ( #1127 )
2025-12-07 15:38:38 +05:30
wit liu
fd78323211
cmd/utils: deprecate flag enable-0x-prefix ( #1829 )
2025-12-07 15:36:52 +05:30
wit liu
66e96b507c
all: use 0x-prefix for Address type in log ( #1830 )
2025-12-07 15:36:36 +05:30
Daniel Liu
c6c5778632
params: define prague block #26481 #26880 ( #1836 )
2025-12-07 15:36:02 +05:30
Wanwiset Peerapatanapokin
e617598d1d
consensus: verify timeout from epochInfo instead of snap.NextEpochCandidates, close XFN-62 ( #1628 )
2025-12-06 15:05:49 +05:30
wit liu
fac866138b
cmd/utils: fix disabling cache preimages through config file #33330 ( #1837 )
2025-12-04 10:32:10 +05:30
Daniel Liu
4c098ddf1f
core/vm: fold EVMInterpreter into EVM #32352 ( #1838 )
2025-12-04 10:31:40 +05:30
wit liu
10ac141b76
eth: use consistent receiver name for downloadTester ( #1797 )
2025-12-04 08:04:05 +05:30
wit liu
dfaa7fc19f
internal: remove extra space before XDPoS entry ( #1796 )
2025-12-04 08:03:45 +05:30
wit liu
8dd497dd01
internal: deref gasUsed pointer in eth_simulate log #33192 ( #1794 )
2025-12-04 08:03:22 +05:30
Daniel Liu
af7e479ce9
consensus/XDPoS: use slices package for sorting ( #1710 )
2025-12-04 08:02:58 +05:30
Daniel Liu
ec08863ba0
all: use WaigGroup.Go() to simplify code ( #1699 )
2025-11-29 17:17:08 +05:30
Daniel Liu
e6b1fe9595
params: compare V2 between different versions, close XFN-45 ( #1807 )
2025-11-27 13:29:35 +05:30
Daniel Liu
25f07b1040
build, internal, Makefile: upgrade package build ( #1746 )
2025-11-24 12:51:09 +05:30
wit liu
c53b38e5fe
internal/jsre: pass only extra args to setTimeout/setInterval callbacks#32936 ( #1782 )
2025-11-24 11:00:44 +05:30