resolved errors with regards to block header config.

This commit is contained in:
ArpitShukla007 2022-01-27 16:47:59 +00:00
parent 8b88040a5f
commit 6b3fe4b9fc
2 changed files with 4 additions and 4 deletions

View File

@ -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 = []

View File

@ -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}