Browse Source
Merge pull request #7011 from zebra-lucky/make_payreq_details_network
make_unsigned_request: set network for testnet
patch-4
ThomasV
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
0 deletions
-
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 |
|
|
|