encode txs

This commit is contained in:
alex.sharov 2021-07-26 09:39:37 +07:00
parent 3bf11f8ad3
commit 334058cf5d
3 changed files with 2 additions and 5 deletions

View File

@ -84,7 +84,7 @@ func NewFetch(ctx context.Context,
sentryClients: sentryClients,
statusData: statusData,
pool: pool,
logger: logger.Named("txpool.fetch"),
logger: logger.Named("[TxPool.Fetch]"),
}
}

View File

@ -115,7 +115,5 @@ func TestSendTxPropagate(t *testing.T) {
first := calls[0].OutboundMessageData
require.Equal(t, sentry.MessageId_NEW_POOLED_TRANSACTION_HASHES_66, first.Id)
require.Equal(t, 68, len(first.Data))
t.Fail()
})
}

View File

@ -43,7 +43,7 @@ func NewSend(ctx context.Context, sentryClients []sentry.SentryClient, pool Pool
ctx: ctx,
pool: pool,
sentryClients: sentryClients,
logger: logger.Named("txpool.send"),
logger: logger.Named("[TxPool.Send]"),
}
}
@ -121,7 +121,6 @@ func (f *Send) BroadcastLocalPooledTxs(txs Hashes) (sentToPeers int) {
return
}
avgPeersPerSent66 += len(peers.Peers)
f.logger.Warnf("yay: %d", avgPeersPerSent66)
}
}
}