Add missing fields to duplicate message error

This commit is contained in:
Travis Person 2020-01-16 17:13:00 +00:00
parent 48ea36d37f
commit 06c99d0e18

View File

@ -94,7 +94,7 @@ func (ms *msgSet) add(m *types.SignedMessage) error {
if _, has := ms.msgs[m.Message.Nonce]; has { if _, has := ms.msgs[m.Message.Nonce]; has {
if m.Cid() != ms.msgs[m.Message.Nonce].Cid() { if m.Cid() != ms.msgs[m.Message.Nonce].Cid() {
log.Error("Add with duplicate nonce") log.Error("Add with duplicate nonce")
return xerrors.Errorf("message to %s with nonce %d already in mpool") return xerrors.Errorf("message to %s with nonce %d already in mpool", m.Message.To, m.Message.Nonce)
} }
} }
ms.msgs[m.Message.Nonce] = m ms.msgs[m.Message.Nonce] = m