Rongjian Lan
a1022e92d8
add todo
4 years ago
Rongjian Lan
ea0af40ef6
revert view changing id update
4 years ago
Rongjian Lan
61edc85a90
fix block hash in new view
4 years ago
Rongjian Lan
c270381a9f
Update viewchangingid; don't reset state in new view
4 years ago
Daniel Van Der Maden
a6f8540711
Update documentation for addition of rosetta tests
...
Signed-off-by: Daniel Van Der Maden <dvandermaden0@berkeley.edu>
4 years ago
Leo Chen
fde9849eb6
[viewchange] stop sending view change msg
...
* when new leader sent NewView message
* when validators received valid NewView message
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
Leo Chen
205c77b7da
[viewchange] should not startNewView is not in viewChange mode
...
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
Leo Chen
cecdd0da5a
[viewchange] fix view change
...
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
Rongjian Lan
611448a0a1
pipelining wireframe
4 years ago
Leo Chen
f2ffd98e04
[node.sh] fix public ip query issue with opendns
...
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
Leo Chen
933ced343e
Merge pull request #3396 from janet-harmony/private_debug_service
...
[config] Add flag to enable debug APIs
4 years ago
Leo Chen
2b6116b90a
Merge pull request #3404 from Daniel-VDM/rosetta-travis-test
...
Rosetta CI Tests (Stage 5 of Node API Overhaul)
4 years ago
Daniel Van Der Maden
25b7373b5f
[travis] Fix script call perm err
...
Signed-off-by: Daniel Van Der Maden <dvandermaden0@berkeley.edu>
4 years ago
Daniel Van Der Maden
a69d87740f
[travis] Rename travis_build_checker.sh to travis_go_checker.sh
...
Signed-off-by: Daniel Van Der Maden <dvandermaden0@berkeley.edu>
4 years ago
Daniel Van Der Maden
42f7ab68c5
[travis] Add travis_rosetta_checker.sh & rename other checks
...
Signed-off-by: Daniel Van Der Maden <dvandermaden0@berkeley.edu>
4 years ago
Daniel Van Der Maden
839f70206c
[test] Expose ports for go.sh
...
Signed-off-by: Daniel Van Der Maden <dvandermaden0@berkeley.edu>
4 years ago
Daniel Van Der Maden
28a72f4aee
[test] Add rosetta.sh & change api.sh to rpc.sh
...
* Update Makefile for new tests
Signed-off-by: Daniel Van Der Maden <dvandermaden0@berkeley.edu>
4 years ago
Daniel Van Der Maden
c0335c27b4
[test] Add option to expose http & ws IP
...
Signed-off-by: Daniel Van Der Maden <dvandermaden0@berkeley.edu>
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
87a443a910
Merge pull request #3386 from LeoHChen/synchronous-view-change
...
[viewchange] time-based synchronuous view change
4 years ago
Leo Chen
1001ac573d
[viewchange] remove duplicated unlock
...
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
Leo Chen
08cb490163
[viewchange] use IsLastBLockInEpoch to determine new epoch
...
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
Leo Chen
517fdabe5c
[viewchange] remove viewID param in startViewChange func
...
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
Leo Chen
e8a8b6f543
[viewchange] only rotate leader among harmony nodes
...
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
Leo Chen
45a7823ede
[debug] print out members
...
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
Leo Chen
1043207689
[consensus] print log when participants is empty
...
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
Leo Chen
689a86f889
[viewchange] handle view change in first block of an epoch
...
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
Leo Chen
e0dcb97c29
[viewchange] remove unnecessary check of view id diff
...
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
Leo Chen
234f202656
[viewchange] time-based synchronuous view change
...
For view change, the view change ID is the key to determine which node
will be next leader. In our original algorithm, the view ID always increased one step
at a time. The view change period increased exponetially based on the square of
the gap between current view changing ID and previous known block view change ID.
However, it is very slow to converge the view change if multiple nodes are offline and
view change can't be reached. Especially, during the shard down event, multiple nodes
are offline and other nodes have advanced their current view changing ID.
The new time-baed synchronuous view change algorithm uses the local timestamp and
the timestamp of the block to calculate the expected view changing ID. In this case,
offline nodes can immediately catch up with the latest view changing ID as long as
the offline nodes have the latest sync'ed block and relatively acturate local
clock. This algorithm will converge the view change faster in one or two view change
duration.
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
Daniel Van Der Maden
046e87e9f8
Rosetta Implementation Cleanup FIX (Stage 3 of Node API Overhaul) ( #3402 )
...
* [rosetta] Fix pre-staking rewards with GetPreStakingBlockRewards
Signed-off-by: Daniel Van Der Maden <dvandermaden0@berkeley.edu>
* [hmy] Refactor GetDetailedBlockSignerInfo to use availability
* Add GetPreStakingBlockRewards with cache
Signed-off-by: Daniel Van Der Maden <dvandermaden0@berkeley.edu>
* [rosetta] Fix prestaking block reward unit tests
Signed-off-by: Daniel Van Der Maden <dvandermaden0@berkeley.edu>
* [rosetta] Report tx fees of coinbase for prestaking rewards
Signed-off-by: Daniel Van Der Maden <dvandermaden0@berkeley.edu>
4 years ago
Rongjian Lan
1a915c0582
Merge pull request #3400 from JackyWYX/fix_epoch_leader_change
...
[consensus] fix leader change during epoch change
4 years ago
Jacky Wang
b238d71e16
[consensus] move UpdateConsensusInformation from onConsensusDone to commitBlock
4 years ago
Daniel Van Der Maden
a707777be8
Rosetta Dockerfile FIX2 (Stage 4 of Node API Overhaul) ( #3398 )
...
* [rosetta] Update docker file name in readme
* [rosetta] Print node version when running node using docker
* [rosetta] Make docker image smaller & update README.md
Signed-off-by: Daniel Van Der Maden <dvandermaden0@berkeley.edu>
4 years ago
Rongjian Lan
720c348827
Merge pull request #3355 from rlan35/main
...
Make block proposal async and receiving last commit sig through channel
4 years ago
Rongjian Lan
a666e14ef3
Add more tests
4 years ago
Rongjian Lan
aaf6250301
Merge branch 'main' of github.com:harmony-one/harmony into main
4 years ago
Rongjian Lan
198e33e637
Merge pull request #3397 from LeoHChen/ntp
...
[ntp] do not exit if ntp query failed
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
Rongjian Lan
af8fe283db
Add more comments and shorten timeout
4 years ago
Rongjian Lan
cc6f62164e
Merge branch 'main' of github.com:harmony-one/harmony into main
4 years ago
Daniel Van Der Maden
6f782fe54b
[rosetta] Use github run.sh instead of copy ( #3395 )
...
Signed-off-by: Daniel Van Der Maden <dvandermaden0@berkeley.edu>
4 years ago
Rongjian Lan
624e41f7c1
merge with latest main
4 years ago
Leo Chen
7c5da8c7e8
Merge pull request #3394 from LeoHChen/ntp
...
[ntp] check local time against ntp server
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