Changeset View
Changeset View
Standalone View
Standalone View
test/functional/test_framework/chronik/test_data.py
Show All 11 Lines | |||||
) | ) | ||||
from test_framework.chronik.client import pb | from test_framework.chronik.client import pb | ||||
def genesis_cb_tx(): | def genesis_cb_tx(): | ||||
return pb.Tx( | return pb.Tx( | ||||
txid=bytes.fromhex(GENESIS_CB_TXID)[::-1], | txid=bytes.fromhex(GENESIS_CB_TXID)[::-1], | ||||
version=1, | version=1, | ||||
inputs=[pb.TxInput( | inputs=[ | ||||
prev_out=pb.OutPoint(txid=bytes(32), out_idx=0xffffffff), | pb.TxInput( | ||||
prev_out=pb.OutPoint(txid=bytes(32), out_idx=0xFFFFFFFF), | |||||
input_script=bytes(GENESIS_CB_SCRIPT_SIG), | input_script=bytes(GENESIS_CB_SCRIPT_SIG), | ||||
sequence_no=0xffffffff, | sequence_no=0xFFFFFFFF, | ||||
)], | ) | ||||
outputs=[pb.TxOutput( | ], | ||||
outputs=[ | |||||
pb.TxOutput( | |||||
value=5000000000, | value=5000000000, | ||||
output_script=bytes(GENESIS_CB_SCRIPT_PUBKEY), | output_script=bytes(GENESIS_CB_SCRIPT_PUBKEY), | ||||
)], | ) | ||||
], | |||||
lock_time=0, | lock_time=0, | ||||
block=pb.BlockMetadata( | block=pb.BlockMetadata( | ||||
hash=bytes.fromhex(GENESIS_BLOCK_HASH)[::-1], | hash=bytes.fromhex(GENESIS_BLOCK_HASH)[::-1], | ||||
height=0, | height=0, | ||||
timestamp=TIME_GENESIS_BLOCK, | timestamp=TIME_GENESIS_BLOCK, | ||||
), | ), | ||||
time_first_seen=0, | time_first_seen=0, | ||||
size=204, | size=204, | ||||
is_coinbase=True, | is_coinbase=True, | ||||
) | ) |