Skip to content

Commit 5b74774

Browse files
author
AztecBot
committed
Merge branch 'next' into merge-train/barretenberg
2 parents 9d1fcf9 + 62718b9 commit 5b74774

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

yarn-project/bootstrap.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ function bench_cmds {
238238
echo "$hash BENCH_OUTPUT=bench-out/native_world_state.bench.json yarn-project/scripts/run_test.sh world-state/src/native/native_bench.test.ts"
239239
echo "$hash BENCH_OUTPUT=bench-out/kv_store.bench.json yarn-project/scripts/run_test.sh kv-store/src/bench/map_bench.test.ts"
240240
echo "$hash BENCH_OUTPUT=bench-out/tx_pool.bench.json yarn-project/scripts/run_test.sh p2p/src/mem_pools/tx_pool/tx_pool_bench.test.ts"
241-
echo "$hash:ISOLATE=1:CPUS=16:MEM=32g:TIMEOUT=600 BENCH_OUTPUT=bench-out/p2p_client_proposal_tx_collector.bench.json yarn-project/scripts/run_test.sh p2p/src/client/test/tx_proposal_collector/p2p_client.proposal_tx_collector.bench.test.ts"
241+
echo "$hash:ISOLATE=1:CPUS=16:MEM=32g:TIMEOUT=1200 BENCH_OUTPUT=bench-out/p2p_client_proposal_tx_collector.bench.json yarn-project/scripts/run_test.sh p2p/src/client/test/tx_proposal_collector/p2p_client.proposal_tx_collector.bench.test.ts"
242242
echo "$hash BENCH_OUTPUT=bench-out/tx.bench.json yarn-project/scripts/run_test.sh stdlib/src/tx/tx_bench.test.ts"
243243
echo "$hash:ISOLATE=1:CPUS=10:MEM=16g:LOG_LEVEL=silent BENCH_OUTPUT=bench-out/proving_broker.bench.json yarn-project/scripts/run_test.sh prover-client/src/test/proving_broker_testbench.test.ts"
244244
echo "$hash:ISOLATE=1:CPUS=16:MEM=16g BENCH_OUTPUT=bench-out/avm_bulk_test.bench.json yarn-project/scripts/run_test.sh bb-prover/src/avm_proving_tests/avm_bulk.test.ts"

yarn-project/p2p/src/client/p2p_client.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,8 +338,13 @@ export class P2PClient<T extends P2PClientType = P2PClientType.Full>
338338
[Attributes.BLOCK_ARCHIVE]: proposal.archive.toString(),
339339
[Attributes.P2P_ID]: (await proposal.p2pMessageLoggingIdentifier()).toString(),
340340
}))
341-
public broadcastCheckpointProposal(proposal: CheckpointProposal): Promise<void> {
341+
public async broadcastCheckpointProposal(proposal: CheckpointProposal): Promise<void> {
342342
this.log.verbose(`Broadcasting checkpoint proposal for slot ${proposal.slotNumber} to peers`);
343+
const blockProposal = proposal.getBlockProposal();
344+
if (blockProposal) {
345+
// Store our own last-block proposal so we can respond to req/resp requests for it.
346+
await this.attestationPool.addBlockProposal(blockProposal);
347+
}
343348
return this.p2pService.propagate(proposal);
344349
}
345350

0 commit comments

Comments
 (0)