From 9f18f517b035cdddc6dabb971da052287c2d6533 Mon Sep 17 00:00:00 2001 From: Janus Date: Wed, 30 Jan 2019 01:45:13 +0100 Subject: [PATCH] tests: update lnbase test to use 4-tuple for invoices --- electrum/tests/test_lnbase.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/electrum/tests/test_lnbase.py b/electrum/tests/test_lnbase.py index 5a41702a4..133e44fa1 100644 --- 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