Merge pull request #370 from hermeznetwork/fix/pipeline-call

Fix coordinator pipeline forgeBatch call
This commit is contained in:
Eduard S
2020-12-17 13:20:29 +01:00
committed by GitHub

View File

@@ -603,12 +603,12 @@ PoolTransfer(0) User2-User3: 300 (126)
pipeline.batchBuilder.LocalStateDB().MerkleTree().Root())
batchNum++
batchInfo, err := pipeline.forgeSendServerProof(ctx, batchNum)
batchInfo, err := pipeline.forgeBatch(ctx, batchNum)
require.NoError(t, err)
assert.Equal(t, 3, len(batchInfo.L2Txs))
batchNum++
batchInfo, err = pipeline.forgeSendServerProof(ctx, batchNum)
batchInfo, err = pipeline.forgeBatch(ctx, batchNum)
require.NoError(t, err)
assert.Equal(t, 0, len(batchInfo.L2Txs))
}