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.
This commit is contained in:
Dave Collins 2013-10-15 10:35:42 -05:00
parent 0536e3104c
commit 14f81aa479

View file

@ -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