mirror of
https://github.com/planetmint/planetmint.git
synced 2025-06-05 05:36:41 +00:00
fixing potential type error in cases of new block heights (#396)
Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
This commit is contained in:
parent
3e223f04cd
commit
b2bca169ec
@ -239,7 +239,6 @@ class ApplicationLogic(BaseApplication):
|
||||
block = self.validator.models.get_latest_block()
|
||||
|
||||
logger.debug("BLOCK: ", block)
|
||||
|
||||
if self.block_txn_ids:
|
||||
self.block_txn_hash = calculate_hash([block["app_hash"], block_txn_hash])
|
||||
else:
|
||||
@ -250,6 +249,8 @@ class ApplicationLogic(BaseApplication):
|
||||
sys.exit(1)
|
||||
except ValueError:
|
||||
sys.exit(1)
|
||||
except TypeError:
|
||||
sys.exit(1)
|
||||
|
||||
return ResponseEndBlock(validator_updates=validator_update)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user