Skip to content

Commit e2bf830

Browse files
author
MarcoFalke
committed
Merge #8038: [qa, doc] Various minor fixes
fa83a5d [qa] wallet: Temporarily disable salvagewallet test (MarcoFalke) fadd048 [doc] Link to clang-format in the developer notes (MarcoFalke) fa72f7d [doc] Remove outdated line from listunspent RPC help, fix typo (MarcoFalke) ac40ed7 Increase timeout waiting for pruned blk00000.dat (error10)
2 parents 1f01443 + fa83a5d commit e2bf830

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

doc/developer-notes.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ Various coding styles have been used during the history of the codebase,
55
and the result is not very consistent. However, we're now trying to converge to
66
a single style, so please use it in new code. Old code will be converted
77
gradually.
8-
- Basic rules specified in src/.clang-format. Use a recent clang-format-3.5 to format automatically.
8+
- Basic rules specified in [src/.clang-format](/src/.clang-format).
9+
Use a recent clang-format to format automatically using one of the [dev scripts]
10+
(/contrib/devtools/README.md#clang-formatpy).
911
- Braces on new lines for namespaces, classes, functions, methods.
1012
- Braces on the same line for everything else.
1113
- 4 space indentation (no tabs) for every block except namespaces.

qa/rpc-tests/pruning.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def test_height_min(self):
7575
waitstart = time.time()
7676
while os.path.isfile(self.prunedir+"blk00000.dat"):
7777
time.sleep(0.1)
78-
if time.time() - waitstart > 10:
78+
if time.time() - waitstart > 30:
7979
raise AssertionError("blk00000.dat not pruned when it should be")
8080

8181
print("Success")

qa/rpc-tests/wallet.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ def run_test (self):
306306
# Check that the txid and balance is found by node1
307307
self.nodes[1].gettransaction(cbTxId)
308308

309-
#check if wallet or blochchain maintenance changes the balance
309+
# check if wallet or blockchain maintenance changes the balance
310310
self.sync_all()
311311
blocks = self.nodes[0].generate(2)
312312
self.sync_all()
@@ -318,7 +318,8 @@ def run_test (self):
318318
'-reindex',
319319
'-zapwallettxes=1',
320320
'-zapwallettxes=2',
321-
'-salvagewallet',
321+
# disabled until issue is fixed: https://github.com/bitcoin/bitcoin/issues/7463
322+
# '-salvagewallet',
322323
]
323324
for m in maintenance:
324325
print("check " + m)
@@ -338,4 +339,4 @@ def run_test (self):
338339
assert_equal(len(self.nodes[0].listsinceblock(blocks[1])["transactions"]), 0)
339340

340341
if __name__ == '__main__':
341-
WalletTest ().main ()
342+
WalletTest().main()

src/wallet/rpcwallet.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2233,7 +2233,7 @@ UniValue settxfee(const UniValue& params, bool fHelp)
22332233
"settxfee amount\n"
22342234
"\nSet the transaction fee per kB. Overwrites the paytxfee parameter.\n"
22352235
"\nArguments:\n"
2236-
"1. amount (numeric or sting, required) The transaction fee in " + CURRENCY_UNIT + "/kB\n"
2236+
"1. amount (numeric or string, required) The transaction fee in " + CURRENCY_UNIT + "/kB\n"
22372237
"\nResult\n"
22382238
"true|false (boolean) Returns true if successful\n"
22392239
"\nExamples:\n"
@@ -2328,8 +2328,6 @@ UniValue listunspent(const UniValue& params, bool fHelp)
23282328
"\nReturns array of unspent transaction outputs\n"
23292329
"with between minconf and maxconf (inclusive) confirmations.\n"
23302330
"Optionally filter to only include txouts paid to specified addresses.\n"
2331-
"Results are an array of Objects, each of which has:\n"
2332-
"{txid, vout, scriptPubKey, amount, confirmations}\n"
23332331
"\nArguments:\n"
23342332
"1. minconf (numeric, optional, default=1) The minimum confirmations to filter\n"
23352333
"2. maxconf (numeric, optional, default=9999999) The maximum confirmations to filter\n"

0 commit comments

Comments
 (0)