Daniel Liu
f74eacd2cd
node: remove dependency on wallet backend packages ( #23019 )
...
* accounts: new AddBackends method in manager
* node,cmd/geth: mv accman backend init to cmd/geth
* node,cmd/geth: mv scrypt config downstreawm from node
* accounts: use static buffer size for accman sub chan
minor fix
* accounts,cmd/geth: update accman backends through its event loop
* accounts,node: add comments
* accounts: un-export newBackendEvent
* accounts: use chan instead of wg in newBlockEvent
* node: rename isKeyDirEphem
* accounts,cmd: AddBackends->AddBackend
* accounts: fix potential blocking when adding backend
2025-01-24 16:18:30 +08:00
Daniel Liu
e33909649b
cmd/utils: don't enumerate usb when --usb isn't set ( #22130 )
2025-01-24 16:18:30 +08:00
Daniel Liu
c75ba99267
accounts/keystore: use github.com/google/uuid ( #22217 )
...
This replaces the github.com/pborman/uuid dependency with
github.com/google/uuid because the former is only a wrapper for
the latter (since v1.0.0).
Co-authored-by: Felix Lange <fjl@twurst.com>
2025-01-24 16:18:30 +08:00
Daniel Liu
f87376535d
cmd/abigen: clarify abigen alias flag usage ( #21875 )
...
* doc: clarify abigen alias flag usage
update the `abigen --alias` flag help info, give an example to make it more clear
related issue: https://github.com/ethereum/go-ethereum/issues/21846
* Update cmd/abigen/main.go
Co-authored-by: ligi <ligi@ligi.de>
Co-authored-by: Martin Holst Swende <martin@swende.se>
Co-authored-by: ligi <ligi@ligi.de>
2025-01-24 16:18:30 +08:00
Daniel Liu
5e3755c46a
accounts/keystore, cmd/faucet: return old account to allow unlock ( #21173 )
2025-01-24 16:18:29 +08:00
Daniel Liu
d918e53c8a
acounts/keystore, cmd/faucet: fix faucet double import ( #21172 )
2025-01-24 16:18:29 +08:00
Daniel Liu
0d1cd42dc2
accounts/keystore: fix double import race ( #20915 )
...
* accounts/keystore: fix race in Import/ImportECDSA
* accounts/keystore: added import/export tests
* cmd/geth: improved TestAccountImport test
* accounts/keystore: added import/export tests
* accounts/keystore: fixed naming
* accounts/keystore: fixed typo
* accounts/keystore: use mutex instead of rwmutex
* accounts: use errors instead of fmt
2025-01-24 16:18:29 +08:00
Daniel Liu
3a320d2c6f
accounts/abi/bind, cmd/abigen: implement alias for abigen ( #20244 )
2025-01-24 16:18:29 +08:00
Daniel Liu
e90df44b43
accounts: replace passPHRASE with passWORD in any user interactions ( #19932 )
2025-01-24 16:18:29 +08:00
Daniel Liu
100ea1c8e0
accounts/scwallet: add a switch to specify path to sc daemon ( #19439 )
2025-01-24 16:18:29 +08:00
Daniel Liu
fa35614784
accounts, cmd: add note about backing up the keystore ( #19432 )
2025-01-24 16:18:29 +08:00
Daniel Liu
194a77505f
accounts: switch Ledger derivation path to canonical one ( #19438 )
2025-01-24 16:18:29 +08:00
Daniel Liu
4224367396
cmd/XDC: add db commands: stats, compact, put, get, delete ( #22014 )
2025-01-24 15:32:08 +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
ffbe4f5080
all: migrate go-bindata to embed ( #24744 )
2025-01-22 17:03:47 +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
Daniel Liu
89376fd489
cmd/abigen: require either '--abi' or '--combined-json' ( #31045 )
2025-01-22 15:09:02 +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
Daniel Liu
ebc036682e
common/compiler, cmd/abigen: remove solc/vyper compiler integration ( #24936 )
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
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
b711dc811d
cmd/abigen: allow using abigen --pkg flag with standard input ( #19207 )
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
f19422e1c7
cmd/utils: relinquish GC cache to read cache in archive mode ( #18991 )
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
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
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
35380508fc
metrics, cmd/geth: informational metrics (prometheus, influxdb, opentsb) ( #24877 )
...
This chang creates a GaugeInfo metrics type for registering informational (textual) metrics, e.g. geth version number. It also improves the testing for backend-exporters, and uses a shared subpackage in 'internal' to provide sample datasets and ordered registry.
Implements #21783
---------
Co-authored-by: Martin Holst Swende <martin@swende.se>
2024-12-13 14:00:13 +08:00
Daniel Liu
29b72dbba6
metrics/influxdb: support V2 ( #23194 )
2024-12-13 14:00:12 +08:00
Daniel Liu
9d082aa38c
cmd/XDC: dump config for metrics ( #22083 )
2024-12-13 14:00:12 +08:00
Daniel Liu
c65d0cd947
cmd/XDC: enable metrics for geth import command ( #20738 )
2024-12-13 14:00:12 +08:00
Daniel Liu
db9487f1e8
core: split out detailed trie access metrics from insertion time ( #19316 )
2024-12-13 14:00:11 +08:00
Daniel Liu
3e4583e7c4
cmd/utils: allow for multiple influxdb flags ( #18520 )
2024-12-13 14:00:11 +08:00
Daniel Liu
92a7b64961
metrics: export to InfluxDB ( #16979 )
2024-12-13 14:00:11 +08:00
Daniel Liu
11b74151bd
cmd/XDC: fix double metrics collect process issue
2024-12-13 13:56:09 +08:00
Daniel Liu
bedd571091
crypto/kzg4844: pull in the C and Go libs for KZG cryptography ( #27155 )
2024-12-09 17:49:00 +08:00
Daniel Liu
ad5e7d6db3
crypto: add SignatureLength constant and use it everywhere ( #19996 )
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
Daniel Liu
d55dca04b5
all: use http package to replace http method names (26535)
2024-12-05 10:59:42 +08:00
Daniel Liu
ae56946690
internal/flags: remove low-use type TextMarshalerFlag ( #30707 )
2024-11-25 16:39:29 +08:00
Daniel Liu
4e192a5172
cmd/XDC, internal/flags: print envvar config source and bad names ( #28119 )
2024-11-25 16:39:29 +08:00
Daniel Liu
197551c729
cmd/geth, internal/flags, go.mod: colorize cli help, support env vars ( #28103 )
2024-11-25 16:39:29 +08:00
Daniel Liu
bda88affe6
cmd/XDC: add version in --help output ( #26895 )
2024-11-25 16:39:29 +08:00
Daniel Liu
3e1ea87ca2
cmd/XDC: fix some cli parsing issues ( #25234 )
2024-11-25 16:39:29 +08:00
Daniel Liu
369d69649f
all: normalize flag's name
2024-11-25 16:39:29 +08:00