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:
70517c9
)
fix fee bug
author
Chengcheng Zhang
<943420582@qq.com>
Fri, 15 Mar 2019 08:18:09 +0000
(16:18 +0800)
committer
Chengcheng Zhang
<943420582@qq.com>
Fri, 15 Mar 2019 08:18:09 +0000
(16:18 +0800)
app/model/transaction.py
patch
|
blob
|
history
diff --git
a/app/model/transaction.py
b/app/model/transaction.py
index
e30b09f
..
2c2bcc6
100644
(file)
--- a/
app/model/transaction.py
+++ b/
app/model/transaction.py
@@
-314,7
+314,8
@@
def decode_raw_tx(raw_tx_str, network_str):
offset = offset + 64
tx_output['amount'], length = get_uvarint(raw_tx_str[offset:offset+16])
offset = offset + 2 * length
- tx['fee'] -= tx_output['amount']
+ if tx_output['asset_id'] == 'ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff':
+ tx['fee'] -= tx_output['amount']
_, length = get_uvarint(raw_tx_str[offset:offset+16])
offset = offset + 2 * length
control_program_length, length = get_uvarint(raw_tx_str[offset:offset+16])