remove statusData from fetch

This commit is contained in:
alex.sharov 2021-08-14 15:53:22 +07:00
parent 07aad2f286
commit a92ee337b9

View File

@ -151,7 +151,8 @@ func TestOnNewBlock(t *testing.T) {
}
pool := &PoolMock{}
fetch := NewFetch(ctx, nil, pool, stateChanges, db)
fetch.handleStateChanges(ctx, stateChanges)
err := fetch.handleStateChanges(ctx, stateChanges)
assert.NoError(t, err)
assert.Equal(t, 1, len(pool.OnNewBlockCalls()))
assert.Equal(t, 3, len(pool.OnNewBlockCalls()[0].MinedTxs.txs))
}