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
Gerui Wang
6bac06b1e7
feat: fixed reward per node (per capita)
2025-03-25 22:33:49 +08:00
Gerui Wang
84ae914350
feat: add TIPEpochHalving, better style
2025-03-25 22:16:35 +08:00
Wang Gerui
7c4668fa91
style: clean comment
2025-03-25 22:10:03 +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
3e4a13d038
rpc: accept finalized as block number
2025-03-19 17:47:52 +08:00
Daniel Liu
ccf8ff2e64
cmd/utils, eth/ethconfig: remove flag docroot
2025-03-19 15:32:57 +08:00
Daniel Liu
5ef815a6c9
eth/gasprice: sanity check ratio values ( #31270 )
2025-03-14 08:04:02 +08:00
Daniel Liu
8f68af5da0
eth/gasprice: add query limit for FeeHistory to defend DDOS attack ( #29644 )
2025-03-14 08:04:02 +08:00
Daniel Liu
975cddacc5
eth/gasprice: fix deserialization error for foundry
2025-03-14 08:01:07 +08:00
Daniel Liu
9167867bab
eth/downloader: fix peer idleness tracking when restarting statesync ( #21260 )
2025-03-11 16:37:02 +08:00
Daniel Liu
8d63a56777
eth/downloader: fix data race in downloader ( #20204 )
2025-03-11 16:35:31 +08:00
Daniel Liu
0273448333
core, eth/downloader: fix validation and downloader printout flaw ( #17974 )
2025-03-11 13:24:02 +08:00
Miro
2dfa020165
eth/filters: fix TestPendingLogsSubscription ( #23619 )
...
The test did not synchronize with per-case goroutines, and thus didn't notice
that some tests were just hanging. This change adds missing synchronization
and fixes the broken tests.
2025-03-10 15:42:59 +08:00
Daniel Liu
2697703c0f
core, eth, params: make indexer configurable ( #17188 )
2025-03-10 15:41:53 +08:00
Daniel Liu
66e73ad32e
cmd, les: remove light client code ( #28586 )
2025-03-10 15:40:07 +08:00
Daniel Liu
f039b26e7a
light: CHT and bloom trie indexers working in light mode ( #16534 )
2025-03-06 15:30:48 +08:00
wgr523
c36e4d54c0
Upgrade reward 2.0 ( #865 )
...
* refactor: reward hook gets prepared for upgrade
* feat: new reward hook, config change, unit tests
* add missing code
* feat: filter penalty in reward. add unit test
* update constant and config
---------
Co-authored-by: liam.lai <liam.lai@us>
2025-03-02 02:44:34 -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
bf011986a5
eth/downloader: fixes data race between synchronize and other methods ( #21201 )
2025-02-26 15:06:08 +08:00
Daniel Liu
2955a988ca
eth/downloader: more context in errors ( #21067 )
2025-02-26 15:06:08 +08:00
Daniel Liu
3ee371454f
eth/downloader: make syncing error obvious ( #19413 )
2025-02-26 15:06:08 +08:00
Daniel Liu
04adabe55c
eth/downloader: fix nil droppeer in state sync ( #19232 )
2025-02-26 15:06:08 +08:00
Daniel Liu
96db952576
downloader: fix edgecase where returned index is OOB for downloader ( #18335 )
2025-02-26 15:06:08 +08:00
Daniel Liu
3adec81483
downloader: different sync strategy ( #18085 )
2025-02-26 15:06:08 +08:00
Daniel Liu
9ad4e1d282
downloader: measure successfull deliveries, not failed ( #17983 )
2025-02-26 15:06:08 +08:00
Daniel Liu
31011d4aa9
eth/downloader: fix invalid hash chain error due to head mini reorg ( #17839 )
2025-02-26 15:06:08 +08:00
Daniel Liu
e424ff1380
eth/downloader: fix comment typos ( #17956 )
2025-02-26 15:06:08 +08:00
Daniel Liu
2a8b4501ef
eth/downloader: use intermediate variable for better readability ( #17510 )
2025-02-26 15:06:08 +08:00
Daniel Liu
98cff5d6c2
all: remove network rinkeby
2025-02-19 15:52:29 +08:00
Daniel Liu
2a2711ad64
cmd, common, eth: copy constants after get chain id
2025-02-18 15:16:55 +08:00
Daniel Liu
ff987140dc
eth: set networkID to chainId by default ( #28250 )
2025-02-17 09:17:31 +08:00
Daniel Liu
652c66e9d4
eth/downloader: fix issue #16539 ( #16546 )
2025-02-11 18:30:17 +08:00
Daniel Liu
3ebf97e721
eth/downloader: wait all fetcher goroutines to exit before terminating ( #16509 )
2025-02-11 18:30:17 +08:00
Daniel Liu
d8fb27b987
all: clean up and properly abstract database accesses ( #19021 )
2025-02-11 18:28:50 +08:00
Daniel Liu
0dd3d532fc
eth: add eth_blobBaseFee RPC ( #29140 )
2025-02-10 10:59:45 +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
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
Daniel Liu
bb8324357c
params: log chain config a bit saner ( #24904 )
2025-02-05 18:10:06 +08:00
Daniel Liu
b6f3007af1
core: move genesis alloc types to core/types ( #29003 )
2025-01-24 16:54:12 +08:00
Daniel Liu
4e951ed8fe
all: use github.com/deckarep/golang-set/v2 (generic set) ( #26159 )
2025-01-24 16:54:11 +08:00
Daniel Liu
cab293859a
eth/filters: update Backend interface ( #26126 )
2025-01-24 16:54:11 +08:00
Daniel Liu
c241fc3574
eth/filters: fix for eth_getLogs failing with tag ( #25922 )
2025-01-24 16:54:11 +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
d8c9ad3c9f
all: replace RWMutex with Mutex in places where RLock is not used ( #21622 )
2025-01-24 16:18:30 +08:00
Daniel Liu
07935ce124
accounts: support for external signer API ( #18079 )
2025-01-24 16:18:29 +08:00
Daniel Liu
fe14069bd7
accounts: support for external signer API ( #18079 )
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
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
1ff36996c0
cmd/XDC: delete copydb command
2025-01-24 14:41:28 +08:00
Daniel Liu
97c50f97bb
all: add read-only option to database
2025-01-24 14:24:39 +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
JukLee0ira
412133b977
eth/tracers: add test for contractTracer
2025-01-22 12:37:48 +08:00
JukLee0ira
f7b591ffe3
eth/tracers: add a golang tracer to locate contracts ( #23708 )
2025-01-22 12:37:37 +08:00
JukLee0ira
7ca83ab0ec
eth/tracers: add TracerConfig option to Tracer ( #25430 )
2025-01-22 11:08:15 +08:00
Daniel Liu
588f61661c
build: add imports for go generate tools ( #24682 )
2025-01-20 11:52:59 +08:00
wanwiset25
44ac46f676
add local xdpos function
...
add readme
changes to support xdpos2 protocol from block 0
2025-01-01 22:06:09 -05:00
Péter Szilágyi
39e9d8f94d
common/prque: generic priority queue ( #26290 )
2024-12-28 09:06:31 +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
Daniel Liu
82ff8c19a0
all: remove uses of untyped golang-lru
2024-12-21 14:39:26 +08:00
JukLee0ira
7491a7ba74
all: improve EstimateGas API ( #20830 )
2024-12-21 14:35:44 +08:00
Daniel Liu
6beee27886
metrics, cmd/XDC: change init-process of metrics ( #30814 )
...
This PR modifies how the metrics library handles `Enabled`: previously,
the package `init` decided whether to serve real metrics or just
dummy-types.
This has several drawbacks:
- During pkg init, we need to determine whether metrics are enabled or
not. So we first hacked in a check if certain geth-specific
commandline-flags were enabled. Then we added a similar check for
geth-env-vars. Then we almost added a very elaborate check for
toml-config-file, plus toml parsing.
- Using "real" types and dummy types interchangeably means that
everything is hidden behind interfaces. This has a performance penalty,
and also it just adds a lot of code.
This PR removes the interface stuff, uses concrete types, and allows for
the setting of Enabled to happen later. It is still assumed that
`metrics.Enable()` is invoked early on.
The somewhat 'heavy' operations, such as ticking meters and exp-decay,
now checks the enable-flag to prevent resource leak.
The change may be large, but it's mostly pretty trivial, and from the
last time I gutted the metrics, I ensured that we have fairly good test
coverage.
---------
Co-authored-by: Felix Lange <fjl@twurst.com>
2024-12-13 14:00:14 +08:00
Daniel Liu
92fc843683
crypto: switch over to upstream sha3 package ( #18390 )
2024-12-09 17:48:59 +08:00
Daniel Liu
02a59e8d84
all: replace strings.Replace with string.ReplaceAll ( #24835 )
2024-12-08 11:51:14 +08:00
benjamin202410
a8560300a4
fix vote test and optimize log ( #750 )
...
Co-authored-by: liam.lai <liam.lai@us>
2024-11-29 03:14:25 -08:00
Daniel Liu
ed242b4763
all: implement EIP-1153 transient storage ( #26003 )
2024-11-15 19:39:18 +08:00
Daniel Liu
ec4ca1ed6a
all: replace log15 with slog ( #28187 )
2024-11-15 10:02:42 +08:00
Daniel Liu
3ed9ce95c1
eth, node: use APPDATA env to support cygwin/msys correctly ( #17786 )
2024-11-13 09:35:41 +08:00
Daniel Liu
59b06e4a03
eth/gasprice: reduce default gas price for empty block
2024-11-13 09:30:55 +08:00
Daniel Liu
de7203ac88
eth/gasprice: remove default from config ( #30080 )
2024-11-13 09:30:55 +08:00
Daniel Liu
d3eaeb9381
eth/gasprice: use slices package for sorting ( #27490 #27909 #29314 )
2024-11-13 09:30:55 +08:00
Daniel Liu
4dbed3582f
eth/gasprice: simplify function getBlockValues
2024-11-13 09:30:55 +08:00
Daniel Liu
f9e431888e
eth/gasprice: add generic LRU implementation ( #26162 )
2024-11-13 09:30:54 +08:00
Daniel Liu
179185438f
eth/gasprice: sanitize max header and block history ( #23886 )
2024-11-13 09:30:54 +08:00
Daniel Liu
416e5ac00f
eth/tracers,internal/ethapi: use correct baseFee when BlockOverrides is provided in call/traceCall ( #29051 )
2024-11-01 11:36:53 +08:00
Felix Lange
6b8dd86b52
eth/gasprice: fix percentile validation in eth_feeHistory ( #28954 )
2024-11-01 11:36:53 +08:00
Daniel Liu
419f81f022
eth/gasprice: change feehistory input type from int to uint64 ( #26922 )
2024-11-01 11:36:53 +08:00
Daniel Liu
a294c2080d
all: fix null effectiveGasPrice
2024-11-01 11:36:53 +08:00
Daniel Liu
9b20ac785e
consensus/misc: move eip1559 into a package ( #27828 )
2024-11-01 11:36:53 +08:00
Daniel Liu
f64aea4ba0
core/vm: implement EIP-3860: Limit and meter initcode ( #23847 )
2024-11-01 11:36:53 +08:00
Daniel Liu
8b2e8d9b3a
all: refactor txpool into it's own package in prep for 4844 ( #26038 )
2024-11-01 11:36:53 +08:00
Daniel Liu
754c6456af
eth/gasprice/feehistory: support finalized block ( #25442 )
2024-11-01 11:36:53 +08:00
Daniel Liu
c8c43adac0
graphql: fee history fields ( #24452 )
2024-11-01 11:36:53 +08:00
Daniel Liu
e5fb0b4d73
core: remove unused error from TxPool.Pending ( #23720 )
2024-11-01 11:36:53 +08:00
Daniel Liu
27071a4219
eth/gasprice: avoid modifying TestChainConfig ( #23204 )
2024-11-01 11:36:53 +08:00
Daniel Liu
e0a1ef31eb
eth/gasprice: feeHistory improvements ( #23422 )
2024-11-01 11:36:53 +08:00
Daniel Liu
7500b0ac95
Use hexutil.Uint for blockCount parameter and oldestBlock result value in feeHistory method ( #23239 )
2024-11-01 11:36:52 +08:00
Daniel Liu
5b01b23af6
internal: get pending and queued transaction by address ( #22992 )
2024-11-01 11:36:52 +08:00
Daniel Liu
5766ca4520
eth/gasprice, internal/ethapi: minor feehistory fixes ( #23178 )
2024-11-01 11:36:52 +08:00
Daniel Liu
26fe46c008
eth/gasprice: implement feeHistory API ( #23033 )
2024-11-01 11:36:52 +08:00
Daniel Liu
dbdca11501
accounts/abi/bind: fix bounded contracts and sim backend for 1559 ( #23038 )
2024-11-01 11:36:52 +08:00