diff --git a/tests/tendermint/test_lib.py b/tests/tendermint/test_lib.py index e6aa8f07..82d6e1e2 100644 --- a/tests/tendermint/test_lib.py +++ b/tests/tendermint/test_lib.py @@ -382,8 +382,16 @@ def test_get_spent_transaction_critical_double_spend(b, alice, bob, carol): asset_id=tx.id)\ .sign([alice.private_key]) + same_input_double_spend = Transaction.transfer(tx.to_inputs() + tx.to_inputs(), + [([bob.public_key], 1)], + asset_id=tx.id)\ + .sign([alice.private_key]) + b.store_bulk_transactions([tx]) + with pytest.raises(DoubleSpend): + same_input_double_spend.validate(b) + assert b.get_spent(tx.id, tx_transfer.inputs[0].fulfills.output, [tx_transfer]) with pytest.raises(DoubleSpend):