eth_filter flake debug
This commit is contained in:
parent
8ab6eaa6e3
commit
7ef93448fb
@ -16,6 +16,7 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/ipfs/go-cid"
|
||||
logging "github.com/ipfs/go-log/v2"
|
||||
"github.com/stretchr/testify/require"
|
||||
"golang.org/x/xerrors"
|
||||
|
||||
@ -543,6 +544,7 @@ func TestTxReceiptBloom(t *testing.T) {
|
||||
kit.MockProofs(),
|
||||
kit.ThroughRPC())
|
||||
ens.InterconnectAll().BeginMining(blockTime)
|
||||
logging.SetLogLevel("fullnode", "DEBUG")
|
||||
|
||||
ctx, cancel := context.WithTimeout(context.Background(), time.Minute)
|
||||
defer cancel()
|
||||
@ -577,6 +579,10 @@ func TestTxReceiptBloom(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
// Deflake plan: (Flake: 5 bits instead of 6)
|
||||
// Debug + search logs for "LogsBloom"
|
||||
// compare to passing case.
|
||||
//
|
||||
// 3 bits from the topic, 3 bits from the address
|
||||
require.Equal(t, 6, bitsSet)
|
||||
}
|
||||
|
@ -665,6 +665,7 @@ func newEthTxReceipt(ctx context.Context, tx ethtypes.EthTx, lookup *api.MsgLook
|
||||
continue
|
||||
}
|
||||
for _, topic := range topics {
|
||||
log.Debug("LogsBloom set for ", topic)
|
||||
ethtypes.EthBloomSet(receipt.LogsBloom, topic[:])
|
||||
}
|
||||
l.Data = data
|
||||
|
Loading…
Reference in New Issue
Block a user