Skip to content

Commit

Permalink
removes unused codes
Browse files Browse the repository at this point in the history
  • Loading branch information
staheri14 committed Sep 27, 2023
1 parent 87e2034 commit 3973ba6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
9 changes: 0 additions & 9 deletions mempool/cat/reactor.go
Original file line number Diff line number Diff line change
Expand Up @@ -329,11 +329,6 @@ func (memR *Reactor) broadcastSeenTx(txKey types.TxKey) {
},
}

//bz, err := msg.Marshal()
//if err != nil {
// panic(err)
//}

// Add jitter to when the node broadcasts it's seen txs to stagger when nodes
// in the network broadcast their seenTx messages.
time.Sleep(time.Duration(rand.Intn(10)*10) * time.Millisecond) //nolint:gosec
Expand Down Expand Up @@ -370,10 +365,6 @@ func (memR *Reactor) broadcastNewTx(wtx *wrappedTx) {
},
},
}
//bz, err := msg.Marshal()
//if err != nil {
// panic(err)
//}

for id, peer := range memR.ids.GetAll() {
if p, ok := peer.Get(types.PeerStateKey).(PeerState); ok {
Expand Down
2 changes: 0 additions & 2 deletions mempool/cat/reactor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,6 @@ func TestReactorSendWantTxAfterReceiveingSeenTx(t *testing.T) {
Message: msgWant,
ChannelID: MempoolStateChannel,
}
//msgWantB, err := msgWant.Marshal()
//require.NoError(t, err)

peer := genPeer()
peer.On("SendEnvelope", envWant).Return(true)
Expand Down

0 comments on commit 3973ba6

Please sign in to comment.