Enable unpack of pre EIP155 txs
This commit is contained in:
parent
109666ba1d
commit
7f2c32975d
@ -1,3 +1,5 @@
|
|||||||
|
- 0.0.22:
|
||||||
|
* Enable unpack of pre EIP-155 transactions
|
||||||
- 0.0.21:
|
- 0.0.21:
|
||||||
* Remove warnings from cytoolz/rlp in funga-eth
|
* Remove warnings from cytoolz/rlp in funga-eth
|
||||||
- 0.0.15:
|
- 0.0.15:
|
||||||
|
@ -162,6 +162,7 @@ def __unpack_raw(tx_raw_bytes, chain_id=1):
|
|||||||
vb = chain_id
|
vb = chain_id
|
||||||
if chain_id != 0:
|
if chain_id != 0:
|
||||||
v = int.from_bytes(d[6], 'big')
|
v = int.from_bytes(d[6], 'big')
|
||||||
|
if v > 29:
|
||||||
vb = v - (chain_id * 2) - 35
|
vb = v - (chain_id * 2) - 35
|
||||||
r = bytearray(32)
|
r = bytearray(32)
|
||||||
r[32-len(d[7]):] = d[7]
|
r[32-len(d[7]):] = d[7]
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[metadata]
|
[metadata]
|
||||||
name = chainlib-eth
|
name = chainlib-eth
|
||||||
version = 0.0.21
|
version = 0.0.22
|
||||||
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
|
||||||
|
Loading…
Reference in New Issue
Block a user