1
0

make_unsigned_request: set network for testnet

This commit is contained in:
zebra-lucky
2021-02-08 20:26:16 +02:00
parent 42c10c2fec
commit c43729b076

View File

@@ -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