From fcfb2af76f8e9b38f9f76b79530eca7cf8c94a99 Mon Sep 17 00:00:00 2001 From: Roy Lee Date: Fri, 12 Aug 2022 02:07:30 -0700 Subject: [PATCH] netsync: revert base/segwit encoding hack --- netsync/manager.go | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/netsync/manager.go b/netsync/manager.go index 351fb7cd..169cec8f 100644 --- a/netsync/manager.go +++ b/netsync/manager.go @@ -1294,16 +1294,9 @@ func (sm *SyncManager) handleInvMsg(imsg *invMsg) { break } } - - e := wire.BaseEncoding - // we think that the iv.Type set above is sufficient. If not: - // if peer.IsWitnessEnabled() { - // e = wire.WitnessEncoding - //} - state.requestQueue = requestQueue if len(gdmsg.InvList) > 0 { - peer.QueueMessageWithEncoding(gdmsg, nil, e) + peer.QueueMessage(gdmsg, nil) } }