From 59d8421c8775d3a9415af6e5b4ef8276baffe1d5 Mon Sep 17 00:00:00 2001 From: Kefkius Date: Sat, 19 Aug 2017 18:31:55 -0400 Subject: [PATCH] Fix KeyError on incorrect genesis hash (#224) Fix KeyError that occurs when creating an exception for an incorrect genesis hash. --- server/db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/db.py b/server/db.py index 1ba4e01..6e1b829 100644 --- a/server/db.py +++ b/server/db.py @@ -315,7 +315,7 @@ class DB(util.LoggedClass): genesis_hash = genesis_hash.decode() if genesis_hash != self.coin.GENESIS_HASH: raise self.DBError('DB genesis hash {} does not match coin {}' - .format(state['genesis_hash'], + .format(genesis_hash, self.coin.GENESIS_HASH)) self.db_height = state['height'] self.db_tx_count = state['tx_count']