Rongjian Lan
eb4fcc93ab
Optimize crosslink verification logic and add more cache ( #3032 )
5 years ago
Rongjian Lan
b8ab786244
add nil check on getHeader ( #3030 )
5 years ago
Leo Chen
db21d9205c
[log] use proper log level on messages
...
Signed-off-by: Leo Chen <leo@harmony.one>
5 years ago
Edgar Aroutiounian
1b62e28073
[node] Bump handlers by order of magnitude ( #3026 )
5 years ago
Jacky Wang
9f6e09dce9
Code formatting fix based on `staticcheck` ( #3023 )
...
* fix some static check issues
* more fixes according to staticcheck
5 years ago
Leo Chen
7ccd386a4c
[build] enable static build by default ( #2885 )
...
scripts/go_executable_build.sh -s (static build, default)
scripts/go_executable_build.sh -S (non-static build)
Signed-off-by: Leo Chen <leo@harmony.one>
5 years ago
Ganesha Upadhyaya
436de05bea
write validator stats at the end of prestaking epoch ( #3020 )
...
* write validator stats at the end of prestaking epoch
* also write out block reward accumulator
5 years ago
Ganesha Upadhyaya
31ecffc5f9
write validator stats at the end of prestaking epoch ( #3021 )
...
* write validator stats at the end of prestaking epoch
* also need to write block reward accumulator
5 years ago
Daniel Van Der Maden
8703dcebb8
[txpool] Correct logging level
5 years ago
Rongjian Lan
a545327567
Add LastEpochInCommittee at prestaking epoch too ( #3014 )
5 years ago
Rongjian Lan
c09b3c3af7
Add LastEpochInCommittee at prestaking epoch too ( #3016 )
5 years ago
Ganesha Upadhyaya
ac977cfd9d
fix signers share computation to use only non-harmony nodes ( #3011 )
5 years ago
Ganesha Upadhyaya
9f9223b50a
fix signers share computation to use only non-harmony nodes ( #3008 )
5 years ago
Leo Chen
f5089b5563
[node.sh] add -L to set logging verbosity level
...
Signed-off-by: Leo Chen <leo@harmony.one>
5 years ago
Leo Chen
75d53190d1
[p2p] use debug level for p2p metrics data
...
Signed-off-by: Leo Chen <leo@harmony.one>
5 years ago
Rongjian Lan
053ded89ee
fix staking epoch number
5 years ago
Rongjian Lan
7c3c5b1d0b
add 185 prestaking and 186 staking epoch
5 years ago
Leo Chen
b5cc34f1e6
[node.sh] chmod +x node.sh after download
...
Signed-off-by: Leo Chen <leo@harmony.one>
5 years ago
Leo Chen
2b25632219
Revert "[node] Throttle acceptance of incoming messages ( #2970 )"
...
This reverts commit c2f089f618
.
5 years ago
Rongjian Lan
32dfea43a5
Make leader commit m1payload itself ( #2997 )
...
* Make leader commit m1payload itself
* remove test code
5 years ago
Ganesha Upadhyaya
9c112c53c4
super-committee for staking epoch should have empty previous committee, not error out ( #2996 )
5 years ago
Rongjian Lan
1dad435291
fix crash on parsed block ( #2993 )
5 years ago
Rongjian Lan
3a32fedb1d
Fix commit payload ( #2986 )
...
* Always use block data for commit payload
* remove the misleading consensus.epoch
* Fix lint and test
* Remove consensus.String(); fix slash test
5 years ago
Ganesha Upadhyaya
3a31ad219e
validator stats regression due to apr bug fixed ( #2981 )
...
* validator stats regression due to apr bug fixed
* better coding style
* correctly computing apr accounting for epoch holes
* APRHistory for only 30 last epochs
5 years ago
Edgar Aroutiounian
c2f089f618
[node] Throttle acceptance of incoming messages ( #2970 )
...
* [node] Throttle acceptance of incoming messages
* [p2p] Add sampled logger
* [go.mod] Bump libs
* [p2p][node] More sampled logs
* [p2p] Disable auto relay, force public reachability, fix bandwidth reporter, enable NAT service
* [p2p] Turn off some options
* [node] Remove noisy and incorrect impl p2p log
* [node] Sample bump to 24 second
* [p2p] Remove linger of metric
* [consenus] Fix race condition
* [consensus] Race condition for grace period
* [node] Less noisy closure
* [node] Less noisy closure
* [node] Bump context timeout on message, explicit cancel of context
* [node] Cost back to 1 when reach threshold back of being fine
* [node] Sync race condition
* [node] toStart buf chan 1
* [p2p] Turn options on again
* [node][p2p] Lower throttle point for test, remove noisy log, make time delay throttle small
* [consensus] Fix nil pointer
* [node] Remove noisy log, increase infrequency of Burst topic log
* [blockchain] Nil pointer check
* [node] Fix threshold, lessen log
* [node] Bump throttle
* [node] Nil to verify new block
* [node] Keep threshold at half
5 years ago
Sebastian Johnsson
0d84388feb
[STN] Run STN using 1 bls key instead of 3 bls keys per node ( #2975 )
5 years ago
Sebastian Johnsson
addb393161
[STN] Revert settings for a larger network - 300 node network is now a separate network
5 years ago
Rongjian Lan
7c292f64be
Fix viewID issue on prepared block during view change ( #2972 )
...
* Fix viewID issue on prepared block during view change
* Add more checks and remove comments
* Fix lint
* update rlp encode pointer
* Revert go gen changes
* add go gen code
* [api] Fix proto to pass travis
Co-authored-by: Edgar Aroutiounian <edgar.factorial@gmail.com>
5 years ago
Edgar Aroutiounian
7b25c672d9
[blockchain] singleflight on tagged rlp registry ( #2957 )
5 years ago
Rongjian Lan
b823126bfe
verify block before proposal ( #2968 )
...
* verify block before proposal
* only verify header after block proposal
5 years ago
Jacky Wang
1fce5cbaea
Double sign unit test ( #2955 )
...
* [test] added schedule for sharding
* [test] refactored double_sign_test.go
* [test] comment out all test cases for now.
* [test] added record Copy method for testing
* [test] added the first test case in TestVerify
* [test] finished test TestVerify
* [test] Added test TestVerify, TestApplySlashRate, TestSetDifference
* [test] half through TestDelegatorSlashApply
* [test] fix the problem cause by unsafe usage of big.Int
* [staking] added the copy methods to validatorWrapper
* [test] added test cases for copy method for staking/validatorWrapper
* [test] added test case TestApply
* [test] added test case TestRate
* [test] fix the golint errors
* [test] removed commented out unit test code
* [test] remote the empty line in imports
* [test] moved copy methods to stake_testing module
* [test] removed usage of interface stateDB
* [test] removed empty lines in imports
* [test] fixed golint package name issues
* [test] removed a todo when writing code
* [test] moved record.Copy to staking/slash/test
5 years ago
Rongjian Lan
211ed79888
Avoid duplicate bls as harmony nodes; Fix epoch gap issue ( #2964 )
5 years ago
Edgar Aroutiounian
ee31573c1c
[rpc][p2p] Expose peer connectivity ( #2962 )
5 years ago
Jong Hyuck Won
2d0d95610f
nit bug fix on explorer node structs generating staking txns object ( #2953 )
5 years ago
Rongjian Lan
3d42325d98
Fix both total stake counting and delegation index for validator itself ( #2952 )
5 years ago
Daniel Van Der Maden
ff488a65be
Add SenderAddress to plain Tx Type ( #2949 )
...
* [types] Add SenderAddress to transaction type
* [types] Remove PoolTransactionSender, replaced with poolTx SenderAddress
* [core] Replace PoolTransactionSender with tx SenderAddress
* [rpc] Replace PoolTransactionSender with tx SenderAddress
5 years ago
Edgar Aroutiounian
bb538ce6e7
[api] Remove discovery service ( #2947 )
...
* [accounts] Remove dead code
* [api][node] Remove discovery service
* [api] Meaningless test
5 years ago
Edgar Aroutiounian
b0ffa1616d
[accounts] Remove dead code ( #2946 )
5 years ago
Daniel Van Der Maden
0171a90c98
[rpc] Make pending tx & stx fetch return non-nil for mixed txs ( #2937 )
5 years ago
Janet Liang
60ec94b9fc
[rpc] delegations by block & error checks ( #2903 )
...
* [rpc] Move all error definitions to error.go
* [core] Add function to read delegations from offchain data for a specific block
[rpc] Add GetDelegationsByDelegatorAt
* [rpc] Return error when calling all staking blockchain rpcs on auxillary shards
* [rpc] Rename to GetDelegationsByDelegatorByBlockNumber to follow naming conventions
* [rpc] Return error when requested block is greater than exists on chain
* [rpc] Fix lint errors
* [rpc] Fix check to not break on current block
* [rpc] Fix broken getBalance RPC
[rpc] Change getValidators to give balance at the end of the selected epoch or current block
* [rpc] Address PR comments
* [README] Update go version
* [rpc] Revert changes to Call
* [rpc] Move error checks to blockchain
* [rpc] Rename to ByBlock, because it takes a block as input
* [rpc] Small performance optimization for getting delegator information
5 years ago
Leo Chen
b3e1d61a26
[node.sh] set default bls per node to 10
...
we will use up to 10 keys per node in mainnet
Signed-off-by: Leo Chen <leo@harmony.one>
5 years ago
Leo Chen
4884f77c8c
[node.sh] include node.sh during upgrade
...
clean up the suffix / of FOLDER variable
include node.sh in md5sum.txt
Signed-off-by: Leo Chen <leo@harmony.one>
5 years ago
Sebastian Johnsson
2e97a2b455
[STN] Updated network settings for Edgar's P2P tests
5 years ago
Jian Zhen
028631e1cb
adress review feedback
5 years ago
Jian Zhen
4f86f40dc2
try to make goimports happy: now, this time must workgit diff
5 years ago
Jian Zhen
160143f1a5
try to make goimports happy: found out I can use gofmt :), 3rd try
5 years ago
Jian Zhen
8a6e5b5241
try to make goimports happy, 2nd try :-(
5 years ago
Jian Zhen
daa2bbd770
try to make goimports happy
5 years ago
Jian Zhen
89f0248d3c
add comment to make golint happy
5 years ago
Jian Zhen
bdaf6e1744
[p2p] Add libp2p_metrics into host and use bwCounter to record in/out networking traffic in a node
5 years ago