remove statusData from fetch

This commit is contained in:
alex.sharov 2021-08-14 15:54:31 +07:00
parent a92ee337b9
commit 8c5c1bdc52

View File

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