Rongjian Lan
a03a17ce45
clean up and todos
4 years ago
Rongjian Lan
b6ca283a8a
remove unnecessary crosslink broadcast in state sync
4 years ago
Jacky Wang
b2fe9fe348
[stream] node.IsRunningBeaconChain is refactored to a new method
4 years ago
Jacky Wang
e1358ee1fc
[stream] fixed flag tests
4 years ago
Jacky Wang
fbff3b4be5
[stream] added --sync.downloader flag to enable the node run sync stream server without start downloader
4 years ago
Jacky Wang
3b58b45a36
[stream] setupSyncService small updated to fix code writing that might cause confusion
4 years ago
Jacky Wang
bbe14e7500
[stream] updated mainnet default config, default sync values and versions
4 years ago
Jacky Wang
79f9e12168
[stream] setup downloader in main. Added sync related flags, and revert beacon helper not to verify signature"
4 years ago
Jacky Wang
c05e150aa7
[stream] rename dns syncing package to legacysync
4 years ago
Jacky Wang
3d6858aba5
[P2P] Added functionality to Host for stream, replaced networkInfo service. ( #3534 )
...
1. Added some functionality to HostV2 for stream support.
2. Added new module discovery under p2p host to replace the networkInfo service.
3. Make dht datastore badger only active on bootstrap nodes. For normal nodes, badger is disabled by default. It can also be enabled by flags.
Co-authored-by: Rongjian Lan <rongjian.lan@gmail.com>
4 years ago
Jacky Wang
f00c90e3e6
Graceful shutdown - All registered services are shutdown gracefully. ( #3533 )
...
1. Refactored service manager with cleaner interface.
2. Add prometheus to the service manager.
3. Graceful shutdown of the services (including consensus).
4. Some code refactor regarding consensus graceful shutdown.
Co-authored-by: Rongjian Lan <rongjian.lan@gmail.com>
4 years ago
Rongjian Lan
d1f1103b02
Resolves issues on eth comaptible txns ( #3500 )
...
* make eth txn works
* Add forking logic for ethereum compatible txn support
4 years ago
Rongjian Lan
d6e98436f4
Add EthChainID and update signers accordingly for processing eth txns. ( #3497 )
...
* allow eth hmy txn conversion
* Add EthChainID and update signers for it
* resolve comments about hash()
4 years ago
Leo Chen
b38118fcbb
[node] graceful shutdown validators ( #3483 )
...
* [node] graceful shutdown validator and leader
when leader/validator is in commit phase, wait until it finishes the consensus
before shutdown the node.
This is useful for node upgrade to avoid unexpected blockchain state.
Signed-off-by: Leo Chen <leo@harmony.one>
* [node] stop block proposal service on leader
Signed-off-by: Leo Chen <leo@harmony.one>
* [node] warn on block proposal stopped
Signed-off-by: Leo Chen <leo@harmony.one>
Co-authored-by: Rongjian Lan <rongjian.lan@gmail.com>
4 years ago
Leo Chen
5c6dfc0d46
[bootnode] fix config test
...
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
Rongjian Lan
6782972407
Cleanup sharding config code and add epoch block change for localnet ( #3473 )
...
* Cleanup sharding config and add epoch block change for localnet for better testability
* remove test code
4 years ago
Rongjian Lan
60e42232a9
Change blocks per epoch for testnet. ( #3472 )
...
* Add 3s block time and change of block reward
* fixes
* add new blocks per epoch for testnet
* remove unused code
* fix 2s changing logic
* enable 2s at epoch 73000 at testnet
4 years ago
Leo Chen
c8631f2be8
[config] rename IsArchival to ArchiveModes
...
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
Leo Chen
74971b63b9
[config] disable beacon archival by default
...
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
Leo Chen
6b5e84dda0
[prometheus] expose Config and remove module variable
...
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
Leo Chen
47b05a2458
[prometheus] fixed test error
...
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
Leo Chen
1c739d7581
[prometheus] add node type into job name
...
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
Leo Chen
1bd3b9fe9f
[prometheus] enable pushgateway for mainnet node by default
...
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
Leo Chen
06afef29dc
[prometheus] remove redundant default config
...
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
Leo Chen
e0ba870ca7
[prometheus] add EnablePush flag
...
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
Leo Chen
1b15d5a9d7
[prometheus] move config to prometheus package
...
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
Leo Chen
d06fcd95f5
[prometheus] use peer id as instance name
...
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
Leo Chen
6817dd3792
[prometheus] add network type and shard id
...
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
Leo Chen
e1c528e9ff
[prometheus] init pushgateway support
...
* add prometheus.gateway flag support
* instance: peerid
* job: network_type/shard
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
Leo Chen
392deab76d
[prometheus] enable prometheus config with old toml file ( #3464 )
...
* [prometheus] enable prometheus config with old toml file
* [prometheus] fixed go test
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
Leo Chen
cc9f435303
[prometheus] add prometheus ip configuration flag
...
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
Leo Chen
b4af9bffdd
[prometheus] initial support of prometheus metrics
...
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
Rongjian Lan
bae5be68da
add aggregateSig flag ( #3438 )
...
* add aggregateSig flag
* add flag to valid
* revert import change
* enable agg sig at epoch 233 for shard 3 in mainnet
* fix consensus nil
* revert agg sig epoch logic
* fix test
4 years ago
Rongjian Lan
4aef0f4132
do not sent committed at 67%
4 years ago
Rongjian Lan
32c29e29f9
Revert "remove beacon sync for explorer node"
...
This reverts commit 13051c4cf8
.
4 years ago
Rongjian Lan
13051c4cf8
remove beacon sync for explorer node
4 years ago
Rongjian Lan
9d95b9844d
rename ChainReader to Blockchain
4 years ago
Rongjian Lan
611448a0a1
pipelining wireframe
4 years ago
Janet Liang
72115e4707
[config] Rename Enabled to DebugEnabled to be more clear
4 years ago
Janet Liang
090f525d91
[test] Fix lint
4 years ago
Janet Liang
c0ec32a8ff
[test] Add test for RPC Opts
4 years ago
Janet Liang
ec3f266cda
[config] Add flag to enable/disable private debug apis
4 years ago
Leo Chen
bf9a240a61
[ntp] do not exit if ntp query failed
...
In case of ntp server is busy, we added the following
protection.
* increase timeout of ntp query
* ignore timeout error for ntp query
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
Leo Chen
3421a08e04
[ntp] make sys.ntp an optional flag with default value
...
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
Leo Chen
c960284293
[ntp] hide sys.ntp configuration
...
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
Leo Chen
6358379924
[ntp] address review comments
...
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
Leo Chen
112b403ba3
[ntp] check local time against ntp server
...
* add sys.ntp flag
* exit the node program if local time is 50ms off the NTP time
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
Rongjian Lan
afdd74c1fb
fix comments
4 years ago
Rongjian Lan
0141604162
Add multikey dedup and test cases
4 years ago
Leo Chen
0ad38d2a1c
make viewchange variable private
...
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago