mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-03-30 15:08:33 +00:00
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
6
peer.go
6
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user