mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-23 13:16:42 +00:00
eth/filters: add reason for check with balance instead of logs
Signed-off-by: jsvisa <delweng@gmail.com>
This commit is contained in:
parent
5033d39315
commit
c95bf8daf7
1 changed files with 3 additions and 0 deletions
|
|
@ -992,6 +992,9 @@ func TestLogsSubscriptionReorg(t *testing.T) {
|
|||
expected = append(expected, liveLogs...)
|
||||
|
||||
// Calculate address balances
|
||||
// We check with the balance instead of logs because there is a gap between the ChainReorg occurred and detected,
|
||||
// so we can't fully control how many logs we'll receive.
|
||||
// By checking the balance, we can test with the token transfer amount.
|
||||
balanceDiffer := func(logs []*types.Log) map[common.Address]uint64 {
|
||||
balances := make(map[common.Address]uint64)
|
||||
for _, log := range logs {
|
||||
|
|
|
|||
Loading…
Reference in a new issue