Eugene Kim
c72b1ec667
Remove unused variable
5 years ago
Eugene Kim
3b8fc36d0d
Add -network_type=pangaea
5 years ago
Eugene Kim
d6925abf1a
Add Pangaea sharding config
...
Each epoch is 10800 blocks long (1 day with 8s/block).
5 years ago
flicker-harmony
aca519848b
Add metrics flag
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
flicker-harmony
d149c0ccb1
Add metrics service
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
ff402dbf4a
[cleanup] remove IsLeader of nodeConfig
...
use consensus.IsLeader to replace the static nodeConfig
by checking the public key of the leader with the consensus public key
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
Leo Chen
a45be75e1a
[ver] add nodeconfig set/get version
...
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
Minh Doan
6674669ebb
move constants to nodeconfig
6 years ago
Rongjian Lan
d2e9862b91
Fix coinbase bad block issue
6 years ago
Eugene Kim
7f3d41effd
Make DNS zone configurable via -dns_zone
...
If a non-empty zone name is given, obtain syncing peers from the given
zone; otherwise, use libp2p peer discovery.
-dns=true is equivalent to -dns_zone=t.hmny.io; -dns=false is equivalent
to -dns-zone="". If -dns=true and -dns_zone are both given, -dns_zone
takes precedence, i.e. the given zone is used instead of t.hmny.io.
6 years ago
Rongjian Lan
2f1223e84b
Move networkType into internal config
6 years ago