File tree Expand file tree Collapse file tree
yarn-project/end-to-end/src/spartan Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import type { Logger } from '@aztec/foundation/log';
1515import { makeBackoff , retry , retryUntil } from '@aztec/foundation/retry' ;
1616import { TokenContract } from '@aztec/noir-contracts.js/Token' ;
1717import type { AztecNodeAdmin } from '@aztec/stdlib/interfaces/client' ;
18+ import { TxStatus } from '@aztec/stdlib/tx' ;
1819import { registerInitialLocalNetworkAccountsInWallet } from '@aztec/wallets/testing' ;
1920
2021import { 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 }
You can’t perform that action at this time.
0 commit comments