From bcdad5f4e83cbb93142852c8b89d513cdea6bf42 Mon Sep 17 00:00:00 2001 From: Nazar Hussain Date: Mon, 20 Jan 2025 16:59:13 +0100 Subject: [PATCH] Update the state benchmark --- .../test/perf/util/loadState/findModifiedValidators.test.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/state-transition/test/perf/util/loadState/findModifiedValidators.test.ts b/packages/state-transition/test/perf/util/loadState/findModifiedValidators.test.ts index 8792a82ea22..6422656bb47 100644 --- a/packages/state-transition/test/perf/util/loadState/findModifiedValidators.test.ts +++ b/packages/state-transition/test/perf/util/loadState/findModifiedValidators.test.ts @@ -64,6 +64,7 @@ describe("find modified validators by different ways", () => { for (const validatorIndex of expectedModifiedValidators) { clonedState.validators.get(validatorIndex).pubkey = Buffer.alloc(48, 0); } + clonedState.commit(); const validatorsBytes = Uint8Array.from(stateBytes.subarray(validatorsRange.start, validatorsRange.end)); const validatorsBytes2 = clonedState.validators.serialize(); const modifiedValidators: number[] = [];