feat: consensus: only embryos with nonce 0 are valid senders
This commit is contained in:
parent
d9c13f19b0
commit
5ff6654c2b
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user