-
Notifications
You must be signed in to change notification settings - Fork 74
Description
I did a quick test of the cli tools. I stored some data:
$ python store-OP_RETURN.py "Test kk message!" 1
TxIDs: b4c9efa9e53c586b4ead18a802b98c647c3774900e3dea62d676db11e5f4cca4
Ref: 1064270-051636
...and then tried to retrieve using the reference but I got the following error:
$ python retrieve-OP_RETURN.py 1064270-051636 1
Traceback (most recent call last):
File "retrieve-OP_RETURN.py", line 43, in
results=OP_RETURN_retrieve(ref, 1, testnet)
File "/home/user/scripts/python/python-OP_RETURN/OP_RETURN.py", line 211, in OP_RETURN_retrieve
txns=OP_RETURN_get_block_txns(height, testnet) # if block, get all fully unpacked
File "/home/user/scripts/python/python-OP_RETURN/OP_RETURN.py", line 401, in OP_RETURN_get_block_txns
block=OP_RETURN_unpack_block(raw_block['block'])
File "/home/user/scripts/python/python-OP_RETURN/OP_RETURN.py", line 623, in OP_RETURN_unpack_block
transaction=OP_RETURN_unpack_txn_buffer(buffer)
File "/home/user/scripts/python/python-OP_RETURN/OP_RETURN.py", line 663, in OP_RETURN_unpack_txn_buffer
input['sequence']=buffer.shift_unpack(4, '<L')
File "/home/user/scripts/python/python-OP_RETURN/OP_RETURN.py", line 785, in shift_unpack
unpack=struct.unpack(format, self.shift(chars))
struct.error: unpack requires a bytes object of length 4