From 14f81aa479022fcf6fdbe76a965730faf704a3e8 Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Tue, 15 Oct 2013 10:35:42 -0500 Subject: [PATCH] Add handler for notfound messages. For now, these are ignored, but ultimately they should be used to re-request the missing inventory from another peer. --- peer.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/peer.go b/peer.go index a6130830a..8deb0b128 100644 --- a/peer.go +++ b/peer.go @@ -966,6 +966,12 @@ out: p.handleInvMsg(msg) markConnected = true + case *btcwire.MsgNotFound: + // TODO(davec): Ignore this for now, but ultimately + // it should probably be used to detect when something + // we requested needs to be re-requested from another + // peer. + case *btcwire.MsgGetData: p.handleGetDataMsg(msg) markConnected = true