Browse Source

shorter docstrings

master
ThomasV 11 years ago
parent
commit
5714d9f4fc
  1. 7
      lib/commands.py

7
lib/commands.py

@ -157,15 +157,14 @@ class Commands:
@command('n') @command('n')
def getaddressunspent(self, address): def getaddressunspent(self, address):
"""Returns the list of unspent inputs of a Bitcoin address. Note: This """Returns the UTXO list of any address. Note: This
is a walletless server query, results are not checked by SPV. is a walletless server query, results are not checked by SPV.
""" """
return self.network.synchronous_get([('blockchain.address.listunspent', [address])])[0] return self.network.synchronous_get([('blockchain.address.listunspent', [address])])[0]
@command('n') @command('n')
def getutxoaddress(self, txid, pos): def getutxoaddress(self, txid, pos):
"""Get the address that corresponds to an unspent transaction """Get the address of a UTXO. Note: This is a walletless server query, results are
output. Note: This is a walletless server query, results are
not checked by SPV. not checked by SPV.
""" """
r = self.network.synchronous_get([('blockchain.utxo.get_address', [txid, pos])]) r = self.network.synchronous_get([('blockchain.utxo.get_address', [txid, pos])])
@ -535,7 +534,7 @@ class Commands:
@command('w') @command('w')
def listrequests(self): def listrequests(self):
"""List the payment requests you made, and their status""" """List the payment requests you made."""
return map(self._format_request, self.wallet.get_sorted_requests(self.config)) return map(self._format_request, self.wallet.get_sorted_requests(self.config))
@command('w') @command('w')

Loading…
Cancel
Save