OSDN Git Service
(root)
/
bytom
/
bytom-kit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ca108e
)
add asset definition
author
Chengcheng Zhang
<943420582@qq.com>
Thu, 14 Mar 2019 12:22:05 +0000
(20:22 +0800)
committer
Chengcheng Zhang
<943420582@qq.com>
Thu, 14 Mar 2019 12:22:05 +0000
(20:22 +0800)
app/model/transaction.py
patch
|
blob
|
history
diff --git
a/app/model/transaction.py
b/app/model/transaction.py
index
39dd150
..
e30b09f
100644
(file)
--- a/
app/model/transaction.py
+++ b/
app/model/transaction.py
@@
-222,7
+222,7
@@
def decode_raw_tx(raw_tx_str, network_str):
offset = offset + 2 * length
asset_definition_size, length = get_uvarint(raw_tx_str[offset:offset+16])
offset = offset + 2 * length
- tx_input['asset_definition'] =
raw_tx_str[offset:offset+2*asset_definition_size]
+ tx_input['asset_definition'] =
bytes.fromhex(raw_tx_str[offset:offset+2*asset_definition_size]).decode()
offset = offset + 2 * asset_definition_size
_, length = get_uvarint(raw_tx_str[offset:offset+16])
offset = offset + 2 * length