aboutsummaryrefslogtreecommitdiff
path: root/rpc.cpp
diff options
context:
space:
mode:
authorSatoshi Nakamoto <[email protected]>2010-08-13 02:23:46 +0000
committerGavin Andresen <[email protected]>2010-08-13 02:23:46 +0000
commit7f71fd13ae5c61bf844591d93e74803e85601931 (patch)
treea9cb89da3ab6261fc5fbf2cdeee70edce373c2e0 /rpc.cpp
parentfix build, thanks jgarzik (diff)
downloaddiscoin-7f71fd13ae5c61bf844591d93e74803e85601931.tar.xz
discoin-7f71fd13ae5c61bf844591d93e74803e85601931.zip
fix -datadir=./subdir relative path,
autostart off by default except on windows, fix occasional "vector iterator not dereferencable" assertion with msvc, fix readlink compile warning on linux build, use sys/param.h and BSD define instead of __BSD__, -paytxfee switch
Diffstat (limited to 'rpc.cpp')
-rw-r--r--rpc.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/rpc.cpp b/rpc.cpp
index 6ac4f5577..920fe900b 100644
--- a/rpc.cpp
+++ b/rpc.cpp
@@ -974,8 +974,8 @@ void ThreadRPCServer2(void* parg)
printf("ThreadRPCServer method=%s\n", strMethod.c_str());
// Observe lockdown
- if (IsLockdown() && strMethod != "help" && strMethod != "stop" && strMethod != "getgenerate" && strMethod != "setgenerate")
- throw runtime_error("WARNING: Displayed transactions may not be correct! You may need to upgrade.");
+ if (IsLockdown() && !mapArgs.count("-overridesafety") && strMethod != "help" && strMethod != "stop" && strMethod != "getgenerate" && strMethod != "setgenerate")
+ throw runtime_error("WARNING: Displayed transactions may not be correct! You may need to upgrade, or other nodes may need to upgrade.");
// Execute
map<string, rpcfn_type>::iterator mi = mapCallTable.find(strMethod);