Daniel Liu
97c50f97bb
all: add read-only option to database
2025-01-24 14:24:39 +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
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
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
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
d3c023ed37
cmd/XDC, internal, node: nuke XDC monitor ( #19399 )
2024-11-13 09:35:41 +08:00
Daniel Liu
97a5ff616b
rpc: Make HTTP server timeout values configurable ( #17240 )
2024-11-04 12:31:15 +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
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
b2c6191bea
cmd/XDC: expose CacheFlag and CacheDatabaseFlag
2024-08-03 08:12:28 +08:00
Daniel Liu
020fac603c
cmd/utils: allow file descriptor limit to be set via CLI ( #24477 )
2024-08-03 08:12:28 +08:00
Daniel Liu
f445196dcf
eth/gasprice: add configurable threshold to gas price oracle ( #22752 )
2024-06-20 15:52:32 +08:00
Daniel Liu
1521b8a663
eth: move eth.Config to a common package ( #22205 )
2024-06-20 15:52:32 +08:00
Daniel Liu
2125a1afaa
eth/gasprice: offer maxprice flag for overwritting price cap ( #21531 )
2024-06-20 15:52:32 +08:00
Daniel Liu
0063c14ed3
cmd, eth, internal, les: add gasprice cap ( #21212 )
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
Wanwiset Peerapatanapokin
75c8d40399
Ensure DB is close before client exit ( #478 )
2024-03-08 14:57:15 +04:00
Wanwiset Peerapatanapokin
aaa246f60e
PDF-01 ( #397 )
...
* replace deprecated ioutil lib calls
* fix for FileInfo type required
* fix for ioutil.Discard
* fix .Discard
* fix for go-bindata generated files
2024-01-19 15:05:03 +04:00
Daniel Liu
6f06a5638b
add flag rpcwritetimeout for rpc http server ( #358 )
2023-11-27 22:48:56 +08:00
Guillaume Ballet
6743853dca
console, internal/jsre: use github.com/dop251/goja ( #20470 )
...
This replaces the JavaScript interpreter used by the console with goja,
which is actively maintained and a lot faster than otto. Clef still uses otto
and eth/tracers still uses duktape, so we are currently dependent on three
different JS interpreters. We're looking to replace the remaining uses of otto
soon though.
2023-11-02 00:43:55 +08:00
Daniel Liu
72c51e2bc9
set new MinGasPrice in function makeConfigNode
2023-10-16 11:24:47 +08:00
Liam Lai
69c38ac490
fix broken the tests and one bug
2023-08-02 09:27:46 +10:00
Liam Lai
5623ce8de0
merge from master
2023-07-30 16:50:45 +10:00
Anil Chinchawale
21ae43ac15
Merge pull request #198 from Carry-So/fix-test-error
...
cmd/XDC: remove redundant newline in bugcmd.go to pass make test
2023-05-27 13:35:19 +05:30
Daniel Liu
87455baf2e
init genesis from source if flag --apothem
2023-04-20 16:52:35 +08:00
Daniel Liu
e00e34c79b
remove duplicate common.TIPTRC21Fee assignment
2023-04-20 14:51:52 +08:00
Liam
c4f9a552e5
Multi config bug fix ( #216 )
...
* refactor multi config
remove pool cleaner
correct message and log level
2022-12-17 20:23:46 +08:00
Daniel Liu
6a768b04f9
add enable-0x-prefix flag ( #194 )
2022-12-09 19:15:13 +08:00
Liam
6ffbd3e141
Xin 259 support multi v2 config ( #210 )
...
* update timeout period and waittime
* remove wrong comment
* update config for preparing test
2022-12-06 20:08:56 +08:00
Daniel Liu
1b3386b60f
cmd/XDC: remove redundant newline in bugcmd.go to pass make test
2022-10-18 15:44:02 +08:00
Liam
833f70bdb7
xin-203 fix wrong config hash and update v2 params on mainnet ( #109 )
...
* fix wrong config hash and update v2 params on mainnet
* update config and all the test
* hard code binary into code
* add default config for testing
* update test timestamp
2022-07-12 16:56:55 +02:00
Jerome
bcffe1ec16
Give the XDC option to use emit metrics ( #89 )
2022-06-19 13:42:48 +02:00
wgr523
8fde52c512
Xin 145 ( #82 )
...
* add HandleProposedBlock() in procFutureBlocks()
* add proposedBlockHandler for downloader
2022-04-22 00:12:44 +08:00
olumuyiwadad
2b326de485
fix C-[a-m] tests.
2021-09-27 16:50:45 +05:30
olumuyiwadad
c0677f03cb
update test C-[a-m] tests.
2021-09-27 12:47:59 +05:30
olumuyiwadad
fb0e9fac89
fix test C-[a-m] tests.
2021-09-27 12:29:05 +05:30
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
Jianrong
0fdab2027c
add linting as the first CI task
2021-08-07 14:27:08 +10:00
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
9b13f2279e
Update command prompts
2019-03-16 16:13:35 +05:30
AnilChinchawale
a638d2adc0
Minor error fixed.
2019-03-16 16:02:10 +05:30
AnilChinchawale
7de9cee4fb
Trezor data updated
2019-03-14 15:59:48 +05:30
AnilChinchawale
a4e35b0a22
Fixed issue | File Modified
2019-01-05 08:32:22 +05:30
AnilChinchawale
52567157ff
Fixed issue main | File Modified
2019-01-03 08:31:36 +05:30
AnilChinchawale
15e76b17de
Fixed issue Config & consolecmd | File Modified
2018-12-31 23:29:39 +05:30
AnilChinchawale
05a7433768
Fixed issue accountcmd & chaincmd | File Modified
2018-12-31 23:28:15 +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
51c88fe8ce
create new api get reward
2018-11-19 11:21:42 +05:30
parmarrushabh
ece14048a5
fixed only three MNs making block when --XDC testnet flag enable
2018-11-17 17:10:09 +05:30
parmarrushabh
5501a5707c
fixed
2018-11-17 16:15:25 +05:30
AnilChinchawale
f0cf0a9f15
Add annouce-txs, maxpeers 25
2018-11-17 14:18:01 +05:30
parmarrushabh
abd494055b
fix err download block on masternode
2018-11-14 11:29:48 +05:30
MestryOmkar
4e1b835434
enable txPool flags
2018-11-12 15:09:35 +05:30
parmarrushabh
0c8315163b
extend max peer per node to 200
2018-11-09 17:06:14 +05:30
parmarrushabh
1396b1a10f
Fixed unit test for new m2 block header.
2018-11-09 16:29:54 +05:30
AnilChinchwale
551fd57271
Fixed unit test for penalty feature.
2018-11-07 10:46:09 +05:30
AnilChinchawale
deb79f4a23
push Randomization implementation
2018-11-06 17:27:13 +05:30
parmarrushabh
944494f6e4
Revert Randomization implementation
2018-11-06 16:16:29 +05:30
MestryOmkar
20c5123739
Fixed unit test for block randomize.
2018-11-05 11:45:14 +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
AnilChinchawale
7e7bc37c20
convert update M1 method from async to sync
2018-11-02 12:14:43 +05:30
MestryOmkar
d277d0b444
fix unit tests
2018-11-02 11:45:07 +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
AnilChinchawale
cb167f9180
move config bootnode to xdc toml file
2018-10-31 10:42:04 +05:30
AnilChinchawale
7597e6ca5e
add option set account , password with flag
2018-10-31 10:34:22 +05:30
parmarrushabh
cb5a55a904
change config from flag to toml file; fix tag listenaddr
2018-10-31 10:30:25 +05:30
parmarrushabh
51ef74203a
update return error when update M1
2018-10-31 18:58:34 +05:30
parmarrushabh
ce89b6b92d
making XDPoS as a separate package
2018-10-28 11:58:50 +05:30
parmmarrushabh
dccf2ca3e9
Add signers and finality to block status rpc api.
2018-10-27 16:28:04 +05:30