mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-23 13:16:42 +00:00
eth/filters: don't print logs
Signed-off-by: jsvisa <delweng@gmail.com>
This commit is contained in:
parent
98c1342898
commit
5033d39315
1 changed files with 8 additions and 8 deletions
|
|
@ -1062,15 +1062,15 @@ func TestLogsSubscriptionReorg(t *testing.T) {
|
|||
}
|
||||
}
|
||||
|
||||
// for i, log := range fetched {
|
||||
// logger.Debug("Flog", "i", i, "blknum", log.BlockNumber, "index", log.Index, "removed", log.Removed, "to", common.BytesToAddress(log.Topics[2].Bytes()), "amount", common.BytesToHash(log.Data).Big().Uint64())
|
||||
// }
|
||||
//
|
||||
// for i, log := range expected {
|
||||
// logger.Debug("Elog", "i", i, "blknum", log.BlockNumber, "index", log.Index, "removed", log.Removed, "to", common.BytesToAddress(log.Topics[2].Bytes()), "amount", common.BytesToHash(log.Data).Big().Uint64())
|
||||
// }
|
||||
|
||||
fetchedBalance := balanceDiffer(fetched)
|
||||
|
||||
for i, log := range fetched {
|
||||
logger.Info("Flog", "i", i, "blknum", log.BlockNumber, "index", log.Index, "removed", log.Removed, "to", common.BytesToAddress(log.Topics[2].Bytes()), "amount", common.BytesToHash(log.Data).Big().Uint64())
|
||||
}
|
||||
|
||||
for i, log := range expected {
|
||||
logger.Info("Elog", "i", i, "blknum", log.BlockNumber, "index", log.Index, "removed", log.Removed, "to", common.BytesToAddress(log.Topics[2].Bytes()), "amount", common.BytesToHash(log.Data).Big().Uint64())
|
||||
}
|
||||
if len(fetchedBalance) != len(expectedBalance) {
|
||||
errc <- fmt.Errorf("invalid number of balances, have %d, want %d", len(fetchedBalance), len(expectedBalance))
|
||||
logger.Info("balance diff", "fetched", fetchedBalance, "expected", expectedBalance)
|
||||
|
|
|
|||
Loading…
Reference in a new issue