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 {
|
if !ok {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
sig, ok := val.(*types.Signature)
|
sig, ok := val.(types.Signature)
|
||||||
if !ok {
|
if !ok {
|
||||||
log.Warnf("value in signature cache was not a signature (got %T)", val)
|
log.Warnf("value in signature cache was not a signature (got %T)", val)
|
||||||
return nil
|
return nil
|
||||||
@ -330,6 +330,6 @@ func (mp *MessagePool) RecoverSig(msg *types.Message) *types.SignedMessage {
|
|||||||
|
|
||||||
return &types.SignedMessage{
|
return &types.SignedMessage{
|
||||||
Message: *msg,
|
Message: *msg,
|
||||||
Signature: *sig,
|
Signature: sig,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user