mpool: Fix RecoverSig type cast
This commit is contained in:
parent
2d8ad4a1de
commit
3a1c73a2b1
@ -322,7 +322,7 @@ func (mp *MessagePool) RecoverSig(msg *types.Message) *types.SignedMessage {
|
||||
if !ok {
|
||||
return nil
|
||||
}
|
||||
sig, ok := val.(*types.Signature)
|
||||
sig, ok := val.(types.Signature)
|
||||
if !ok {
|
||||
log.Warnf("value in signature cache was not a signature (got %T)", val)
|
||||
return nil
|
||||
@ -330,6 +330,6 @@ func (mp *MessagePool) RecoverSig(msg *types.Message) *types.SignedMessage {
|
||||
|
||||
return &types.SignedMessage{
|
||||
Message: *msg,
|
||||
Signature: *sig,
|
||||
Signature: sig,
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user