Fix typos
This commit is contained in:
committed by
Johann Bauer
parent
5b2b59420f
commit
989c9c2b55
@@ -199,7 +199,7 @@ class CoinChooserBase(PrintError):
|
||||
utxos = [c['prevout_hash'] + str(c['prevout_n']) for c in coins]
|
||||
self.p = PRNG(''.join(sorted(utxos)))
|
||||
|
||||
# Copy the ouputs so when adding change we don't modify "outputs"
|
||||
# Copy the outputs so when adding change we don't modify "outputs"
|
||||
tx = Transaction.from_io([], outputs[:])
|
||||
# Weight of the transaction with no inputs and no change
|
||||
# Note: this will use legacy tx serialization as the need for "segwit"
|
||||
|
||||
@@ -340,7 +340,7 @@ class Commands:
|
||||
|
||||
@command('')
|
||||
def version(self):
|
||||
"""Return the version of electrum."""
|
||||
"""Return the version of Electrum."""
|
||||
from .version import ELECTRUM_VERSION
|
||||
return ELECTRUM_VERSION
|
||||
|
||||
@@ -589,7 +589,7 @@ class Commands:
|
||||
@command('w')
|
||||
def addrequest(self, amount, memo='', expiration=None, force=False):
|
||||
"""Create a payment request, using the first unused address of the wallet.
|
||||
The address will be condidered as used after this operation.
|
||||
The address will be considered as used after this operation.
|
||||
If no payment is received, the address will be considered as unused if the payment request is deleted from the wallet."""
|
||||
addr = self.wallet.get_unused_address()
|
||||
if addr is None:
|
||||
@@ -635,7 +635,7 @@ class Commands:
|
||||
|
||||
@command('n')
|
||||
def notify(self, address, URL):
|
||||
"""Watch an address. Everytime the address changes, a http POST is sent to the URL."""
|
||||
"""Watch an address. Every time the address changes, a http POST is sent to the URL."""
|
||||
def callback(x):
|
||||
import urllib.request
|
||||
headers = {'content-type':'application/json'}
|
||||
|
||||
@@ -43,7 +43,7 @@ from . import pem
|
||||
|
||||
|
||||
def Connection(server, queue, config_path):
|
||||
"""Makes asynchronous connections to a remote electrum server.
|
||||
"""Makes asynchronous connections to a remote Electrum server.
|
||||
Returns the running thread that is making the connection.
|
||||
|
||||
Once the thread has connected, it finishes, placing a tuple on the
|
||||
@@ -240,7 +240,7 @@ class TcpConnection(threading.Thread, util.PrintError):
|
||||
|
||||
class Interface(util.PrintError):
|
||||
"""The Interface class handles a socket connected to a single remote
|
||||
electrum server. It's exposed API is:
|
||||
Electrum server. Its exposed API is:
|
||||
|
||||
- Member functions close(), fileno(), get_responses(), has_timed_out(),
|
||||
ping_required(), queue_request(), send_requests()
|
||||
|
||||
@@ -147,7 +147,7 @@ class Imported_KeyStore(Software_KeyStore):
|
||||
privkey, compressed, txin_type, internal_use=True)
|
||||
# NOTE: if the same pubkey is reused for multiple addresses (script types),
|
||||
# there will only be one pubkey-privkey pair for it in self.keypairs,
|
||||
# and the privkey will encode a txin_type but that txin_type can not be trusted.
|
||||
# and the privkey will encode a txin_type but that txin_type cannot be trusted.
|
||||
# Removing keys complicates this further.
|
||||
self.keypairs[pubkey] = pw_encode(serialized_privkey, password)
|
||||
return txin_type, pubkey
|
||||
@@ -512,7 +512,7 @@ class Hardware_KeyStore(KeyStore, Xpub):
|
||||
}
|
||||
|
||||
def unpaired(self):
|
||||
'''A device paired with the wallet was diconnected. This can be
|
||||
'''A device paired with the wallet was disconnected. This can be
|
||||
called in any thread context.'''
|
||||
self.print_error("unpaired")
|
||||
|
||||
|
||||
@@ -159,7 +159,7 @@ class Mnemonic(object):
|
||||
|
||||
def make_seed(self, seed_type='standard', num_bits=132):
|
||||
prefix = version.seed_prefix(seed_type)
|
||||
# increase num_bits in order to obtain a uniform distibution for the last word
|
||||
# increase num_bits in order to obtain a uniform distribution for the last word
|
||||
bpw = math.log(len(self.wordlist), 2)
|
||||
# rounding
|
||||
n = int(math.ceil(num_bits/bpw) * bpw)
|
||||
|
||||
@@ -148,7 +148,7 @@ class PaymentRequest:
|
||||
self.error = "Error: Cannot parse payment request"
|
||||
return False
|
||||
if not pr.signature:
|
||||
# the address will be dispayed as requestor
|
||||
# the address will be displayed as requestor
|
||||
self.requestor = None
|
||||
return True
|
||||
if pr.pki_type in ["x509+sha256", "x509+sha1"]:
|
||||
|
||||
@@ -1315,7 +1315,7 @@ class Abstract_Wallet(PrintError):
|
||||
self.synchronizer.release()
|
||||
self.synchronizer = None
|
||||
self.verifier = None
|
||||
# Now no references to the syncronizer or verifier
|
||||
# Now no references to the synchronizer or verifier
|
||||
# remain so they will be GC-ed
|
||||
self.storage.put('stored_height', self.get_local_height())
|
||||
self.save_transactions()
|
||||
|
||||
Reference in New Issue
Block a user