diff options
| author | Satoshi Nakamoto <[email protected]> | 2010-08-04 01:51:34 +0000 |
|---|---|---|
| committer | Gavin Andresen <[email protected]> | 2010-08-04 01:51:34 +0000 |
| commit | b34e8c3c369331189c01bcbb7682af9d7daa42cd (patch) | |
| tree | e6da267e5bfb4fde1472c32154f73ba7a73b74b7 /rpc.cpp | |
| parent | fixed segfault in bignum.h, additional security limits, refactoring (diff) | |
| download | discoin-b34e8c3c369331189c01bcbb7682af9d7daa42cd.tar.xz discoin-b34e8c3c369331189c01bcbb7682af9d7daa42cd.zip | |
new safety feature displays a warning message and locks down RPC if it detects a problem that may require an upgradev0.3.8
-- version 0.3.8
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()) |