Leo Chen
822334efc1
[shardingconfig] fix the test failure and add test cases
...
Signed-off-by: Leo Chen <leo@harmony.one>
5 years ago
Christopher Liu
40bd8bba62
[Foundation] Add 4 more keys
5 years ago
Charles Wang
48aafc4836
[Foundation] Add 20 New FN Keys ( #1342 )
...
- Also substitute 204 and 205
- Change names of all versions in config for clarity
- Fix formatting and config names
- Fix Spacing
5 years ago
coolcottontail
a008c6678b
rebased to master
...
fixed goimports
5 years ago
coolcottontail
66bbac5f3f
used an extra large start epoch number for mainnet(to be modified
5 years ago
coolcottontail
1feaeaea61
added wrapper for randonness generation based on epoch
5 years ago
Christopher Liu
aaa7e00902
[Foundation] Add 43 (repl 3) FN keys ( #1323 )
...
- Add 43 new FN keys
- Replace NB, SD, MD1
- Switch out Kai's lost pubkey
- Ending Newline
- Forgot commas
- Fix mainnet config
5 years ago
Eugene Kim
d6925abf1a
Add Pangaea sharding config
...
Each epoch is 10800 blocks long (1 day with 8s/block).
5 years ago
Eugene Kim
8cb5c51802
Merge pull request #1291 from xChickens/pr_20_fn_typo
...
[Foundation] Fix typo in 20 FNs and add v2epoch const
5 years ago
Christopher Liu
2255013fa2
Add v2epoch constant to table
5 years ago
Christopher Liu
e94b2ea990
[Foundation] Fix typo and add 18 new FNs
...
- Fix l and 1 typo
- Add 17 more keys
- Change mainnet config
- Replace Stephen's for one more
5 years ago
Christopher Liu
f0464fd3ba
[Foundation] Add 32 more FN Keys
...
- Add keys to list
- Create new version instead of editing v1
- Fix v2 configuration
5 years ago
Christopher Liu
eb4faf035e
[Foundation] Fix typo and add 18 new FNs
...
- Fix l and 1 typo
- Add 17 more keys
- Change mainnet config
- Replace Stephen's for one more
5 years ago
coolcottontail
17f952000e
fixed goimport.sh error
5 years ago
coolcottontail
46f292be25
created different consensysratio for localnet/mainnet
...
use different consensus ratio for localnet
5 years ago
Christopher Liu
7f9721598c
[Foundation] Add 32 more FN Keys
...
- Add keys to list
- Create new version instead of editing v1
- Fix v2 configuration
5 years ago
chao
311acdd5bb
fix state sync bug after update consensus information
5 years ago
chao
fb5205828f
separate the mode set from UpdateConsensusInformation to make it more usable by others e.g. explorer node
5 years ago
coolcottontail
ec6c886cc3
Update localnet.go
5 years ago
coolcottontail
798e2fe9d0
use constants for vdf, adjusted mainnetVdfDifficulty
5 years ago
Leo Chen
9702431033
[test] fix unit test error
...
Signed-off-by: Leo Chen <leo@harmony.one>
5 years ago
Chao Ma
c80d196e47
initial setup of shard information use latest epoch info to replace genesis epoch info
...
cleanup unnecessary configs when init a node
add more logs in state syncing
5 years ago
coolcottontail
fbad541ccf
added VRF/VDF features
5 years ago
Leo Chen
c1f36e4aaf
[epoch] add 4 more FN keys for epoch1 on mainnet
...
Signed-off-by: Leo Chen <leo@harmony.one>
5 years ago
Leo Chen
4bf01db495
[epoch] adjust the first epoch block number on mainnet
...
Signed-off-by: Leo Chen <leo@harmony.one>
5 years ago
Leo Chen
685e200ee3
[test] add unit tests for resharding func
...
Signed-off-by: Leo Chen <leo@harmony.one>
5 years ago
Leo Chen
c69cee8f8e
[resharding] enable the first epoch for mainnet
...
Signed-off-by: Leo Chen <leo@harmony.one>
5 years ago
Leo Chen
38cd570c0d
[epoch] fix IsLastBlock if block is less than epoch block
...
Signed-off-by: Leo Chen <leo@harmony.one>
5 years ago
Leo Chen
3e1c71f73c
[resharding] finalize the block per shard
...
Signed-off-by: Leo Chen <leo@harmony.one>
5 years ago
Leo Chen
c274ce3714
[epoch] fix off by 1 error in dynamic epoch configuration
...
Signed-off-by: Leo Chen <leo@harmony.one>
5 years ago
Leo Chen
d1f7091127
[epoch] add IsLastBlock in shardingSchedule
...
Signed-off-by: Leo Chen <leo@harmony.one>
5 years ago
Leo Chen
b7c34f37e7
[epoch] dynamically calculate the epoch number
...
Signed-off-by: Leo Chen <leo@harmony.one>
5 years ago
Leo Chen
f674dcafb0
[test] reduce blocks per epoch for testnet
...
Signed-off-by: Leo Chen <leo@harmony.one>
5 years ago
Leo Chen
660faeaf18
[test] add resharding in testnet
...
Signed-off-by: Leo Chen <leo@harmony.one>
5 years ago
Leo Chen
378c043778
[config] use a constant to define large block per epoch
...
Signed-off-by: Leo Chen <leo@harmony.one>
5 years ago
Leo Chen
d6e091ce74
[config] make blocks per epoch configurable on network type
...
Signed-off-by: Leo Chen <leo@harmony.one>
5 years ago
chao
e62df7268a
[resharding] allow new bls key to join shard; dynamically change the bls keys in shard
5 years ago
Leo Chen
0233c53710
[test] support newnode test in deploy.sh
...
Signed-off-by: Leo Chen <leo@harmony.one>
5 years ago
Leo Chen
82307820d5
[resharding] add resharding epoch
...
Signed-off-by: Leo Chen <leo@harmony.one>
5 years ago
Leo Chen
4bde201697
[resharding] add new node resharding/game support
...
Signed-off-by: Leo Chen <leo@harmony.one>
5 years ago
Leo Chen
7d353c4120
[test] enable epoch/resharding test on localnet network
...
Signed-off-by: Leo Chen <leo@harmony.one>
5 years ago
Leo Chen
3b54ec0420
[sharding] set shardID within FindAccount
...
Signed-off-by: Leo Chen <leo@harmony.one>
5 years ago
Leo Chen
20c69da1c0
[localtest] add localnet network type support
...
Signed-off-by: Leo Chen <leo@harmony.one>
5 years ago
Leo Chen
b0ef9ee231
[testnet] add 300 dummy keys to testnet configuration
...
Signed-off-by: Leo Chen <leo@harmony.one>
5 years ago
Leo Chen
a7f4ea0374
[testnet] add two set of new dummy keys
...
Signed-off-by: Leo Chen <leo@harmony.one>
5 years ago
Leo Chen
5f6a8a12bf
[resharding] add hmyaccount and fnaccount
...
use configurable hmyaccount and fnaccount to create genesis block
Signed-off-by: Leo Chen <leo@harmony.one>
5 years ago
Eugene Kim
13b4e03674
Make sharding configuration flexible
...
This is done by introducing two concepts: sharding configuration
instance and sharding configuration schedule.
A sharding configuration instance is a particular set of sharding
parameters in effect, namely:
- Number of shards;
- Number of nodes/shard; and
- Number of Harmony-operated nodes per shard.
A sharding configuration schedule is a mapping from an epoch to the
corresponding sharding configuration for that epoch.
Two schedules are provided and to be maintained in the long term:
Mainnet sharding schedule (4 shards, 150 nodes/shard, 112
Harmony-operated nodes/shard) and public testnet sharding schedule (2
shards, 150 nodes/shard, 150 Harmony-operated nodes/shard).
Harmony node binary uses one of these for each -network_type=mainnet and
-network_type=testnet respectively.
In addition, for -network_type=devnet, a fixed sharding schedule can be
specified with direct control over all three parameters (-dn_num_shards,
-dn_shard_size, and -dn_hmy_size).
The mainnet schedule code includes a commented-out example schedule.
5 years ago