SatSale

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 0c05b5cd7ab4e6c632f603e304c8d737894900b3
parent e0ae24e3d7dda86acaa60ed419a8e9e152f7270e
Author: NicholasFarrow <nicholas.w.farrow@gmail.com>
Date:   Sat, 23 Jan 2021 02:05:46 +1100

improve debug free mode demo time

Diffstat:
Mserver.py | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/server.py b/server.py @@ -154,7 +154,9 @@ def process_payment(payment): print() print(payment.__dict__) - if (payment.confirmed_paid > payment.value) or config.free_mode: + # Debugging and demo mode which auto confirms payment + dbg_free_mode_cond = config.free_mode and (time.time() - payment.start_time > 5) + if (payment.confirmed_paid > payment.value) or dbg_free_mode_cond: payment.paid = True payment.time_left = 0 payment.status = "Payment successful! {} BTC".format(payment.confirmed_paid)