bitcoin/bitcoin — pull request #3185 by gavinandresen (2013-10-30 07:50:20+00:00)
Title: Reject p2p message

Send "reject" messages to peers if their transactions or blocks are rejected.

See https://gist.github.com/gavinandresen/7079034 and the discussion on the bitcoin-development mailing list.

Tested by running three -regtest -debug=net -printtoconsole nodes, one of which was running with -fuzzmessagestest=11 to generate garbled blocks/transactions, and verified that reject messages were sent and reported correctly as new blocks were generated and transactions sent between them.