electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 2057185aa48d5157db9a07081a891e74dc7023c4
parent 42c10c2fecf5cc56d149b7d09ae2dddb36560624
Author: ThomasV <thomasv@electrum.org>
Date:   Tue,  9 Feb 2021 10:51:50 +0100

Merge pull request #7011 from zebra-lucky/make_payreq_details_network

make_unsigned_request: set network for testnet
Diffstat:
Melectrum/paymentrequest.py | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/electrum/paymentrequest.py b/electrum/paymentrequest.py @@ -339,6 +339,8 @@ def make_unsigned_request(req: 'OnchainInvoice'): script = bfh(address_to_script(addr)) outputs = [(script, amount)] pd = pb2.PaymentDetails() + if constants.net.TESTNET: + pd.network = 'test' for script, amount in outputs: pd.outputs.add(amount=amount, script=script) pd.time = time