mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-21 07:39:08 +01:00
new safety feature displays a warning message and locks down RPC if it detects a problem that may require an upgrade
-- version 0.3.8
This commit is contained in:
committed by
Gavin Andresen
parent
73aa262647
commit
b34e8c3c36
4
rpc.cpp
4
rpc.cpp
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user