minor fix

This commit is contained in:
Alfonso de la Rocha 2022-10-14 11:28:43 +02:00
parent 5c2949b59d
commit c65ab1b277
No known key found for this signature in database
GPG Key ID: 97DE48FDFC756FBD

View File

@ -38,6 +38,7 @@ import (
"github.com/filecoin-project/lotus/chain/types"
"github.com/filecoin-project/lotus/chain/vm"
"github.com/filecoin-project/lotus/journal"
"github.com/filecoin-project/lotus/lib/sigs"
"github.com/filecoin-project/lotus/metrics"
"github.com/filecoin-project/lotus/node/modules/dtypes"
)
@ -786,6 +787,10 @@ func (mp *MessagePool) VerifyMsgSig(m *types.SignedMessage) error {
return nil
}
if err := sigs.Verify(&m.Signature, m.Message.From, m.Message.Cid().Bytes()); err != nil {
return err
}
mp.sigValCache.Add(sck, struct{}{})
return nil