Skip to content

Commit a0afc3e

Browse files
MarcoFalkecodablock
authored andcommitted
Merge bitcoin#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)
1 parent 7b25879 commit a0afc3e

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
@@ -307,7 +307,7 @@ def run_test (self):
307307
# Check that the txid and balance is found by node1
308308
self.nodes[1].gettransaction(cbTxId)
309309

310-
#check if wallet or blochchain maintenance changes the balance
310+
# check if wallet or blockchain maintenance changes the balance
311311
self.sync_all()
312312
blocks = self.nodes[0].generate(2)
313313
self.sync_all()
@@ -333,7 +333,8 @@ def run_test (self):
333333
'-reindex',
334334
'-zapwallettxes=1',
335335
'-zapwallettxes=2',
336-
'-salvagewallet',
336+
# disabled until issue is fixed: https://github.com/bitcoin/bitcoin/issues/7463
337+
# '-salvagewallet',
337338
]
338339
for m in maintenance:
339340
print("check " + m)
@@ -353,4 +354,4 @@ def run_test (self):
353354
assert_equal(len(self.nodes[0].listsinceblock(blocks[1])["transactions"]), 0)
354355

355356
if __name__ == '__main__':
356-
WalletTest ().main ()
357+
WalletTest().main()

src/wallet/rpcwallet.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2353,7 +2353,7 @@ UniValue settxfee(const UniValue& params, bool fHelp)
23532353
"settxfee amount\n"
23542354
"\nSet the transaction fee per kB. Overwrites the paytxfee parameter.\n"
23552355
"\nArguments:\n"
2356-
"1. amount (numeric or sting, required) The transaction fee in " + CURRENCY_UNIT + "/kB\n"
2356+
"1. amount (numeric or string, required) The transaction fee in " + CURRENCY_UNIT + "/kB\n"
23572357
"\nResult\n"
23582358
"true|false (boolean) Returns true if successful\n"
23592359
"\nExamples:\n"
@@ -2538,8 +2538,6 @@ UniValue listunspent(const UniValue& params, bool fHelp)
25382538
"\nReturns array of unspent transaction outputs\n"
25392539
"with between minconf and maxconf (inclusive) confirmations.\n"
25402540
"Optionally filter to only include txouts paid to specified addresses.\n"
2541-
"Results are an array of Objects, each of which has:\n"
2542-
"{txid, vout, scriptPubKey, amount, confirmations}\n"
25432541
"\nArguments:\n"
25442542
"1. minconf (numeric, optional, default=1) The minimum confirmations to filter\n"
25452543
"2. maxconf (numeric, optional, default=9999999) The maximum confirmations to filter\n"

0 commit comments

Comments
 (0)