Konstantin
3175d8aab3
Bump go1.18. ( #4107 )
...
* Bump go1.18.
* Build tags.
* Go vet errors fix.
* Fix imports.
* Fix imports.
* Fix go vet.
* Fix protobuf.
* Fix file gen.
* Fix tools.
* Travis fix.
* Travis fix.
* Travis fix.
* Fix dependency.
* Clean up.
* Fix rosetta test.
* Add comment to run tests.
* Add comment to run tests.
* 1.18.2
* Fix rosetta script.
* Fix docker version.
* Fix imports.
* Fix formatting.
* Fix formatting.
Co-authored-by: Konstantin <k.potapov@softpro.com>
2 years ago
Konstantin
06de7dcd6c
Fix race errors. ( #4184 )
...
* Fix data races.
* Fix block num.
* Pub key lock.
* Fixed race errors.
* Fix flag.
* Fix comments.
* Fix comments.
* Fix type.
* Fix race errors in tests.
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
PeekPI
20edef740b
Increase voting power of harmony nodes in testnet to 0.7 ( #4200 )
...
* increase voting power of harmony nodes in testnet to 0.7
* decrease QuorumThreshold to 0.6 of testnet
* decrease QuorumThreshold of testnet to 51%
* change IsQuorumAchievedByMask
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
PeekPI
8b1d7a526a
[consensus] HIP-18: Allowlist for external leaders ( #4146 )
...
* HIP18: support allowlist
* sort allowlist by default order
* fix and add unit test
* simplified calculation of index of leader
* restore code of NthNextHmy()
* rename MaxLimit to MaxLimitPerShard and add comments
* init allowlist of testnet
* update allowlist
* change HIP18 epoch to TBD
* set HIP18 of testnet to 75840
* rename _BLS() to BLS()
* update comment
* add version of allowlist variable
* recover the travis_rpc_checker script
* update HIP18 epoch
3 years ago
Konstantin
97eb8d972f
Go vet fixed.
3 years ago
Paul M Fox
0a0f3aaea2
Add defer statement to mutex critical code
...
I can only assume the `Unlock()` should be deferred, since otherwise the mutex is locked and then immediately unlocked with no effect.
3 years ago
Rongjian Lan
11a4f87c3f
send 2/3 commit before block insertion in final commit; do not include txns in epoch block
3 years ago
Rongjian Lan
b8ab65e929
Revert "[fixme] ignore M1 in view change to reach consensus"
...
This reverts commit 79947fb167
.
3 years ago
Rongjian Lan
16eb2c9f3e
fix decode on nil pointer ( #4001 )
3 years ago
Leo Chen
5b52117f8b
[log] reduce log on vc check
...
Signed-off-by: Leo Chen <leo@harmony.one>
3 years ago
Leo Chen
ede0aba0e8
[log] set log to debug on vc message
...
Signed-off-by: Leo Chen <leo@harmony.one>
3 years ago
Leo Chen
79947fb167
[fixme] ignore M1 in view change to reach consensus
...
Signed-off-by: Leo Chen <leo@harmony.one>
3 years ago
Rongjian Lan
3a4eaa55df
send committed message before block insertion ( #3987 )
3 years ago
Rongjian Lan
0c30830c06
fix block decode issue and add more nil check ( #3953 )
3 years ago
Rongjian Lan
6e4ddd077b
send committed message before block insertion ( #3987 )
3 years ago
Rongjian Lan
f5dea3995b
fix block decode issue and add more nil check ( #3953 )
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
Rongjian Lan
0bed4945f4
Order super committe slots list by bitmap order ( #3913 )
3 years ago
Rongjian Lan
471af49477
add logic to verify blocks in announce phase ( #3897 )
...
* add logic to verify blocks in announce phase
* add block data in announce message
3 years ago
LuttyYang
6bd1c152dd
add rpc api for support monitor the signing power ( #3848 )
...
* add rpc api for https://github.com/harmony-one/watchdog/issues/11
* fix bug: last power will be cleaned up
* fix goimports
3 years ago
Rongjian Lan
4c6659ff25
Add logic to do aggregated reward distribution once every 64 blocks ( #3828 )
...
* Add logic to do aggregated reward distribution
* Fix build and consensus
* add aggregated reward logic
* refactor payouts
* Fix batch scheduling
* test code
* revert test code
* more comments
3 years ago
Lutty
faacc7c091
rebase code
3 years ago
Leo Chen
a33bf913f0
[fix] remove double sign checking ( #3763 )
...
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
Leo Chen
6703b7fb34
[vc] print out size of m1 message ( #3761 )
...
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
Rongjian Lan
87fb0116e5
Add vrf as a precompile in evm
4 years ago
Rongjian Lan
32c21b173d
Fix error reports and add benchmark tests
4 years ago
Rongjian Lan
5386978b0c
Add vrf verification in block verification logic
4 years ago
Rongjian Lan
ef9fd043a2
Add vrf proposal and vrf epoch
4 years ago
Jacky Wang
f203a5b41c
[engine] refactored engine and added VerifyCrossLink method
4 years ago
Leo Chen
4cb5afdf51
[log] remove excessive ballot log
...
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
Jacky Wang
54ab774353
[consensus] change one error log level, and removed quorum achieve check in onCommitted
4 years ago
Jacky Wang
e51bdbdc19
[misc] resolved comments of TODOs
4 years ago
Jacky Wang
38b30dc36e
[consensus] use verifyHeader signature in onCommitted
4 years ago
Jacky Wang
cd50682097
[engine][stream] updated engine VerifyHeaderWithSignature and fix downloader test
4 years ago
Rongjian Lan
60a64e34f9
trigger travis
4 years ago
Rongjian Lan
a03a17ce45
clean up and todos
4 years ago
Rongjian Lan
c87c7f8cb4
avoid repeated block verification
4 years ago
Jacky Wang
e461b85ac8
[stream][consensus] resolve stn stuck issue and some fixes to short range sync.
4 years ago
Leo Chen
ad09336c89
[bootstrap] do not stop bootstrap timer
...
When the node initially rebooted,
it may enter 'Syncing' mode, while it will
stop the bootstrap timer.
When the network is in viewchange mode, itself
can't enter view change mode anymore and will stuck
in syncing mode forever.
This PR is a fix of this long time issue,
https://github.com/harmony-one/harmony/issues/3572
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
Jacky Wang
0eeb87679e
[consensus] changed on error message
4 years ago
Jacky Wang
72286f09ec
[stream] resolve some code review comments
4 years ago
Jacky Wang
312843e5a1
[stream] added downloader / consensus interface
4 years ago
Jacky Wang
5eb1cf1d1e
[stream] added a signature in ChainReader to fix the build error
4 years ago
Rongjian Lan
68bc2b7078
remove unused line
4 years ago
Rongjian Lan
a6f356b386
avoid unnecessary header sig checking
4 years ago
Leo Chen
b3cab12851
[panic] fix nil pointer map assignment
...
add further protection to vc map assignment
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
Leo Chen
61638240a2
[panic] fix nil pointer crash during view change
...
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
Leo Chen
48e25b2969
[testnet] re-enable 40% external voting power
...
Re-enable 40% external power for testnet from Epoch 43490
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago