forbid new blockchains from being validated by default subnet

This commit is contained in:
Dan Laine 2020-03-31 14:12:23 -04:00
parent cda5c95d56
commit 23d2427ce7
1 changed files with 2 additions and 0 deletions

View File

@ -92,6 +92,8 @@ func (tx *CreateChainTx) SyntacticVerify() error {
return errInvalidID
case tx.VMID.IsZero():
return errInvalidVMID
case tx.SubnetID.Equals(DefaultSubnetID):
return errDSCantValidate
case !ids.IsSortedAndUniqueIDs(tx.FxIDs):
return errFxIDsNotSortedAndUnique
case !crypto.IsSortedAndUniqueSECP2561RSigs(tx.ControlSigs):