Add author property in block

This commit is contained in:
lash 2022-05-07 11:31:06 +00:00
parent e499770d6d
commit 9548ed5d1b
Signed by: lash
GPG Key ID: 21D2E7BB88C2A746
3 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,7 @@
- 0.1.3
* Add block author field
- 0.1.2
* Upgrade chainlib dep
- 0.1.1 - 0.1.1
* Add fee_limit, fee_price alias to Tx object * Add fee_limit, fee_price alias to Tx object
- 0.1.0: - 0.1.0:

View File

@ -98,6 +98,7 @@ class Block(BaseBlock):
self.timestamp = int(strip_0x(src['timestamp']), 16) self.timestamp = int(strip_0x(src['timestamp']), 16)
except TypeError: except TypeError:
self.timestamp = int(src['timestamp']) self.timestamp = int(src['timestamp'])
self.author = src['author']
def get_tx(self, tx_hash): def get_tx(self, tx_hash):

View File

@ -1,6 +1,6 @@
[metadata] [metadata]
name = chainlib-eth name = chainlib-eth
version = 0.1.2 version = 0.1.3
description = Ethereum implementation of the chainlib interface description = Ethereum implementation of the chainlib interface
author = Louis Holbrook author = Louis Holbrook
author_email = dev@holbrook.no author_email = dev@holbrook.no