mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-04-05 05:14:51 +02:00
doc: fix various typos
Co-authored-by: Peter Yordanov <ppyordanov@yahoo.com>
This commit is contained in:
@@ -60,7 +60,7 @@ class NULLDUMMYTest(BitcoinTestFramework):
|
||||
self.wit_address = w0.getnewaddress(address_type='p2sh-segwit')
|
||||
self.wit_ms_address = wmulti.addmultisigaddress(1, [self.pubkey], '', 'p2sh-segwit')['address']
|
||||
if not self.options.descriptors:
|
||||
# Legacy wallets need to import these so that they are watched by the wallet. This is unnecssary (and does not need to be tested) for descriptor wallets
|
||||
# Legacy wallets need to import these so that they are watched by the wallet. This is unnecessary (and does not need to be tested) for descriptor wallets
|
||||
wmulti.importaddress(self.ms_address)
|
||||
wmulti.importaddress(self.wit_ms_address)
|
||||
|
||||
|
||||
@@ -143,7 +143,7 @@ class InvalidTxRequestTest(BitcoinTestFramework):
|
||||
}
|
||||
# Transactions that do not end up in the mempool
|
||||
# tx_orphan_no_fee, because it has too low fee (p2ps[0] is not disconnected for relaying that tx)
|
||||
# tx_orphan_invaid, because it has negative fee (p2ps[1] is disconnected for relaying that tx)
|
||||
# tx_orphan_invalid, because it has negative fee (p2ps[1] is disconnected for relaying that tx)
|
||||
|
||||
self.wait_until(lambda: 1 == len(node.getpeerinfo()), timeout=12) # p2ps[1] is no longer connected
|
||||
assert_equal(expected_mempool, set(node.getrawmempool()))
|
||||
|
||||
@@ -78,7 +78,7 @@ class WalletEncryptionTest(BitcoinTestFramework):
|
||||
MAX_VALUE = 100000000
|
||||
expected_time = int(time.time()) + MAX_VALUE - 600
|
||||
self.nodes[0].walletpassphrase(passphrase2, MAX_VALUE - 600)
|
||||
# give buffer for walletpassphrase, since it iterates over all crypted keys
|
||||
# give buffer for walletpassphrase, since it iterates over all encrypted keys
|
||||
expected_time_with_buffer = time.time() + MAX_VALUE - 600
|
||||
actual_time = self.nodes[0].getwalletinfo()['unlocked_until']
|
||||
assert_greater_than_or_equal(actual_time, expected_time)
|
||||
|
||||
Reference in New Issue
Block a user