OSDN Git Service

RPC: prevent crash with walletpassphrase
authormonacoinproject <monacoinproject@gmail.com>
Sun, 6 Apr 2014 13:56:52 +0000 (22:56 +0900)
committermonacoinproject <monacoinproject@gmail.com>
Sun, 6 Apr 2014 13:56:52 +0000 (22:56 +0900)
commitc7e4214d661b73c2c87c18a53fe809d06a123860
treed40ba797231207a856f9fbbe9e355aa50737f121
parente9123acac46e32f4d0c42cf16f17ee790b3a9acd
RPC: prevent crash with walletpassphrase

- fix crash with walletpassphrase by checking if RPC server is running
and
give a friendly error message how to fix this (fixes #3100)
- add 3 new RPCErrorCodes RPC_SERVER_NOT_STARTED
- use the new code where needed / missing

Upstream: 4315ec1

Conflicts:
src/rpcnet.cpp
src/rpcwallet.cpp
src/bitcoinrpc.h
src/rpcwallet.cpp