Daniel Liu
bea5c95a7c
cmd/utils: change default value of some flags to simplify sync
2025-02-17 09:36:14 +08:00
Daniel Liu
7ea30d6b29
cmd/utils: deprecate flag --XDCx-datadir
2025-02-17 09:30:30 +08:00
Daniel Liu
b50c4a29f6
cmd: deprecate flag --mine
2025-02-17 09:19:13 +08:00
Daniel Liu
4656718f0c
Merge pull request #849 from gzliudan/init_genesis
...
cmd/XDC: remove genesis file dependency for `XDC init` command
2025-02-17 09:16:43 +08:00
Daniel Liu
cfc8cca674
common: refactor constants
2025-02-17 09:13:40 +08:00
Daniel Liu
d304a24edc
cmd/XDC: remove genesis file dependency for XDC init command
2025-02-13 12:46:54 +08:00
Daniel Liu
d8fb27b987
all: clean up and properly abstract database accesses ( #19021 )
2025-02-11 18:28:50 +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
3f58066879
all: remove debug field from vm config ( #27048 )
2025-02-05 18:16:17 +08:00
Daniel Liu
b6f3007af1
core: move genesis alloc types to core/types ( #29003 )
2025-01-24 16:54:12 +08:00
Daniel Liu
4d07efe6b6
cdm/abigen: run tests in parallel ( #28546 )
2025-01-24 16:54:12 +08:00
Daniel Liu
06394ca3c8
cmd/abigen: change --exc to exclude by type name ( #22620 )
...
The abigen exclusion pattern, previously on the form "path:type", now supports wildcards. Examples "*:type" to exclude a named type in all files, or "/path/to/foo.sol:*" all types in foo.sol.
2025-01-24 16:54:11 +08:00
Daniel Liu
fde9a7e270
cmd/abigen: redefine appp ( #25851 )
2025-01-24 16:54:11 +08:00
Daniel Liu
13eef32998
accounts/abi/bind: fix duplicate field names in the generated go struct ( #24924 )
...
* accounts/abi/bind: fix duplicate field names in the generated go struct #24627
* accounts, cmd/abigen: resolve name conflicts
* ci lint, accounts/abi: remove unused function overloadedArgName
Co-authored-by: Gary Rong <garyrong0905@gmail.com>
2025-01-24 16:54:11 +08:00
Daniel Liu
c4308f0fbc
cmd/abigen: accept combined-json via stdin ( #24960 )
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
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
Daniel Liu
dcab7e8efb
cmd: migrate to urfave/cli/v2 ( #24751 )
2024-11-25 16:39:29 +08:00
JukLee0ira
6f9fb9d1da
node, p2p/simulations: fix node.Node AccountsManager leak ( #19004 )
2024-11-25 16:33:26 +08:00
Daniel Liu
bd916d100a
cmd/evm, internal/debug: use global functions when cli v1
2024-11-21 17:40:51 +08:00
JukLee0ira
cba5782884
accounts, build, mobile: remove Android and iOS support ( #26599 )
2024-11-15 15:46:25 +08:00
Daniel Liu
ec4ca1ed6a
all: replace log15 with slog ( #28187 )
2024-11-15 10:02:42 +08:00
JukLee0ira
85ede14a92
cmd: retire whisper flags ( #22421 )
2024-11-13 12:38:36 +08:00
JukLee0ira
cfb72501bf
cmd/geth: print warning when whisper config is present in toml ( #21544 )
2024-11-13 12:38:07 +08:00
JukLee0ira
749037a97c
whisper: remove whisper ( #21487 )
2024-11-13 12:37:10 +08:00
Daniel Liu
b1d6bec3bd
cmd, node: dump empty value config ( #21296 )
2024-11-13 09:35:41 +08:00
Daniel Liu
3f1b7d3a7b
rpc: check module availability at startup ( #20597 )
2024-11-13 09:35:41 +08:00
Daniel Liu
d3c023ed37
cmd/XDC, internal, node: nuke XDC monitor ( #19399 )
2024-11-13 09:35:41 +08:00
Daniel Liu
216ee418f1
cmd/utils, node: increase default maxpeers to 50 ( #19497 )
2024-11-04 16:13:02 +08:00
Daniel Liu
97a5ff616b
rpc: Make HTTP server timeout values configurable ( #17240 )
2024-11-04 12:31:15 +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
26fe46c008
eth/gasprice: implement feeHistory API ( #23033 )
2024-11-01 11:36:52 +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
60fedfed83
fix staticcheck SA5011: possible nil pointer dereference
2024-10-31 09:01:12 +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
fbecb8c5a5
all: fix staticcheck warning ST1006: don't use generic name self
...
The name of a method’s receiver should be a reflection of its identity;
often a one or two letter abbreviation of its type suffices (such as
“c” or “cl” for “Client”). Don’t use generic names such as “me”, “this”
or “self”, identifiers typical of object-oriented languages that place
more emphasis on methods as opposed to functions. The name need not be
as descriptive as that of a method argument, as its role is obvious and
serves no documentary purpose. It can be very short as it will appear
on almost every line of every method of the type; familiarity admits
brevity. Be consistent, too: if you call the receiver “c” in one method,
don’t call it “cl” in another.
2024-10-25 21:30:54 +08:00
Daniel Liu
87a6b5f4c3
Merge pull request #689 from gzliudan/fix-st1005
...
all: fix staticcheck warning ST1005
2024-10-25 15:28:07 +08:00
Daniel Liu
f79763ca88
all: fix staticcheck warning S1039: unnecessary use of fmt.Sprintf
2024-10-24 12:49:37 +08:00
Daniel Liu
a79411fa06
all: fix staticcheck warning ST1005: incorrectly formatted error string
2024-10-24 09:48:20 +08:00
Liam Lai
22fc7d0710
fix conflict
2024-10-16 22:42:53 -07:00
Daniel Liu
a8ea86e40c
Merge pull request #644 from gzliudan/format-0x
...
all: change format 0x%x to %#x
2024-10-17 10:35:34 +08:00
Mr.P
861c7102a2
cherry pick from #664
2024-10-09 17:08:59 +08:00
Mr.P
22c54206bd
add flag rpc-gascap and set RPCGasCap to 50M ( #664 )
...
* add gas cap flag
* default gas cap to 50m
* rpc-gascap
2024-10-09 09:28:24 +08:00
Daniel Liu
edace6ac6c
all: change format 0x%x to %#x ( #25221 )
2024-09-27 15:24:31 +08:00
Daniel Liu
c47819c7d6
core, cmd: add generic LRU implementation ( #26162 )
2024-08-26 11:17:23 +08:00
wanwiset25
cb792ef34f
Revert EIP-2464
2024-08-24 02:31:27 +07:00
Liam
e3df8e55a6
remove legacy testnet validate masternode logic ( #603 )
...
* remove legacy testnet validate masternode logic
* remove legacy testnet validate masternode logic
* remove legacy testnet validate masternode logic
2024-08-12 00:13:36 -07:00
wgr523
52077f18f3
support for golang tracers + add golang callTracer ( #558 )
...
* feat: rename Tracer interface to EVMLogger;
minor changes in API
refine api_tracer.go
refine Tracer interface
* fix: broken tracer tests
* feat: add BenchmarkTransactionTrace
* feat: tracer CaptureEnter CaptureExit in evm
* feat: upgrade js tracers with geth upstream
* chore: clean test
* feat: eth/tracers: support for golang tracers + add golang callTracer
cf. https://github.com/ethereum/go-ethereum/pull/23708
* chore: clean testdata json
* fix: change test due to IntrinsicGas is not upgraded
* feat: make native Tracer the default Tracer
* fix: update tracers.New in api
* fix: addr prefix in callTracer
* fix: remove `native` in BenchmarkTracers
* fix: return consensus error of InsufficientBalance for tx, instead of vmerr
* chore: drop js tracers: call and noop
2024-08-06 00:14:04 -07:00
JukLee0ira
ad71d706fb
all: add global block logs cache ( #25459 )
2024-08-03 10:03:22 +08:00
Daniel Liu
99c2e18b88
cmd/geth: move cache sanity check to SetEthConfig ( #22510 )
2024-08-03 08:12:28 +08:00