Daniel Liu
f5e90eecff
common: improve test ( #20354 )
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
7f63a690ee
common: unify hex prefix check code ( #19937 )
2024-12-28 09:06:30 +08:00
shiqinfeng1
94b69fdf1e
common/compiler: support relative import paths ( #17374 #19967 )
2024-12-28 09:06:30 +08:00
David Chase
5a8110b292
common/bitutil: use result of TestBytes to prevent dead code elimination ( #19846 )
...
Gollvm has very aggressive dead code elimination that completely
removes one of these two benchmarks. To prevent this, use the
result of the benchmark (a boolean), and to be "fair", make the
transformation to both benchmarks.
To be reliably assured of not removing the code, "use" means
assigning to an exported global. Non-exported globals and
//go:noinline functions are possibly subject to this optimization.
2024-12-28 09:06:30 +08:00
Daniel Liu
057a7dd780
cmd/abigen: refactor command line interface ( #19797 )
2024-12-28 09:06:30 +08:00
Daniel Liu
d6957d9283
accounts/abi/bind: remove test case UseLibrary
2024-12-28 09:06:30 +08:00
Daniel Liu
993bc6963e
accounts/abi/bind: link dependent libs in deploy ( #19718 )
2024-12-28 09:06:30 +08:00
Daniel Liu
7455b91800
accounts/abi/bind: accept function ptr parameter ( #19755 )
2024-12-28 09:06:30 +08:00
Daniel Liu
91570dce8a
accounts/abi: fix mobile interface ( #19180 )
2024-12-28 09:06:30 +08:00
Daniel Liu
b711dc811d
cmd/abigen: allow using abigen --pkg flag with standard input ( #19207 )
2024-12-28 09:06:30 +08:00
Daniel Liu
a747a9861d
common: improve functions of StorageSize ( #19244 )
2024-12-28 09:06:30 +08:00
Daniel Liu
66921899e9
cmd/abigen: support Vyper ( #19120 )
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
Javier Sagredo
2772e096b4
common/compiler: fixed testSource ( #18978 )
2024-12-28 09:06:30 +08:00
Daniel Liu
75c14d2cdb
accounts/abi: fix case of generated java functions ( #18372 )
2024-12-28 09:06:30 +08:00
Daniel Liu
e58441b317
accounts/abi: change unpacking of abi fields w/ underscores ( #16513 )
2024-12-28 09:06:30 +08:00
Daniel Liu
c0f547ca78
cmd/utils: fix bug when checking for flag value conflicts ( #17803 )
2024-12-28 09:06:30 +08:00
Daniel Liu
7cd3e56d18
accounts/abi/bind: stop using goimports in the binding generator ( #17768 #20311 )
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
43ad328487
Merge pull request #774 from gzliudan/rm_SaveData
...
all: remove empty function SaveData()
2024-12-28 09:05:43 +08:00
Daniel Liu
240757a1ce
all: remove empty function SaveData()
2024-12-28 09:04:02 +08:00
Daniel Liu
efa2605f26
accounts/abi/bind/backends: fix wrong gas returned by EstimateGas
2024-12-28 09:02:48 +08:00
JukLee0ira
517f4a16a6
internal/ethapi: fix Call handle revert error
2024-12-28 09:02:48 +08:00
JukLee0ira
48d1f22fde
all: simplify function TransitionDb ( #20830 )
2024-12-28 09:02:48 +08:00
Daniel Liu
69bca27fed
Merge pull request #776 from gzliudan/rm_unused_in_core
...
core: remove unused functions and variables
2024-12-26 15:02:30 +08:00
benjamin202410
0686b4428f
upgrade to golang 1.22 ( #763 )
...
Co-authored-by: liam.lai <liam.lai@us>
2024-12-25 22:59:24 -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
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
benjamin202410
21b05243b6
Merge from master mining time patch ( #767 )
...
* merge from master
* close channel
* close channel
---------
Co-authored-by: liam.lai <liam.lai@us>
2024-12-19 01:17:29 -08:00
Daniel Liu
0f8abf531c
Merge pull request #758 from gzliudan/upgrade-metrics
...
upgrade package metrics
2024-12-13 14:02:32 +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
7d82f27894
metrics: fix issues with benchmarks ( #30667 )
2024-12-13 14:00:14 +08:00
Daniel Liu
ea355e824b
metrics: fix function comment ( #29843 )
2024-12-13 14:00:14 +08:00
Daniel Liu
7e784f1d70
metrics: add test for SampleSnapshot.Sum ( #29831 )
2024-12-13 14:00:14 +08:00
Daniel Liu
fb6a268763
metrics: fix flaky test TestExpDecaySampleNanosecondRegression ( #29832 )
2024-12-13 14:00:14 +08:00
Daniel Liu
a9cbcde778
metrics: fix out of range error message ( #29821 )
2024-12-13 14:00:14 +08:00
Daniel Liu
cf90a7aa76
metrics: remove librato ( #29624 )
2024-12-13 14:00:14 +08:00
Daniel Liu
988465cafa
metrics: fix mismatched names in comments ( #29348 )
2024-12-13 14:00:14 +08:00
Daniel Liu
c7565af9b8
metrics: remove dependency on golang.org/exp ( #29314 )
2024-12-13 14:00:14 +08:00
Daniel Liu
99f605ffab
metrics/influxdb: skip float64-precision-dependent tests on arm64 ( #29047 )
...
metrics/influxdb: fix failed cases caused by float64 precision on arm64
2024-12-13 14:00:14 +08:00
Daniel Liu
fd8782b2d0
metrics: use min from go1.21 ( #29307 )
2024-12-13 14:00:14 +08:00
Daniel Liu
7f37ee2e63
metrics: fix docstrings ( #29279 )
2024-12-13 14:00:14 +08:00
Daniel Liu
2220156b9a
cmd, core, metrics: always report expensive metrics ( #29191 )
...
* cmd, core, metrics: always report expensive metrics
* core, metrics: report block processing metrics as resetting timer
* metrics: update reporter tests
2024-12-13 14:00:13 +08:00
Daniel Liu
6f67b357de
metrics: fix docstring names ( #28923 )
2024-12-13 14:00:13 +08:00
Daniel Liu
49b5886150
rpc: fix ns/µs mismatch in metrics ( #28649 )
...
The rpc/duration/all meter was in nanoseconds, the individual meter in microseconds.
This PR changes it so both of them use nanoseconds.
2024-12-13 14:00:13 +08:00