Gheis
54742e73e1
staged dns sync v1.0 ( #4316 )
...
* staged dns sync v1.0
* enabled stream downloader for localnet
* fix code review issues
* remove extra lock
Co-authored-by: “GheisMohammadi” <“Gheis.Mohammadi@gmail.com”>
2 years ago
Konstantin
7a61257f24
Min bound, reconnect and additional checks. ( #4257 )
2 years ago
lutty
720f9a6a02
tested tikv code
2 years ago
Konstantin
0753c94c2b
Epoch syncing - syncing only epoch blocks. ( #4070 )
...
* Epoch syncing - syncing only epoch blocks.
* Fix go test, added command to run.
* Block signature validation.
* Support getting block by height.
* Fix to compile.
* Http method.
* Generate fix.
* Install protoc-gen-go-grpc.
* Fix sync, additional timeouts, fix epoch.
* Chain behaviour options, optional state validation on blockchain initialization.
* Added limit to avoid abuse, small fixes.
* Fix duplicate code.
* Fix isInSyn.
* Fix method call.
* Removed additional block sending.
* Fix in sync.
* Code clean up.
* Fix beacon chain func.
* Return back Beaconchain.
* Fix sending only epoch blocks.
* Fix failed startup with validator.
* Increase recv message size.
* Remove peer.
* Add logs.
* Add logs.
* Fix msgf call.
* Epoch syncing - syncing only epoch blocks.
* Block signature validation.
* Fix sync, additional timeouts, fix epoch.
* Chain behaviour options, optional state validation on blockchain initialization.
* Support getting block by height.
* Http method.
* Fix duplicate code.
* Fix isInSyn.
* Added limit to avoid abuse, small fixes.
* Fix method call.
* Removed additional block sending.
* Fix in sync.
* Small fix.
* Code clean up.
* Fix beacon chain func.
* Return back Beaconchain.
* Fix sending only epoch blocks.
* Fix failed startup with validator.
* Increase recv message size.
* Remove peer.
* Add logs.
* Fix msgf call.
* Sending crosslinks from beacon to non-beacon chains.
* Receiving crosslinks.
* Broadcast.
* Fix comment.
* Crosslink signal.
* Crosslink hardbeat signal receiving.
* Sending crosslinks from beacon to non-beacon chains.
* Sending crosslinks from beacon to non-beacon chains.
* Broadcast.
* Fix comment.
* Crosslink signal.
* Crosslink signal.
* Add comment to run tests.
* Fix comments.
* Fix comments.
* Fix review comments.
* Updated with last crosslink heart beat signal.
* Merged crosslink signal.
* Clean up code.
* Add logs for cl debug.
* Stop iterate on receiving result.
* Add logs.
* Fix in sync check.
* Fix reconnect problems.
* Fix tests and reduce dependency.
* Updated with main.
* Fix review comments.
* Changed to compare epochs.
* Fix crosslinks usage.
* Fix initialization.
* Epoch chain implementation.
* Legacy sync by default.
* Revert "Legacy sync by default."
This reverts commit 5fa6ce002a
.
* Epoch sync for downloader.
* Build docker image while tests.
* Fix paths.
* Updated travis.
* Review improvements.
Co-authored-by: Konstantin <k.potapov@softpro.com>
2 years ago
Konstantin
4eabc120b1
Blockchain interface. ( #4214 )
...
* Blockchain interface.
* Fix comments, remove unused.
Co-authored-by: Konstantin <k.potapov@softpro.com>
2 years ago
Konstantin
7a8e5d468c
Feature 4160 beacon crosslink signal. ( #4169 )
...
* Sending crosslinks from beacon to non-beacon chains.
* Sending crosslinks from beacon to non-beacon chains.
* Broadcast.
* Fix comment.
* Crosslink signal.
* Crosslink signal.
* Add comment to run tests.
* Fix comments.
* Fix comments.
* Fix review comments.
* Fix comments.
* Fix comments.
Co-authored-by: Konstantin <k.potapov@softpro.com>
3 years ago
Frozen
c698ee4c5d
Feature get blocks by height. ( #4078 )
...
* Support getting block by height.
* Fix to compile.
* Http method.
* Generate fix.
* Install protoc-gen-go-grpc.
* Added limit to avoid abuse, small fixes.
Co-authored-by: Konstantin <k.potapov@softpro.com>
3 years ago
harjas
a82ab83ac3
Add p2p metrics
3 years ago
Leo Chen
463ec55c51
[build] update protoc version ( #4013 )
...
Signed-off-by: Leo Chen <leo@harmony.one>
3 years ago
Leo Chen
908ea1ae2a
[ci] update generated .pb files
...
Signed-off-by: Leo Chen <leo@harmony.one>
3 years ago
Leo Chen
fc4dc9ff73
[ci] fix travis build
...
Signed-off-by: Leo Chen <leo@harmony.one>
3 years ago
Jacky Wang
af5eaa8d0a
[RPC] Replace go-ethereum/rpc module with harmony/eth/rpc ( #3983 )
...
* [rpc] fix some test cases
* fix test cases
* [rpc] use harmony/eth/rpc for customized changes
* [RPC] replace one more use of RPC at accounts module
* [RPC] fix test cases
3 years ago
Jacky Wang
2f679554eb
[SYNC] Sync stuck fix2 ( #3976 )
...
* fix an data race cause by early unlock
* add a concurrency test for syncing cache
* skip the concurrent test for sync status
3 years ago
Jacky Wang
f0103161ae
[sync] release one runlock at forEachPeer, and change default maxPeerHeight to maxInt if error
3 years ago
Jacky Wang
a135e1f110
[sync] extend the expiration for sync status cache for non-validator nodes ( #3974 )
3 years ago
Jacky Wang
d7af5ee9e0
[SYNC] refactor and make sync status check interval smaller ( #3918 )
...
* [sync] further refactor the underlying code of sync rpc, make the sync status update every 6 seconds
* [SYNC] recover some unexpected comment change because of refactoring
* [rpc] add some tolerance of 10 to inSync and beaconInSync
* fix typo
* [sync] better name
* fix the data race under intensive sync status call
* [sync] fix the intensive call with double lock. Fix bug of dead lock
* remove one test message
3 years ago
Jacky Wang
3e5c0e035e
[sync] remove two unnecessary use of global mutex in StateSync ( #3970 )
...
* [sync] remove two unnecessary global mutex in StateSync
* [rpc] remove another unnecessary use of global mutex.
3 years ago
Soph
17e6bafb3b
[RPC] revert PR #3907 ( #3922 )
...
* Revert "Merge pull request #3907 from harjas27/go_json"
This reverts commit 791c9d2018
, reversing
changes made to 0bed4945f4
.
* [api] remove unused go-ethereum/rpc
* fix go-get error
Co-authored-by: Nita Neou <soph@harmony.one>
3 years ago
Jacky Wang
4bf9c3e527
[RPC] General solution of prometheus metrics for all RPC methods ( #3919 )
...
* [rpc] add method wise prometheus metrics
* [misc] remove method APIs for all services (not used anyway)
* [misc] remove use of service.APIs
* [rpc] fix goimport error, renamed new prometheus rpc
3 years ago
Jacky Wang
c1f62404a3
Sync status rpc fix ( #3912 )
...
* [RPC] avoid RPC call DNS service
* [rpc] refactored function name
3 years ago
harjas
44c13a24cd
Update goimports
3 years ago
harjas
9c9793cbc1
use eth rpc with go-json
3 years ago
niklr
7cf9c37fe3
Rename mutex in pprof service
3 years ago
niklr
cb273387a7
Fix pprof service race condition
3 years ago
niklr
7af5cdd864
Update pprof module extension
3 years ago
niklr
def0d0028c
Fix pprof service tests
3 years ago
niklr
ef140c0b93
Implement pprof module extension
3 years ago
Rongjian Lan
1ce6fe1355
Add logs for elapsed time for block processing; Add bls agg sig benchmark test code. ( #3824 )
...
* Add timing log and agg sig tests
* fix build
* add more logs
3 years ago
Jacky Wang
768a570363
Fix circulating supply ( #3802 )
...
* [rpc] updated rpc to GetCirculationSupply to sub token burnt
* [explorer] add a small fix
* [rpc] fix at getInaccessible tokens
* [rpc] added fix at header.Root
3 years ago
peekpi
e86282408d
[tracer] fix bug of nil reference
3 years ago
peekpi
9a3ab9fcaa
[explorer] adapt trace storage
3 years ago
peekpi
d21f18f96c
use traceResult instead of traceData
3 years ago
peekpi
b2472d87c0
[tracer] change tracer to apply to block instead of tx
3 years ago
peekpi
61263c6572
[tracer][rpc] fixed query bug
3 years ago
peekpi
054ba5d712
[explorer][tracer] store trace result into explorer db
3 years ago
Jacky Wang
4bcf251c75
[explorer] set in sync to false when explorer service unavailable ( #3794 )
3 years ago
Jacky Wang
63ffc86bea
Explorer db schema ( #3790 )
...
* [explorer] added a lot of code
* [explorer] added a lot of code
* [explorer] more adding
* [explorer] clean up and more code added
* [explorer] fixes according to test results
* [explorer] changed leveldb params, batch size, and a dirty data fix
* [explorer] fix on dirty data, fix on HasPendingTasks, and increase worker number
* [explorer] fix for contract creation
* [explorer] fixed local travis test
3 years ago
Leo Chen
07807c8f2d
[sync] add a tolerance number for node-sync checking
...
Signed-off-by: Leo Chen <leo@harmony.one>
3 years ago
Jacky Wang
ff3b398158
Explorer db commit performance optimization ( #3775 )
...
* [explorer] added caching fix at flushing db.
* [explorer] fixed all rpc points
* [explorer] small change to refactor storage.Start
* [explorer] fix go test
* [explorer] further increase the batch size
* [explorer] release lock during db writing data
* [explorer] change to rlock/runlock at flushLocked
* [explorer] also add flush time mechanism to trigger flushing
* [explorer] when checking checkpoint, first check memory, then check db
4 years ago
Jacky Wang
ba08520b28
[sync] changed param to support low network bandwidth against large block ( #3766 )
...
* [sync] changed param to support low network bandwidth against large block
* [sync] increase the retry limit per process loop
4 years ago
Jacky Wang
720aa234d2
[sync] half the batch size of downloading a block ( #3745 )
4 years ago
Leo Chen
5a93de7b83
[log] set noisy log message to debug level
...
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
Jacky Wang
c84d01aba2
[dnsSync] changed logger level to error when failed to listen for a specific port when starting sync server.
4 years ago
Jacky Wang
d7f31c5721
[cmd] changed code of dns-port
4 years ago
Jacky Wang
1ea2725457
[explorer] Instruct explorer.InSync RPC uses NodeAPI as backend.
4 years ago
Rongjian Lan
a360fd19b0
Add cache for address index
4 years ago
Jacky Wang
66e6d035e3
[sync] make sync rpc compatible with legacy sync
4 years ago
Jacky Wang
e8266f5c86
[sync] ease the verification on dns client side, enable server forward compatibility
4 years ago
Jacky Wang
6275eaf0b0
[sync] fix the bug in UpdateBlockAndStatus
4 years ago
Jacky Wang
2916c3379f
[sync][stream] remove writeCommitSig in both legacy sync and downloader
4 years ago