mirror of
https://github.com/planetmint/planetmint.git
synced 2025-10-14 00:59:17 +00:00
Solved linting errors.
This commit is contained in:
parent
0fdca70c38
commit
ddc26a0f78
@ -41,7 +41,7 @@ class App(BaseApplication):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, planetmint_node=None, events_queue=None):
|
def __init__(self, planetmint_node=None, events_queue=None):
|
||||||
#super().__init__(abci)
|
# super().__init__(abci)
|
||||||
logger.debug('Checking values of types')
|
logger.debug('Checking values of types')
|
||||||
logger.debug(dir(types_pb2))
|
logger.debug(dir(types_pb2))
|
||||||
self.events_queue = events_queue
|
self.events_queue = events_queue
|
||||||
@ -53,7 +53,6 @@ class App(BaseApplication):
|
|||||||
self.new_height = None
|
self.new_height = None
|
||||||
self.chain = self.planetmint_node.get_latest_abci_chain()
|
self.chain = self.planetmint_node.get_latest_abci_chain()
|
||||||
|
|
||||||
|
|
||||||
def log_abci_migration_error(self, chain_id, validators):
|
def log_abci_migration_error(self, chain_id, validators):
|
||||||
logger.error('An ABCI chain migration is in process. '
|
logger.error('An ABCI chain migration is in process. '
|
||||||
'Download theself.planetmint_node.get_latest_abci_chain new ABCI client and configure it with '
|
'Download theself.planetmint_node.get_latest_abci_chain new ABCI client and configure it with '
|
||||||
@ -98,8 +97,7 @@ class App(BaseApplication):
|
|||||||
self.planetmint_node.store_block(block._asdict())
|
self.planetmint_node.store_block(block._asdict())
|
||||||
self.planetmint_node.store_validator_set(height + 1, validator_set)
|
self.planetmint_node.store_validator_set(height + 1, validator_set)
|
||||||
abci_chain_height = 0 if known_chain is None else known_chain['height']
|
abci_chain_height = 0 if known_chain is None else known_chain['height']
|
||||||
self.planetmint_node.store_abci_chain(abci_chain_height,
|
self.planetmint_node.store_abci_chain(abci_chain_height, genesis.chain_id, True)
|
||||||
genesis.chain_id, True)
|
|
||||||
self.chain = {'height': abci_chain_height, 'is_synced': True,
|
self.chain = {'height': abci_chain_height, 'is_synced': True,
|
||||||
'chain_id': genesis.chain_id}
|
'chain_id': genesis.chain_id}
|
||||||
return ResponseInitChain()
|
return ResponseInitChain()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user