From 5ff6654c2bd8146aa0c248d4d567a97884217548 Mon Sep 17 00:00:00 2001 From: Aayush Date: Wed, 21 Dec 2022 11:15:55 -0500 Subject: [PATCH] feat: consensus: only embryos with nonce 0 are valid senders --- chain/consensus/filcns/filecoin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chain/consensus/filcns/filecoin.go b/chain/consensus/filcns/filecoin.go index c1029cbe9..7d4b71f25 100644 --- a/chain/consensus/filcns/filecoin.go +++ b/chain/consensus/filcns/filecoin.go @@ -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 }