pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/darkwallet/python-obelisk/commit/f7e00001e320ac0ccabea989733332b131675e9b

missing config.chain · darkwallet/python-obelisk@f7e0000 · GitHub
Skip to content

Commit f7e0000

Browse files
author
Andres Vargas
committed
missing config.chain
1 parent b0c5a74 commit f7e0000

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

obelisk/bitcoin.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -705,12 +705,12 @@ def serialize( klass, inputs, outputs, for_sig = None ):
705705
addr, amount = output
706706
s += int_to_hex( amount, 8) # amount
707707
addrtype, hash_160 = bc_address_to_hash_160(addr)
708-
if addrtype == chain.pubkey_version:
708+
if addrtype == config.chain.pubkey_version:
709709
script = '76a9' # op_dup, op_hash_160
710710
script += '14' # push 0x14 bytes
711711
script += hash_160.encode('hex')
712712
script += '88ac' # op_equalverify, op_checksig
713-
elif addrtype == chain.script_version:
713+
elif addrtype == config.chain.script_version:
714714
script = 'a9' # op_hash_160
715715
script += '14' # push 0x14 bytes
716716
script += hash_160.encode('hex')
@@ -1003,7 +1003,7 @@ def address(self):
10031003

10041004
def output_script(address):
10051005
addrtype, hash_160 = bc_address_to_hash_160(address)
1006-
assert addrtype == chain.pubkey_version
1006+
assert addrtype == config.chain.pubkey_version
10071007
script = '\x76\xa9' # op_dup, op_hash_160
10081008
script += '\x14' # push 0x14 bytes
10091009
script += hash_160

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy