Skip to content

Commit

Permalink
Increase chain switching threshold to 10
Browse files Browse the repository at this point in the history
  • Loading branch information
jonastheis committed Apr 19, 2024
1 parent 28e8592 commit f4ab09b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/genesis-snapshot/presets/presets.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,22 @@ var (
// use defaults from iota.go.
ProtocolParamsBase = iotago.NewV3SnapshotProtocolParameters(
iotago.WithNetworkOptions("default", iotago.PrefixTestnet),
iotago.WithChainSwitchingThreshold(10),
)

// use defaults from iota.go.
ProtocolParamsDocker = iotago.NewV3SnapshotProtocolParameters(
iotago.WithNetworkOptions(fmt.Sprintf("docker-%d", time.Now().Unix()), iotago.PrefixTestnet),
iotago.WithTimeProviderOptions(5, time.Now().Unix(), 10, 13),
iotago.WithLivenessOptions(10, 15, 3, 6, 8),
iotago.WithChainSwitchingThreshold(10),
)

// use defaults from iota.go.
ProtocolParamsFeature = iotago.NewV3SnapshotProtocolParameters(
iotago.WithNetworkOptions(fmt.Sprintf("feature-%d", time.Now().Unix()), iotago.PrefixTestnet),
iotago.WithTimeProviderOptions(666666, time.Now().Unix()-100_000, 10, 13),
iotago.WithChainSwitchingThreshold(10),
)
)

Expand Down

0 comments on commit f4ab09b

Please sign in to comment.