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
Daniel Liu
4c096de9b0
all: rename internal 1559 gas fields ( #23010 )
2024-11-01 11:36:52 +08:00
Daniel Liu
5a31888b19
core, eth, miner: enforce configured mining reward post 1559 too ( #22995 )
2024-11-01 11:36:52 +08:00
Daniel Liu
bfd1c0c9e0
core, eth, internal, les: RPC methods and fields for EIP 1559 ( #22964 )
2024-11-01 11:36:52 +08:00
Daniel Liu
f6a4769084
EIP-1559 tx pool support ( #22898 )
2024-11-01 11:36:52 +08:00
Daniel Liu
e18553b855
all: implement eip-1559 ( #22837 )
2024-11-01 11:36:52 +08:00
Daniel Liu
089a589a81
eth: fix typo balacne
2024-11-01 11:36:52 +08:00
Daniel Liu
af40f2e194
eth/downloader: fix staticcheck warning S1033: unnecessary guard for delete
2024-10-31 21:46:27 +08:00
Daniel Liu
edce9ccb27
all: fix staticcheck warning S1024: not use x.Sub(time.Now())
2024-10-31 10:49:44 +08:00
Daniel Liu
f9960875cc
fix: staticcheck warning SA4003: every value of uint64 >= 0
2024-10-31 10:17:30 +08:00
Daniel Liu
a14e9416fa
all: fix staticcheck warning SA4010: append result never used
2024-10-31 10:06:04 +08:00
Daniel Liu
c36642a0e1
all: fix staticcheck warning ST1008: error should be last return value
2024-10-31 09:51:47 +08:00
Daniel Liu
371c3b6874
fix tautological condition: non-nil != nil
2024-10-31 09:01:12 +08:00
liam.icheng.lai
59a7eb1f9f
resolve conflict from master
2024-10-30 16:47:26 -07:00
Daniel Liu
a5bc0baba9
all: fix staticcheck warning ST1019: import package twice
2024-10-28 17:45:19 +08:00