From 97ef8bccc6e56b5d848674da42d1216c9f92fa98 Mon Sep 17 00:00:00 2001 From: Akshay Date: Fri, 3 Jan 2020 17:12:37 +0300 Subject: [PATCH] Add debug command --- lib/commands.py | 5 +++++ lib/wallet.py | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/commands.py b/lib/commands.py index eaf1dd650..eed8cd1c8 100644 --- a/lib/commands.py +++ b/lib/commands.py @@ -741,6 +741,11 @@ def getposturl(self): """Get url given in wallettxnotify""" return self.wallet.notifposturl + @command('n') + def getshouldpost(self): + """Get url given in wallettxnotify""" + return self.wallet.shouldpost_newtxnotifs + @command('wn') def is_synchronized(self): """ return wallet synchronization status """ diff --git a/lib/wallet.py b/lib/wallet.py index d22bc2e57..dbb928205 100644 --- a/lib/wallet.py +++ b/lib/wallet.py @@ -180,7 +180,7 @@ def __init__(self, storage): self.synchronizer = None self.verifier = None self.notifposturl = os.environ.get('WALLETPOSTURL', '') #POST notif url - self.shouldpost_newtxnotifs = self.notifposturl != '' #Used by SRW to get new txes in wallet + self.shouldpost_newtxnotifs = self.notifposturl != '' #Used by SRW to get new txes in wallet # CashAccounts subsystem. Its network-dependent layer is started in # start_threads. Note: object instantiation should be lightweight here.