mirror of
https://github.com/aljazceru/python-teos.git
synced 2025-12-18 06:34:19 +01:00
Updates test_carrier with issued_receipts
The functionality expected in the test required the issued_receipts dict to be cleare, what is normally performed by the Responder
This commit is contained in:
@@ -35,8 +35,9 @@ def test_send_double_spending_transaction(carrier):
|
|||||||
receipt = carrier.send_transaction(tx.hex(), txid)
|
receipt = carrier.send_transaction(tx.hex(), txid)
|
||||||
sent_txs.append(txid)
|
sent_txs.append(txid)
|
||||||
|
|
||||||
# Wait for a block to be mined
|
# Wait for a block to be mined. Issued receipts is reset from the Responder every block, so we should do it too.
|
||||||
generate_blocks(2)
|
generate_blocks(2)
|
||||||
|
carrier.issued_receipts = {}
|
||||||
|
|
||||||
# Try to send it again
|
# Try to send it again
|
||||||
receipt2 = carrier.send_transaction(tx.hex(), txid)
|
receipt2 = carrier.send_transaction(tx.hex(), txid)
|
||||||
|
|||||||
Reference in New Issue
Block a user