Skip to content

Commit

Permalink
mempool: Correct cmd field for rejected txns.
Browse files Browse the repository at this point in the history
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 btcsuite#436
  • Loading branch information
davecgh committed May 24, 2015
1 parent 9d6d0e4 commit 56dedb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blockmanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 56dedb7

Please sign in to comment.