mirror of
https://github.com/curly60e/pyblock.git
synced 2026-08-17 13:07:17 +02:00
Bug Fix OP_RETURN
This commit is contained in:
parent
8c412db8f0
commit
3d1ef84bc0
1 changed files with 6 additions and 1 deletions
|
|
@ -107,7 +107,12 @@ def untxsConn():
|
|||
ab = abc['vout']
|
||||
for key, value in enumerate(ab):
|
||||
knx = value['scriptPubKey']
|
||||
print("TxID: \u001b[38;5;40m{} \u001b[31;1m| Amount: \u001b[38;5;202m{} BTC \u001b[31;1m| Address: \u001b[33;1m{}\u001b[31;1m | Type: \u001b[31;1m{}".format(b,value['value'],knx['address'],knx['type']))
|
||||
knz = 'address'
|
||||
if knz in knx:
|
||||
print("TxID: \u001b[38;5;40m{} \033[0;37;40m| \u001b[31;1mAmount: \u001b[38;5;202m{} BTC \033[0;37;40m| \u001b[31;1mAddress: \u001b[33;1m{}\033[0;37;40m | \u001b[31;1mType: \u001b[31;1m{}\u001b[33;1m".format(b,value['value'],knx['address'],knx['type']))
|
||||
else:
|
||||
print("TxID: \u001b[38;5;40m{} \033[0;37;40m| \u001b[31;1mAmount: \u001b[38;5;202m{} BTC \033[0;37;40m| \u001b[31;1mOP_RETURN: \u001b[38;5;27m{}\033[0;37;40m | \u001b[31;1mType: \u001b[31;1m{}\u001b[33;1m".format(b,value['value'],knx['asm'],knx['type']))
|
||||
pass
|
||||
input("\n\033[?25l\033[0;37;40m\a\n\033[AContinue...\033[A")
|
||||
except:
|
||||
pass
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue