Skip to content
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
test(consensus): clarify signing-record warning cases
  • Loading branch information
hackobi committed Nov 20, 2026
commit f847eccd3ec14c58a9f78d08a33174eb021f451f
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ afterEach(() => {
})

describe("verifyBlock own-key warning", () => {
it("warns once when our key signed the block and no signing record exists", async () => {
it("warns when our key signed the block and no signing record exists", async () => {
expect((await verifyBlock(signedBlock([A, B, C]))).valid).toBe(true)
expect(warning).toHaveBeenCalledTimes(1)
expect(warning.mock.calls[0][0]).toContain("no signing record")
Expand All @@ -120,6 +120,7 @@ describe("verifyBlock own-key warning", () => {
timestamp: 1500,
hash: "valid-hash",
})
// Clear the in-memory signature so verifyBlock must consult the persisted record.
__resetSigningHalt()
warning.mockClear()
expect((await verifyBlock(block)).valid).toBe(true)
Expand Down
Loading