Skip to content

Commit 6647ef6

Browse files
Deprecate push-based peerlist gossip flags (#2625)
1 parent a120693 commit 6647ef6

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

config/config.go

+15-6
Original file line numberDiff line numberDiff line change
@@ -58,25 +58,34 @@ const (
5858
ipcDeprecationMsg = "IPC API is deprecated"
5959
keystoreDeprecationMsg = "keystore API is deprecated"
6060
acceptedFrontierGossipDeprecationMsg = "push-based accepted frontier gossip is deprecated"
61+
peerListPushGossipDeprecationMsg = "push-based peer list gossip is deprecated"
6162
)
6263

6364
var (
6465
// Deprecated key --> deprecation message (i.e. which key replaces it)
6566
// TODO: deprecate "BootstrapIDsKey" and "BootstrapIPsKey"
66-
deprecatedKeys = map[string]string{
67-
IpcAPIEnabledKey: ipcDeprecationMsg,
68-
IpcsChainIDsKey: ipcDeprecationMsg,
69-
IpcsPathKey: ipcDeprecationMsg,
67+
commitThresholdDeprecationMsg = fmt.Sprintf("use --%s instead", SnowCommitThresholdKey)
68+
deprecatedKeys = map[string]string{
69+
IpcAPIEnabledKey: ipcDeprecationMsg,
70+
IpcsChainIDsKey: ipcDeprecationMsg,
71+
IpcsPathKey: ipcDeprecationMsg,
72+
7073
KeystoreAPIEnabledKey: keystoreDeprecationMsg,
74+
7175
ConsensusGossipAcceptedFrontierValidatorSizeKey: acceptedFrontierGossipDeprecationMsg,
7276
ConsensusGossipAcceptedFrontierNonValidatorSizeKey: acceptedFrontierGossipDeprecationMsg,
7377
ConsensusGossipAcceptedFrontierPeerSizeKey: acceptedFrontierGossipDeprecationMsg,
7478
ConsensusGossipOnAcceptValidatorSizeKey: acceptedFrontierGossipDeprecationMsg,
7579
ConsensusGossipOnAcceptNonValidatorSizeKey: acceptedFrontierGossipDeprecationMsg,
7680
ConsensusGossipOnAcceptPeerSizeKey: acceptedFrontierGossipDeprecationMsg,
7781

78-
SnowRogueCommitThresholdKey: fmt.Sprintf("use --%s instead", SnowCommitThresholdKey),
79-
SnowVirtuousCommitThresholdKey: fmt.Sprintf("use --%s instead", SnowCommitThresholdKey),
82+
NetworkPeerListValidatorGossipSizeKey: peerListPushGossipDeprecationMsg,
83+
NetworkPeerListNonValidatorGossipSizeKey: peerListPushGossipDeprecationMsg,
84+
NetworkPeerListPeersGossipSizeKey: peerListPushGossipDeprecationMsg,
85+
NetworkPeerListGossipFreqKey: peerListPushGossipDeprecationMsg,
86+
87+
SnowRogueCommitThresholdKey: commitThresholdDeprecationMsg,
88+
SnowVirtuousCommitThresholdKey: commitThresholdDeprecationMsg,
8089
}
8190

8291
errConflictingACPOpinion = errors.New("supporting and objecting to the same ACP")

0 commit comments

Comments
 (0)