Skip to content

Commit 71a30f1

Browse files
committed
fix bytes ordering for address.subscribe()
1 parent 971ed64 commit 71a30f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

obelisk/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def subscribe_address(self, address, notification_cb=None, cb=None):
8080
bitcoin.bc_address_to_hash_160(address)
8181
# prepare parameters. Use full prefix for now.
8282
data = struct.pack('B', 160) # bitsize
83-
data += address_hash[::-1] # hash bytes
83+
data += address_hash # hash bytes
8484

8585
# run command
8686
self.send_command('address.subscribe', data, cb)

0 commit comments

Comments
 (0)