Skip to content

Commit 8eb4e8c

Browse files
committed
test(spartan): wait for proposed instead of checkpointed in performTransfers
1 parent b82384a commit 8eb4e8c

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

yarn-project/end-to-end/src/spartan/setup_test_wallets.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import type { Logger } from '@aztec/foundation/log';
1515
import { makeBackoff, retry, retryUntil } from '@aztec/foundation/retry';
1616
import { TokenContract } from '@aztec/noir-contracts.js/Token';
1717
import type { AztecNodeAdmin } from '@aztec/stdlib/interfaces/client';
18+
import { TxStatus } from '@aztec/stdlib/tx';
1819
import { registerInitialLocalNetworkAccountsInWallet } from '@aztec/wallets/testing';
1920

2021
import { getACVMConfig } from '../fixtures/get_acvm_config.js';
@@ -426,7 +427,9 @@ export async function performTransfers({
426427

427428
const provenTxs = await Promise.all(txs);
428429

429-
await Promise.all(provenTxs.map(t => t.send({ wait: { timeout: 600 } })));
430+
// Wait only for the txs to be proposed, not checkpointed. This is enough to keep the chain
431+
// loaded for the reorg scenario, and avoids each round blocking on the (slower) checkpoint lag.
432+
await Promise.all(provenTxs.map(t => t.send({ wait: { timeout: 600, waitForStatus: TxStatus.PROPOSED } })));
430433

431434
logger.info(`Completed round ${i + 1} / ${rounds}`);
432435
}

0 commit comments

Comments
 (0)