mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-11-29 16:38:39 +00:00
peer: disable peer stalling for get blocks messages
This commit is contained in:
parent
4a6dc67067
commit
ac4bd31ba0
@ -1278,10 +1278,6 @@ func (p *Peer) maybeAddDeadline(pendingResponses map[string]time.Time, msgCmd st
|
|||||||
// Expects an inv message.
|
// Expects an inv message.
|
||||||
pendingResponses[wire.CmdInv] = deadline
|
pendingResponses[wire.CmdInv] = deadline
|
||||||
|
|
||||||
case wire.CmdGetBlocks:
|
|
||||||
// Expects an inv message.
|
|
||||||
pendingResponses[wire.CmdInv] = deadline
|
|
||||||
|
|
||||||
case wire.CmdGetData:
|
case wire.CmdGetData:
|
||||||
// Expects a block, merkleblock, tx, or notfound message.
|
// Expects a block, merkleblock, tx, or notfound message.
|
||||||
pendingResponses[wire.CmdBlock] = deadline
|
pendingResponses[wire.CmdBlock] = deadline
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user