From 86e2b5c3943be1e9236c35e44c13b613e5f85c4f Mon Sep 17 00:00:00 2001 From: Marko Boben Date: Mon, 2 Sep 2024 15:33:25 +0200 Subject: [PATCH] Disable creating subnet validator on the Songbird network --- .../vms/platformvm/txs/executor/proposal_tx_executor.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/avalanchego/vms/platformvm/txs/executor/proposal_tx_executor.go b/avalanchego/vms/platformvm/txs/executor/proposal_tx_executor.go index 47c27ec6..3625b7d6 100644 --- a/avalanchego/vms/platformvm/txs/executor/proposal_tx_executor.go +++ b/avalanchego/vms/platformvm/txs/executor/proposal_tx_executor.go @@ -239,7 +239,8 @@ func (e *ProposalTxExecutor) AddSubnetValidatorTx(tx *txs.AddSubnetValidatorTx) return errWrongNumberOfCredentials } - if e.Backend.Ctx.NetworkID == constants.FlareID || e.Backend.Ctx.NetworkID == constants.CostwoID || e.Backend.Ctx.NetworkID == constants.StagingID || e.Backend.Ctx.NetworkID == constants.LocalFlareID { + if e.Backend.Ctx.NetworkID == constants.FlareID || e.Backend.Ctx.NetworkID == constants.CostwoID || e.Backend.Ctx.NetworkID == constants.StagingID || e.Backend.Ctx.NetworkID == constants.LocalFlareID || + e.Backend.Ctx.NetworkID == constants.SongbirdID || e.Backend.Ctx.NetworkID == constants.CostonID || e.Backend.Ctx.NetworkID == constants.LocalID { return errStakeTooLong }