qa/rpc-tests/wallet.sh runs a three-node -regtest network, generates a fresh blockchain, and then exercises basic wallet sending/receiving functionality using command-line RPC.
Depends on #3294
qa/rpc-tests/wallet.sh runs a three-node -regtest network, generates a fresh blockchain, and then exercises basic wallet sending/receiving functionality using command-line RPC.
Depends on #3294
190 | + } 191 | + } 192 | + } 193 | + else // Not -regtest: start generate thread, return immediately 194 | + { 195 | + mapArgs["-gen"] = (fGenerate ? "1" : "0");
As the setgenerate command was set to no longer require a wallet, shouldn't a check for pWalletMain be added here? (or can the mining thread run without wallet as well, I wouldn't know for sure)
Good catch, I believe it should check for a non-null wallet.
144 | @@ -144,21 +145,54 @@ Value setgenerate(const Array& params, bool fHelp) 145 | + HelpExampleRpc("setgenerate", "true, 1") 146 | ); 147 | 148 | + if (pwalletMain == NULL) 149 | + throw JSONRPCError(RPC_METHOD_NOT_FOUND, "Method not found (disabled)");
But if you put a check here, the regtest specific setgenerate will also no longer work without wallet, which was the point of changing fReqWallet in the big table, I suppose, or am I missing something?
I needed to set fReqWallet to false so the wallet mutex is not acquired, avoiding deadlock with the mining thread.
OK, ACK then
This probably could use a rebase as cdb6960 and b4feb33 have been merged.
qa/rpc-tests/wallet.sh runs a three-node -regtest network,
generates a fresh blockchain, and then exercises basic wallet
sending/receiving functionality using command-line RPC.
Automatic sanity-testing: PASSED, see http://jenkins.bluematt.me/pull-tester/9e7776bf1f1aebbd6e1ef21a4144ba72a54985de for binaries and test log. This test script verifies pulls every time they are updated. It, however, dies sometimes and fails to test properly. If you are waiting on a test, please check timestamps to verify that the test.log is moving at http://jenkins.bluematt.me/pull-tester/current/ Contact BlueMatt on freenode if something looks broken.