diff options
Diffstat (limited to 'rpc.cpp')
-rw-r--r-- | rpc.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -946,6 +946,10 @@ 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."); + // Execute map<string, rpcfn_type>::iterator mi = mapCallTable.find(strMethod); if (mi == mapCallTable.end()) |