Daniel Liu
50210d90e3
refactor(all): remove term whitelist and blacklist ( #1994 )
2026-02-10 17:09:21 +05:30
Daniel Liu
85f2bebfd1
refactor(all): move genesis initialization to blockchain #25523 ( #2018 )
2026-02-10 16:56:34 +05:30
Daniel Liu
4f7159b119
fix(cmd): fix disabling discovery through config file #33279 ( #2003 )
2026-02-10 16:49:55 +05:30
Daniel Liu
e39a523260
refactor(all): cleanup the APIs for initializing genesis #25473 #26747 ( #2017 )
...
* refactor(all): cleanup the APIs for initializing genesis #25473
* fix(core): fix accessor mismatch for genesis state #26747
2026-02-07 00:18:39 +05:30
Daniel Liu
29ad6db3bd
ci: validate gofmt, tidy, and generated files before test ( #2022 )
...
Check
- gofmt
- go mod tidy
- generated files
before tests.
2026-02-06 14:43:52 +05:30
Daniel Liu
9cf795c908
perf: improve state reader with error handling and committed flag #27428 ( #1166 )
...
- Add error returns to Database.Reader() and NodeIterator() methods
- Introduce committed flag to prevent usage of tries after commit
- Update callers to handle new error signatures
- Add MustNodeIterator() helper for backward compatibility
Co-authored-by: rjl493456442 <garyrong0905@gmail.com>
2026-02-03 20:55:53 +05:30
Daniel Liu
7ce60a2a79
rpc: add a rpc.rangelimit flag #33163 ( #1957 )
2026-01-29 11:50:58 +05:30
Daniel Liu
4768d00e1e
eth/filters, cmd: add config of eth_getLogs address limit #33320 #32327 ( #1961 )
...
* eth/filters: change error code for invalid parameter errors #33320
* eth/filters, cmd: add config of eth_getLogs address limit #32327
2026-01-29 11:26:45 +05:30
Daniel Liu
5811eb69ce
cmd/XDC, internal/flags: update copyright year to 2026 ( #1943 )
2026-01-27 08:45:46 +05:30
Daniel Liu
df83610a30
cmd: fix flag variable name ( #1958 )
2026-01-19 14:05:55 +05:30
Daniel Liu
3e68f0e1d8
cmd/utils, eth: rename ApiBackend to APIBackend ( #1955 )
2026-01-16 17:27:48 +05:30
Daniel Liu
583338686f
all: expose block number information to statedb #27753 ( #1936 )
2026-01-16 15:55:04 +05:30
Daniel Liu
b3d354a897
all: move main transaction pool into a subpool #27463 ( #1890 )
2026-01-05 15:43:50 +05:30
Daniel Liu
6a3b92b701
core/types: change SetCodeTx.ChainID to uint256 #30982 ( #1840 )
2025-12-25 09:26:44 +05:30
Daniel Liu
aa8c43caf3
core/txpool: make tx validation reusable across packages/pools #27429 ( #1873 )
2025-12-23 16:28:30 +05:30
Wanwiset Peerapatanapokin
4f89e3fb24
cmd/puppeth: increase gaslimit during genesis block creation ( #1851 )
...
* increase gaslimit during genesis block creation for puppeth command
* Apply suggestion from @Copilot
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-12-23 16:27:03 +05:30
wit liu
55c2d47c45
all: use 0x-prefix string for type Address in error message ( #1835 )
2025-12-23 15:39:23 +05:30
Daniel Liu
1a9935625f
cmd/XDC: fix txpool gasPrice being overridden at checkpoints ( #1878 )
...
This commit removes two redundant SetGasPrice() calls in the startNode function that were causing multiple issues:
1. Overriding txpool's configured price limit with the miner's gas price setting, mixing two independent configurations:
- cfg.Eth.GasPrice (from --miner-gasprice --gasprice flag)
- cfg.TxPool.PriceLimit (from --txpool-pricelimit flag)
2. Reverting runtime gasPrice changes made via RPC. When users call miner_setGasPrice RPC method to adjust the gasPrice dynamically, the changes would be unexpectedly reverted at the next checkpoint when startNode re-applies cfg.Eth.GasPrice.
The txpool already initializes its gasPrice from config.PriceLimit during construction (core/txpool/txpool.go:333):
```go
func NewTxPool(config Config, chainconfig *params.ChainConfig, chain blockChain) *TxPool {
pool := &TxPool{
gasPrice: new(big.Int).SetUint64(config.PriceLimit),
}
```
When mining is started via RPC (miner_start), the MinerAPI.Start() method handles gasPrice propagation correctly.
This change ensures:
- The txpool respects its own configuration
- Runtime gasPrice adjustments via RPC persist across checkpoints
- No unexpected overriding of user-configured values
2025-12-22 12:01:38 +05:30
wit liu
a83c43f240
all: use 0x-prefix string for type Address in log message ( #1874 )
2025-12-19 08:55:21 +04:00
Daniel Liu
999ded17da
all: change chain head markers from block to header #26777 ( #1846 )
2025-12-16 07:36:51 +04:00
wit liu
07c6262d42
cmd/utils: fix handling of boolean flags when they are set to false #33338 ( #1859 )
2025-12-12 16:55:21 +05:30
wit liu
bf4c48c7c6
cmd: nuke geth bug, nobody is using it anyway #19400 ( #1814 )
2025-12-08 15:08:46 +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
8eb5fa7666
cmd: remove slave mode and flag XDCSlaveModeFlag ( #1824 )
2025-12-08 12:53:05 +05:30
Daniel Liu
640d448491
cmd/XDC, metrics/prometheus: fix staticcheck QF1012 ( #1713 )
2025-12-07 16:03:06 +05:30
Daniel Liu
eaaeea0cad
all: use slices.Sort() to sort strings ( #1712 )
2025-12-07 15:49:13 +05:30
Daniel Liu
c922f26d0c
all: replace strings.Split with more efficient strings.SplitSeq ( #1698 )
2025-12-07 15:42:23 +05:30
wit liu
fd78323211
cmd/utils: deprecate flag enable-0x-prefix ( #1829 )
2025-12-07 15:36:52 +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
07328dcec4
core, eth, trie: abstract node scheme #25532 ( #1123 )
...
This PR introduces a node scheme abstraction. The interface is only implemented by `hashScheme` at the moment, but will be extended by `pathScheme` very soon.
Apart from that, a few changes are also included which is worth mentioning:
- port the changes in the stacktrie, tracking the path prefix of nodes during commit
- use ethdb.Database for constructing trie.Database. This is not necessary right now, but it is required for path-based used to open reverse diff freezer
Co-authored-by: rjl493456442 <garyrong0905@gmail.com>
2025-11-17 11:25:08 +05:30
wit liu
39eb15531d
all: fix whitespace error of golangci-lint, remove extra empty lines ( #1676 )
2025-11-17 11:16:09 +05:30
Daniel Liu
b2664ec363
cmd, core, eth: disable prefetch by default, fix #1718 ( #1719 )
2025-11-16 11:22:48 +05:30
Daniel Liu
de9ed732e2
cmd, eth: implement flag delete-all-bad-blocks ( #1770 )
2025-11-15 16:50:52 +05:30
Daniel Liu
71e8e27f84
all: remove mongodb support in XDCx ( #1679 )
...
* all: remove SDK node
* cmd: remove XDCXDBEngineFlag
* cmd: remove XDCXDBConnectionUrlFlag
* cmd, XDCx: remove XDCXDBReplicaSetNameFlag
* XDCx: remove ConnectionUrl
* all: remove mongodb support
* cmd: remove XDCXEnabledFlag
2025-11-15 16:50:02 +05:30
Daniel Liu
4716dc11af
cmd, internal: move func CheckExclusive() to package flags #31189 ( #1747 )
2025-11-15 16:47:38 +05:30
Daniel Liu
6d7c36bb8f
all: upgrade package version #30638 ( #1745 )
2025-11-15 16:46:54 +05:30
Daniel Liu
eef5242fa3
all: pre-allocate memory for slices and maps, close XFN-148 ( #1714 )
2025-11-14 20:13:36 +05:30
Daniel Liu
f65ecda9f1
cmd/puppeth: improve code ( #1716 )
2025-11-14 20:11:45 +05:30
Daniel Liu
28a4f25166
cmd, core, eth, trie: track deleted nodes #22225 #25757 ( #1120 )
...
Co-authored-by: rjl493456442 <garyrong0905@gmail.com>
Co-authored-by: Martin Holst Swende <martin@swende.se>
2025-11-12 13:32:22 +05:30
Daniel Liu
13ed19bcf2
all: remove XDCx and XDCxlending public API, close XFN-74 XFN-134 ( #1675 )
...
* internal: remove XDCx public API
* XDCx, XDCxlending: remove api
* ethclient: remove SendOrderTransaction and SendLendingTransaction
* XDCx, XDCxlending: remove unused variables and function
* eth, internal/ethapi: remove function `OrderStats()`
2025-11-04 11:19:16 +05:30
Daniel Liu
d451580b37
miner, XDPoS, XDC: close chanels by owner, close XFN-41 ( #1641 )
2025-11-03 14:52:31 +05:30
wit liu
6a1fa08d02
all: refactor to use builtin max/min #32694 ( #1596 )
2025-10-08 12:52:22 +08:00
wit liu
11e82672fe
cmd: fix lint error mirror ( #1575 )
2025-10-08 12:25:59 +08:00
Daniel Liu
5e9db6066d
console: add note about typing exit to exit #23602 ( #1532 )
...
* add explicit note about typing exit in console
* Add note about typing exit as alternative
Co-authored-by: Thad Guidry <thadguidry@gmail.com>
2025-10-08 12:22:52 +08:00
wit liu
cd74961cda
cmd: fix ineffectual assignment ( #1563 )
2025-09-27 10:40:38 +08:00
Daniel Liu
0ece8529c4
cmd, eth, internal/ethapi: allow for flag configured timeouts for eth_call #23645 ( #1593 )
2025-09-26 19:01:02 +08:00
Daniel Liu
294591e67e
all: remove duplicate word in comments ( #1570 )
2025-09-24 07:57:33 +08:00
wit liu
2b658e7934
core: fix unnecessary conversion ( #1565 )
2025-09-24 07:55:14 +08:00
Daniel Liu
6c73723f47
cmd, console: drop geth js command #25000 ( #1534 )
2025-09-24 07:47:21 +08:00
Daniel Liu
db0cd1581f
console: don't exit on ctrl-c, only on ctrl-d #21660 ( #1531 )
...
* add interrupt counter
* remove interrupt counter, allow ctrl-C to clear ONLY, ctrl-D will terminate console, stop node
* format
* add instructions to exit
* fix tests
Co-authored-by: rene <41963722+renaynay@users.noreply.github.com>
2025-09-24 07:46:25 +08:00