From 3a1c73a2b17e287bd11e80029248f29b3ecc747c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Tue, 12 Nov 2019 12:42:19 +0100 Subject: [PATCH] mpool: Fix RecoverSig type cast --- chain/messagepool.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chain/messagepool.go b/chain/messagepool.go index 63aa1bedb..7fa476b8c 100644 --- a/chain/messagepool.go +++ b/chain/messagepool.go @@ -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, } }