From 444067d24f2aee15eece92a0b1a4888b9fb9e419 Mon Sep 17 00:00:00 2001 From: Michael FIG Date: Sat, 16 May 2020 21:53:06 -0600 Subject: [PATCH] fix: don't bypass the block queue when running simulateBlock --- packages/cosmic-swingset/lib/ag-solo/fake-chain.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cosmic-swingset/lib/ag-solo/fake-chain.js b/packages/cosmic-swingset/lib/ag-solo/fake-chain.js index 252f73bbea9..25f2446480e 100644 --- a/packages/cosmic-swingset/lib/ag-solo/fake-chain.js +++ b/packages/cosmic-swingset/lib/ag-solo/fake-chain.js @@ -75,7 +75,7 @@ export async function connectToFakeChain(basedir, GCI, role, delay, inbound) { const maximumDelay = (delay || PRETEND_BLOCK_DELAY) * 1000; const withBlockQueue = makeWithQueue(); - const simulateBlock = withBlockQueue(async function simulateBlock() { + const simulateBlock = withBlockQueue(async function unqueuedSimulateBlock() { const actualStart = Date.now(); // Gather up the new messages into the latest block. thisBlock.push(...intoChain);