Enable high-priority alerts to put the RPC into safe mode
This reverts the changes in 986b5e257e and adds a
priority check.
Closes #1106
This commit is contained in:
@@ -41,7 +41,7 @@ void CUnsignedAlert::SetNull()
|
||||
|
||||
strComment.clear();
|
||||
strStatusBar.clear();
|
||||
strReserved.clear();
|
||||
strRPCError.clear();
|
||||
}
|
||||
|
||||
std::string CUnsignedAlert::ToString() const
|
||||
@@ -66,6 +66,7 @@ std::string CUnsignedAlert::ToString() const
|
||||
" nPriority = %d\n"
|
||||
" strComment = \"%s\"\n"
|
||||
" strStatusBar = \"%s\"\n"
|
||||
" strRPCError = \"%s\"\n"
|
||||
")\n",
|
||||
nVersion,
|
||||
nRelayUntil,
|
||||
@@ -78,7 +79,8 @@ std::string CUnsignedAlert::ToString() const
|
||||
strSetSubVer,
|
||||
nPriority,
|
||||
strComment,
|
||||
strStatusBar);
|
||||
strStatusBar,
|
||||
strRPCError);
|
||||
}
|
||||
|
||||
void CAlert::SetNull()
|
||||
|
||||
Reference in New Issue
Block a user