Example #1
0
def spendable_small_hex_large_vout(txout_small_coin_large_script):
    return Spendable.from_tx_out(txout_small_coin_large_script, b"\x00", 10)
Example #2
0
def spendable_large_hex_large_vout(txout_large_coin_large_script):
    return Spendable.from_tx_out(txout_large_coin_large_script, b"\xFF", 10)
Example #3
0
def test_spendable(spendable_small_hex_small_vout):
    spendable = Spendable.from_tx_out(TxOut(0, b"\x00"), b"\x00", 0)
    assert isinstance(spendable, Spendable)
    assert spendable.tx_hash == b"\x00"
    assert spendable.tx_out_index == 0