Skip to content

Commit

Permalink
Disable creating subnet validator on the Songbird network
Browse files Browse the repository at this point in the history
  • Loading branch information
mboben committed Sep 2, 2024
1 parent b2c7d63 commit 86e2b5c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 86e2b5c

Please sign in to comment.