consensus_hash might not be set

This commit is contained in:
Jude Nelson
2016-05-11 17:57:21 -04:00
parent c0806bf712
commit 8916dd2d53

View File

@@ -123,7 +123,7 @@ def check( state_engine ):
return False
# QUIRK: consensus hash not preserved
if name_rec['consensus_hash'] is not None:
if name_rec.has_key('consensus_hash') and name_rec['consensus_hash'] is not None:
print "quirk not preserved: consensus hash is '%s'" % name_rec['consensus_hash']
return False