From 9350b939bc03c3c88b4cb424eee752428aa74acb Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Sun, 24 May 2015 16:29:14 -0500 Subject: [PATCH] mempool: Correct cmd field for rejected txns. This commit corrects an issue where the reject message sent in response to rejected transactions had the Cmd field set to "block" instead of "tx". Fixes #436. --- blockmanager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blockmanager.go b/blockmanager.go index 911fcd1b..1fb90538 100644 --- a/blockmanager.go +++ b/blockmanager.go @@ -499,7 +499,7 @@ func (b *blockManager) handleTxMsg(tmsg *txMsg) { // Convert the error into an appropriate reject message and // send it. code, reason := errToRejectErr(err) - tmsg.peer.PushRejectMsg(wire.CmdBlock, code, reason, txHash, + tmsg.peer.PushRejectMsg(wire.CmdTx, code, reason, txHash, false) return }