mirror of
https://github.com/planetmint/planetmint.git
synced 2025-06-09 15:46:38 +00:00
resolved errors with regards to block header config.
This commit is contained in:
parent
8b88040a5f
commit
6b3fe4b9fc
@ -178,9 +178,9 @@ class App(BaseApplication):
|
|||||||
self.abort_if_abci_chain_is_not_synced()
|
self.abort_if_abci_chain_is_not_synced()
|
||||||
|
|
||||||
chain_shift = 0 if self.chain is None else self.chain['height']
|
chain_shift = 0 if self.chain is None else self.chain['height']
|
||||||
logger.debug('BEGIN BLOCK, height:%s, num_txs:%s',
|
#req_begin_block.header.num_txs not found, so removing it.
|
||||||
req_begin_block.header.height + chain_shift,
|
logger.debug('BEGIN BLOCK, height:%s',
|
||||||
req_begin_block.header.num_txs)
|
req_begin_block.header.height + chain_shift)
|
||||||
|
|
||||||
self.block_txn_ids = []
|
self.block_txn_ids = []
|
||||||
self.block_transactions = []
|
self.block_transactions = []
|
||||||
|
@ -26,7 +26,7 @@ def encode_validator(v):
|
|||||||
|
|
||||||
def decode_validator(v):
|
def decode_validator(v):
|
||||||
return {'public_key': {'type': 'ed25519-base64',
|
return {'public_key': {'type': 'ed25519-base64',
|
||||||
'value': codecs.encode(v.pub_key.data, 'base64').decode().rstrip('\n')},
|
'value': codecs.encode(v.pub_key.ed25519, 'base64').decode().rstrip('\n')},
|
||||||
'voting_power': v.power}
|
'voting_power': v.power}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user