Skip to content

Commit

Permalink
peer: catch MsgWTxIdRelay during handshake
Browse files Browse the repository at this point in the history
  • Loading branch information
yyforyongyu committed Nov 27, 2024
1 parent e9d95ee commit a0346f6
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions peer/peer.go
Original file line number Diff line number Diff line change
Expand Up @@ -2190,11 +2190,18 @@ func (p *Peer) waitToFinishNegotiation(pver uint32) error {
p.cfg.Listeners.OnSendAddrV2(p, m)
}
}

// Receiving a verack means we are done with the handshake.
case *wire.MsgVerAck:
// Receiving a verack means we are done with the
// handshake.
p.processRemoteVerAckMsg(m)
return nil

// Received an optional wtxidrelay message.
//
// TODO(yy): We ignore it atm, but should figure out how to
// process it?
case *wire.MsgWTxIdRelay:

default:
// This is triggered if the peer sends, for example, a
// GETDATA message during this negotiation.
Expand Down

0 comments on commit a0346f6

Please sign in to comment.