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:
parent
0536e3104c
commit
14f81aa479
1 changed files with 6 additions and 0 deletions
6
peer.go
6
peer.go
|
@ -966,6 +966,12 @@ out:
|
||||||
p.handleInvMsg(msg)
|
p.handleInvMsg(msg)
|
||||||
markConnected = true
|
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:
|
case *btcwire.MsgGetData:
|
||||||
p.handleGetDataMsg(msg)
|
p.handleGetDataMsg(msg)
|
||||||
markConnected = true
|
markConnected = true
|
||||||
|
|
Loading…
Add table
Reference in a new issue