feat: consensus: only embryos with nonce 0 are valid senders

This commit is contained in:
Aayush 2022-12-21 11:15:55 -05:00
parent d9c13f19b0
commit 5ff6654c2b

View File

@ -441,7 +441,7 @@ func IsValidForSending(act *types.Actor) bool {
return true
}
if !builtin.IsEmbryoActor(act.Code) || act.Address == nil || act.Address.Protocol() != address.Delegated {
if !builtin.IsEmbryoActor(act.Code) || act.Nonce != 0 || act.Address == nil || act.Address.Protocol() != address.Delegated {
return false
}