Merge pull request #220 from sr-gi/test-patch-sendrawtransaction

Properly patches sendrawtransaction so it does not crash
This commit is contained in:
Sergi Delgado Segura 2023-07-24 11:04:55 -04:00 committed by GitHub
commit 59c770b25b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -48,7 +48,7 @@ def test_watchtower(node_factory, bitcoind, teosd):
locator = change_endianness(dispute_txid[32:])
# Make sure l2's normal penalty_tx doesn't reach the network
l2.daemon.rpcproxy.mock_rpc("sendrawtransaction", lambda: None)
l2.daemon.rpcproxy.mock_rpc("sendrawtransaction", lambda _: {"result": None, "error": None, "id": "pytest"})
l2.start()
# The tower will react once the dispute gets confirmed. For now it is still watching for it