Merge pull request #9929 from filecoin-project/asr/ethaccount-refinements

feat: consensus: only embryos with nonce 0 are valid senders
This commit is contained in:
Aayush Rajasekaran 2022-12-21 12:52:33 -05:00 committed by GitHub
commit 7073b33d9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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
}