Leo Chen
22822e1c1e
[node.sh] add a tn network type
...
Signed-off-by: Leo Chen <leo@harmony.one>
5 years ago
Rongjian Lan
2ccc20be2b
Fix slash verify to avoid potential duplicate slashes exploit ( #2914 )
...
* Remove timestamp in slash record
* Fix potential exploits of reporting duplicate slashes
* fix import
* dedup swapped votes
5 years ago
Rongjian Lan
3e9de14693
revert min stake change for validator ( #2912 )
5 years ago
Sebastian Johnsson
c6ac30ed34
Add support for "stn" and "stressnet" matches for -N for stn/stressnet ( #2911 )
5 years ago
Ganesha Upadhyaya
cda9315585
directly assign instead of assigning to copied value (not pointer) ( #2909 )
5 years ago
Jong Hyuck Won
4b3b288d64
fix explorer storage for transactions and staking transactions ( #2905 )
5 years ago
Ganesha Upadhyaya
22b1e0cb50
compute shardExternalShare based on payableSigners overallpercent ( #2904 )
...
* compute shardExternalShare based on payableSigners overallpercent
* also do the same for beacon reward
5 years ago
Ganesha Upadhyaya
1546fa0479
apr average over last hundred epochs ( #2900 )
...
* apr average over last hundred epochs
* minor
* upcounting once activation to include the impact on apr when not in committeee
* validator stats maintain APR histories as fixed length circular slice
* use map instead of slice for flexibility
* use APRHistoryLength instead of 100
* APR for currentEpochSuperCommittee.Epoch and not newEpochSuperCommittee.Epoch
5 years ago
Ganesha Upadhyaya
0885dc7e23
Fix super committee bug and add raw-stake to per-key metrics ( #2899 )
...
* minor bug in super-committee rpc
* add raw-stake to per-key metric
* adding divide by zero protection
5 years ago
Leo Chen
d255efb769
[build] fix a typo of the bucket during release
...
Signed-off-by: Leo Chen <leo@harmony.one>
5 years ago
Leo Chen
deb065a403
[testnet] use different dns for testnet config
...
don't confuse with ostn
Signed-off-by: Leo Chen <leo@harmony.one>
5 years ago
Ganesha Upadhyaya
6bc602194c
refactor check duplicates to staking_verifier ( #2898 )
5 years ago
Rongjian Lan
ab9f3f8e0b
remove mistakenly committed files ( #2896 )
5 years ago
Rongjian Lan
8fde77d88f
Revert merge normal and staking txns ( #2895 )
...
* Revert merge normal and staking txns
* fix lint
* fix build
5 years ago
Rongjian Lan
918dec8cbe
Make TxPool ordering deterministic ( #2892 )
...
* Roll back validator list when block is reverted
* fix error check
* Make TxPool ordering deterministic
5 years ago
Rongjian Lan
69ff3b5bfe
Roll back validator list when block is reverted ( #2891 )
...
* Roll back validator list when block is reverted
* fix error check
5 years ago
Ganesha Upadhyaya
48298c2e97
[rpc] singleflight for all validator info, median, and super committee rpcs ( #2889 )
...
* singleflight median rpc
* adding singleflight for more apis
* golint fix
* median cache key based on block number
5 years ago
Leo Chen
80e881e04f
[node.sh] support minpeer parameter
...
Signed-off-by: Leo Chen <leo@harmony.one>
5 years ago
Leo Chen
4296905438
[build] upload node.sh
...
Signed-off-by: Leo Chen <leo@harmony.one>
5 years ago
Leo Chen
dbd813f9fb
[p3] sharding configuration for p3 launch
...
Signed-off-by: Leo Chen <leo@harmony.one>
5 years ago
Ganesha Upadhyaya
9bbc3d06a2
booted-status to show booted for elected/signing validator, not booted for never elected ( #2884 )
5 years ago
Rongjian Lan
044c2dcd4c
Validator dedup on identity and bls keys ( #2883 )
...
* Remove same-validator redelegation feature which is useless and confusing
* Fix comments
* Detect duplicate name or identity
* check bls dups
* Remove name dedup as it's risky
* equal rather than compare on address
* Add better error content
* Fix travis
5 years ago
Edgar Aroutiounian
d4b8c11a8c
Add raw stake and median to super committee ( #2880 )
...
* [rpc][votepower] Add hack
* [consensus] Use hack, change from one addr to bls key
* update super committee rpc to add rawstake and median to output
* only retrieve total delegation once
* better name
* nil pointer check
Co-authored-by: Ganesha Upadhyaya <ganeshrvce@gmail.com>
5 years ago
Daniel Van Der Maden
451d16c14d
Add viewID to block signed content ( #2877 )
...
* [consensus] Add ConstructCommitPayload for consensus signatures
* [internal/engine] verify consensus sigs on hash+blockNum+viewID
* [consensus] Add ConstructCommitPayload for consensus signatures
* [internal/engine] verify consensus sigs on hash+blockNum+viewID
* [consensus] verify consensus sigs on hash+blockNum+viewID
* [node] verify consensus sigs for explorer on hash+blockNum+viewID
* [crosslink] Add viewID & tie break by viewID last on sort
* [api] Update crosslink constructor for viewID addition
* [staking] Verify consensus sigs on hash+blockNum+viewID
* [slash] update tests
* [engine] Fix VerifyHeaderWithSignature commit signature payload
* [crosslink] Make NewCrossLink return a pointer to CrossLink
* [node] update ConstructCrossLinkMessage to reflect NewCrossLink change
* [debug] Remove debugging logs
5 years ago
Rongjian Lan
f1d26b3a75
Remove same-validator redelegation feature which is useless and confu… ( #2879 )
...
* Remove same-validator redelegation feature which is useless and confusing
* Fix comments
5 years ago
Rongjian Lan
3808f5317b
Make commit sig committed along with the block ( #2875 )
...
* Make commit sig committed along with the block
* Fix type len check
5 years ago
Ganesha Upadhyaya
21327e697e
[core][node/worker] processing staking and normal transactions together ( #2869 )
...
* processing staking and normal transactions together
* bug fix and removing unwanted method
* made sense to rename and move the TransactionsByPriceAndNonce to pool type
* accounting for prestaking blocks, need to keep the previous order for processing txs
5 years ago
Rongjian Lan
ea1043999f
[audit] Fix and make exact 7 epoch for undelegation ( #2874 )
...
* Fix and make exact 7 epoch for undelegation
* Make slash explicit on reference
5 years ago
Jacky Wang
3a94c7ef17
Availability test ( #2840 )
...
* [test] Added test case for BlockSigners
* [test] Fixed the bls pubkey deserialize error in TestBlockSigners
* [test] changed some t.Error to t.Fatal
* [test] added TestBallotResult
* [test] Added test TestIncrementValidatorSigningCounts
* [test] added test case TestComputeCurrentSigning
* [test] Added test case TestComputeAndMutateEPOSStatus
* [test] Added error scenario in TestBallotResult
* [test] change the order of imports
* [test] Renamed some variables
* [test] renamed val variables
* [test] Fixed some golint errors
5 years ago
Jong Hyuck Won
98a8ca0c82
[explorer node] optimize block dump txns/staking txns for memory op and disk storage ( #2858 )
5 years ago
Rongjian Lan
a02ad0f38b
Fix potential nil pointer when validator is first created ( #2866 )
5 years ago
Rongjian Lan
614f528f2c
Add cache to state validator modification; refactor snapshot read/write ( #2844 )
...
* Add cache to state validator access; refactor snapshot read/write
* make validator update happen at commit
* fix lint
* make sure slashing applies on validator wrapper in state
* Revert live update of validtor wrapper in staking txn
* add init population of validator cache logic
* Fix validator cache commit logic
* Separate validatorWrapper func
* fix build
* Fix lint
5 years ago
Dennis Won
e0ccc7b71c
explorer node. instead of checking for nil txn during dump, just use continue
5 years ago
Dennis Won
924468d73a
explorer node. handle get txn/staking txn being nil during block dump
5 years ago
Edgar Aroutiounian
0451571adc
[node.sh] Add tcp window scaling, max syn backlog
5 years ago
Edgar Aroutiounian
1727428807
[node.sh] Add fastopen param
5 years ago
Edgar Aroutiounian
0027f4da87
[node.sh] Remove param deprecated in kernel 4.12
5 years ago
Edgar Aroutiounian
6b8a7bd9e0
[node.sh] Kernel tuning
5 years ago
Leo Chen
7123b8153a
Update issue templates
5 years ago
Jong Hyuck Won
8192c84340
explorer node. Skip dump for redundant blocks with lower block number than the checkpoint block number ( #2842 )
...
* explorer node. Skip dump for redundant blocks with lower block number than the checkpoint block number
* add a key for each block to mark whether they are dumped or not.
5 years ago
Leo Chen
6e08ce26a9
[build] support testnet binary release
...
don't release mainnet binary from the script
Signed-off-by: Leo Chen <leo@harmony.one>
5 years ago
Rongjian Lan
db8f1a05b9
Optimize delegation reward distribution with caching ( #2839 )
...
* Optimize delegation reward distribution with caching
* fix build
* fix lint
5 years ago
Jong Hyuck Won
cc37995a31
[Explorer Node] Explorer service StakingTransaction struct unification for explorer RPC level staking message data decoding ( #2828 )
...
* make staking txn field values to be decoded on explorer node ldb storage, and set to address correctly for staking txns
* revert the txn and staking txn unification for explorer rpc
5 years ago
Edgar Aroutiounian
a52599f7f2
[rpc] Hide confusing num-beacon-blocks-until-next-epoch ( #2836 )
5 years ago
Rongjian Lan
e28c942aa0
make delegation index consistent by block number ( #2834 )
...
* make delegation index consistent by block number
* refactor blockNum
5 years ago
Edgar Aroutiounian
25c1d8f332
[effective] Hold onto raw stake used per slot purchase as well ( #2832 )
5 years ago
Leo Chen
eed00679cc
[node.sh] time out deleting passphrase file ( #2830 )
...
Signed-off-by: Leo Chen <leo@harmony.one>
5 years ago
Ganesha Upadhyaya
d9045590ef
[consensus][view-change] onViewChange set keys and add signatures for all keys in case of multi-key new leader ( #2826 )
5 years ago
Edgar Aroutiounian
b8798c3ff5
[project] Dead fields, staticcheck, update deprecated libp2p usages ( #2825 )
...
* [project] Dead fields, staticcheck, update deprecated libp2p usages
* [project] Dead gas fild in test
5 years ago
Edgar Aroutiounian
89fe991d59
[go.mod] Bump libraries ( #2824 )
...
* [go.mod] Bump libraries
* [proto] Regen b/c upgrades protoc, now message API changes
5 years ago