mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-25 07:07:46 +01:00
better debug text
This commit is contained in:
parent
3b5119bbab
commit
ec328e37eb
1 changed files with 4 additions and 4 deletions
|
@ -360,8 +360,8 @@ def shopOrder(shopUrl, hostid, servicename, torTarget, duration, msatsFirst, msa
|
||||||
print("# invoice: {0}".format(paymentRequestStr))
|
print("# invoice: {0}".format(paymentRequestStr))
|
||||||
paymentRequestDecoded = lndDecodeInvoice(paymentRequestStr)
|
paymentRequestDecoded = lndDecodeInvoice(paymentRequestStr)
|
||||||
if paymentRequestDecoded is None: sys.exit()
|
if paymentRequestDecoded is None: sys.exit()
|
||||||
print("# amount as advertised: {0}".format(msatsFirst))
|
print("# amount as advertised: {0} milliSats".format(msatsFirst))
|
||||||
print("# amount in invoice is: {0}".format(paymentRequestDecoded.num_msat))
|
print("# amount in invoice is: {0} milliSats".format(paymentRequestDecoded.num_msat))
|
||||||
if int(msatsFirst) < int(paymentRequestDecoded.num_msat):
|
if int(msatsFirst) < int(paymentRequestDecoded.num_msat):
|
||||||
raise BlitzError("invoice bigger amount than advertised", "advertised({0}) invoice({1})".format(msatsFirst, paymentRequestDecoded.num_msat))
|
raise BlitzError("invoice bigger amount than advertised", "advertised({0}) invoice({1})".format(msatsFirst, paymentRequestDecoded.num_msat))
|
||||||
|
|
||||||
|
@ -463,8 +463,8 @@ def subscriptionExtend(shopUrl, bridgeid, durationAdvertised, msatsNext, bridge_
|
||||||
print("# invoice: {0}".format(paymentRequestStr))
|
print("# invoice: {0}".format(paymentRequestStr))
|
||||||
paymentRequestDecoded = lndDecodeInvoice(paymentRequestStr)
|
paymentRequestDecoded = lndDecodeInvoice(paymentRequestStr)
|
||||||
if paymentRequestDecoded is None: sys.exit()
|
if paymentRequestDecoded is None: sys.exit()
|
||||||
print("# amount as advertised: {0}".format(msatsNext))
|
print("# amount as advertised: {0} milliSats".format(msatsNext))
|
||||||
print("# amount in invoice is: {0}".format(paymentRequestDecoded.num_msat))
|
print("# amount in invoice is: {0} milliSats".format(paymentRequestDecoded.num_msat))
|
||||||
if int(msatsNext) < int(paymentRequestDecoded.num_msat):
|
if int(msatsNext) < int(paymentRequestDecoded.num_msat):
|
||||||
raise BlitzError("invoice bigger amount than advertised", "advertised({0}) invoice({1})".format(msatsNext, paymentRequestDecoded.num_msat))
|
raise BlitzError("invoice bigger amount than advertised", "advertised({0}) invoice({1})".format(msatsNext, paymentRequestDecoded.num_msat))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue