Skip to content

Commit

Permalink
Add debug command
Browse files Browse the repository at this point in the history
  • Loading branch information
akshaynexus committed Jan 3, 2020
1 parent fdb45ca commit 97ef8bc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions lib/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 """
Expand Down
2 changes: 1 addition & 1 deletion lib/wallet.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 97ef8bc

Please sign in to comment.