[config] change default localnet sync config... (#4252)

...to allow localnet cross shard tests to pass. It has been observed
that the epoch block from shard 0, which contains the `ShardState` does
not reach shard 1 on localnet in time. This leads to the cross shard
receipt not being validated, and thus, the block is not signed by one
node (8.5% vote power) in some cases. This change makes the sync
parameters a bit aggressive (only on localnet) to reduce the number of
times the test can fail.
pull/4254/head
Max 2 years ago committed by GitHub
parent a928fe4ab7
commit bd5a906f51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 12
      cmd/harmony/default.go

@ -170,13 +170,13 @@ var (
defaultLocalNetSyncConfig = harmonyconfig.SyncConfig{
Enabled: true,
Downloader: true,
Concurrency: 2,
MinPeers: 2,
InitStreams: 2,
DiscSoftLowCap: 2,
DiscHardLowCap: 2,
Concurrency: 4,
MinPeers: 5,
InitStreams: 5,
DiscSoftLowCap: 5,
DiscHardLowCap: 5,
DiscHighCap: 1024,
DiscBatch: 3,
DiscBatch: 8,
}
defaultElseSyncConfig = harmonyconfig.SyncConfig{

Loading…
Cancel
Save