commit 4e3b2b547994605bb6e0630009334a534ae2e7f1
parent 281d51c00216d6eca9e30ecd8080e4a525aacdcc
Author: Janus <ysangkok@gmail.com>
Date: Wed, 30 Jan 2019 01:45:13 +0100
tests: update lnbase test to use 4-tuple for invoices
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/electrum/tests/test_lnbase.py b/electrum/tests/test_lnbase.py
@@ -16,7 +16,7 @@ from electrum.util import bh2u
from electrum.lnbase import Peer, decode_msg, gen_msg
from electrum.lnutil import LNPeerAddr, Keypair, privkey_to_pubkey
from electrum.lnutil import LightningPeerConnectionClosed, RemoteMisbehaving
-from electrum.lnutil import PaymentFailure
+from electrum.lnutil import PaymentFailure, RECEIVED
from electrum.lnrouter import ChannelDB, LNPathFinder
from electrum.lnworker import LNWorker
@@ -189,7 +189,7 @@ class TestPeer(unittest.TestCase):
('d', 'coffee')
])
pay_req = lnencode(addr, w2.node_keypair.privkey)
- w2.invoices[bh2u(RHASH)] = (bh2u(payment_preimage), pay_req)
+ w2.invoices[bh2u(RHASH)] = (bh2u(payment_preimage), pay_req, RECEIVED, None)
return pay_req
@staticmethod