Daniel Liu
b71279d442
feat(metrics): allow changing influxdb interval #33767 ( #2118 )
2026-03-06 11:24:00 +05:30
Daniel Liu
197735a088
fix(cmd): fix wrong flag names in influxdb metrics error messages #33804 ( #2036 )
2026-02-28 16:51:35 +04:00
wit liu
55c2d47c45
all: use 0x-prefix string for type Address in error message ( #1835 )
2025-12-23 15:39:23 +05:30
Daniel Liu
c922f26d0c
all: replace strings.Split with more efficient strings.SplitSeq ( #1698 )
2025-12-07 15:42:23 +05:30
Daniel Liu
6d7c36bb8f
all: upgrade package version #30638 ( #1745 )
2025-11-15 16:46:54 +05:30
Daniel Liu
eef5242fa3
all: pre-allocate memory for slices and maps, close XFN-148 ( #1714 )
2025-11-14 20:13:36 +05:30
Daniel Liu
390ea247d3
cmd/XDC: fixes db unavailability for chain commands #21415 ( #1204 )
2025-07-28 16:56:37 +08:00
JukLee0ira
b15a8ac67e
cmd/geth: accountcmd no need to acquire the datadir lock #27084 ( #1154 )
2025-06-26 10:50:28 +08:00
Daniel Liu
fb300a43fb
cmd/XDC, cmd/utils: set network flag early ( #938 )
...
* cmd/XDC: remove unused function applyValues
* cmd/XDC, cmd/utils: remove function SetupNetwork
* cmd/XDC, cmd/utils: set network flag early
2025-04-24 18:09:59 +08:00
JukLee0ira
b1e08e6642
all: refactor package node #21105 ( #923 )
2025-04-10 18:52:49 +08:00
Daniel Liu
a4c7d7f458
all: clean duplicate constants in package common
2025-04-07 16:43:01 +08:00
Daniel Liu
588dcd35ce
cmd, common, core, eth: optimize rollback by flag
2025-03-01 11:34:32 +08:00
Daniel Liu
1d653e57ab
cmd, core: merge flags testnet and apothem
2025-02-19 14:24:20 +08:00
Daniel Liu
2fb9e99ba3
cmd: use slices.Concat instead of GroupFlags
2025-02-17 15:06:52 +08:00
Daniel Liu
b50c4a29f6
cmd: deprecate flag --mine
2025-02-17 09:19:13 +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
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
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
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
3f1b7d3a7b
rpc: check module availability at startup ( #20597 )
2024-11-13 09:35:41 +08:00
Daniel Liu
1521b8a663
eth: move eth.Config to a common package ( #22205 )
2024-06-20 15:52:32 +08:00
Wanwiset Peerapatanapokin
328176651c
use 0x address scheme by default and add new enable xdc prefix flag ( #518 )
2024-04-12 12:27:39 +07:00
Daniel Liu
72c51e2bc9
set new MinGasPrice in function makeConfigNode
2023-10-16 11:24:47 +08:00
Daniel Liu
e00e34c79b
remove duplicate common.TIPTRC21Fee assignment
2023-04-20 14:51:52 +08:00
Daniel Liu
6a768b04f9
add enable-0x-prefix flag ( #194 )
2022-12-09 19:15:13 +08:00
olumuyiwadad
b5abbfed79
new EVM Upgrade
...
- Solidity Upgraded up to v0.8.0
- Fixed and Added eth_chainId
- Fix error in TransactionRecipet
- Reward halving issue fixed
2021-09-21 16:53:46 +05:30
olumuyiwadad
571c41f891
FIx Bad block error.
2021-09-17 17:59:06 +05:30
dev-vadim
dbe8c9d984
upgrade XDC.Network with v1.8.27.
2020-12-23 16:32:06 +05:30
diglspacedavid
474cc37036
upgrade codebase with ethereum:v1.8.13
2020-11-23 13:40:30 +05:30
AnilChinchawale
7de9cee4fb
Trezor data updated
2019-03-14 15:59:48 +05:30
AnilChinchawale
15e76b17de
Fixed issue Config & consolecmd | File Modified
2018-12-31 23:29:39 +05:30
parmarrushabh
68dbddadc0
Using gas from flag
2018-12-07 10:56:50 +05:30
AnilChinchawale
4a6e8c7f5d
Won't grasp txs at checkpoint
2018-12-07 10:42:40 +05:30
parmarrushabh
ece14048a5
fixed only three MNs making block when --XDC testnet flag enable
2018-11-17 17:10:09 +05:30
AnilChinchawale
f0cf0a9f15
Add annouce-txs, maxpeers 25
2018-11-17 14:18:01 +05:30
parmarrushabh
8f319018b3
adjust signed recently condition
2018-11-05 17:52:53 +05:30
parmarrushabh
1857fe3991
remove delay when mine new block
2018-11-03 17:12:18 +05:30
parmarrushabh
5afb844e0a
fix option Verbosity in toml file
2018-11-02 12:51:24 +05:30
parmarrushabh
b969dc7790
add some config to toml file
2018-11-02 12:28:39 +05:30
MestryOmkar
d281cfb854
remove bootnodes for ETH mainnet
2018-11-02 11:34:25 +05:30
parmarrushabh
b0e95fcc58
fix reduce change code
2018-10-31 11:14:32 +05:30
AnilChinchawale
9bc7680c02
remove rinkby and discovery in bootnode
2018-10-31 10:56:58 +05:30