Skip to content

Commit eca3432

Browse files
authored
change subnet proposervm delay default to 0 (#4422)
Signed-off-by: Ceyhun Onur <[email protected]>
1 parent 578d0a9 commit eca3432

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

RELEASES.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Release Notes
22

3+
## Pending
4+
5+
### Configs
6+
7+
- Changed default block delay for L1s (other than Primary Network) to 0.
8+
39
## [v1.13.5](https://github.com/ava-labs/avalanchego/releases/tag/v1.13.5)
410

511
This version is backwards compatible to [v1.13.0](https://github.com/ava-labs/avalanchego/releases/tag/v1.13.0). It is optional, but encouraged.

config/config.go

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1103,6 +1103,13 @@ func getSubnetConfigsFromDir(v *viper.Viper, subnetIDs []ids.ID) (map[ids.ID]sub
11031103
}
11041104

11051105
func getDefaultSubnetConfig(v *viper.Viper) subnets.Config {
1106+
subnetDefaults := getPrimaryNetworkConfig(v)
1107+
// Allow L1s (other than Primary Network) to use their own throttling mechanisms.
1108+
subnetDefaults.ProposerMinBlockDelay = 0
1109+
return subnetDefaults
1110+
}
1111+
1112+
func getPrimaryNetworkConfig(v *viper.Viper) subnets.Config {
11061113
return subnets.Config{
11071114
ConsensusParameters: getConsensusConfig(v),
11081115
ValidatorOnly: false,
@@ -1326,7 +1333,7 @@ func GetNodeConfig(v *viper.Viper) (node.Config, error) {
13261333
return node.Config{}, fmt.Errorf("couldn't read subnet configs: %w", err)
13271334
}
13281335

1329-
primaryNetworkConfig := getDefaultSubnetConfig(v)
1336+
primaryNetworkConfig := getPrimaryNetworkConfig(v)
13301337
if err := primaryNetworkConfig.Valid(); err != nil {
13311338
return node.Config{}, fmt.Errorf("invalid consensus parameters: %w", err)
13321339
}

0 commit comments

Comments
 (0)