From 2cbc60aeae18731d9f97456dc65aae18a319f202 Mon Sep 17 00:00:00 2001 From: Henry de Valence Date: Thu, 10 Sep 2020 10:18:05 -0700 Subject: [PATCH] consensus: fix block-not-in-state check in test The state responds with Ok(None) when the block is not there, and Err(_) to indicate an error while looking. --- zebra-consensus/src/chain/tests.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/zebra-consensus/src/chain/tests.rs b/zebra-consensus/src/chain/tests.rs index f760fea82..8e7922011 100644 --- a/zebra-consensus/src/chain/tests.rs +++ b/zebra-consensus/src/chain/tests.rs @@ -104,7 +104,10 @@ static NO_COINBASE_STATE_TRANSCRIPT: Lazy)>> =