diff options
author | Russell Yanofsky <russ@yanofsky.org> | 2021-01-29 18:09:46 -0500 |
---|---|---|
committer | Russell Yanofsky <russ@yanofsky.org> | 2021-01-29 18:09:46 -0500 |
commit | 6158a6d3978a18d5ac4166ca2f59056d8ef71c3d (patch) | |
tree | 13a8ad94af645984bb524c0a3e0db638b10f0430 /src/rpc/request.h | |
parent | 80e16cadd56ca73b94b01c5cd98a325fe9d89bf3 (diff) |
refactor: Replace JSONRPCRequest fHelp field with mode field
No change in behavior
Diffstat (limited to 'src/rpc/request.h')
-rw-r--r-- | src/rpc/request.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rpc/request.h b/src/rpc/request.h index de3a4ae840..1751c24cd3 100644 --- a/src/rpc/request.h +++ b/src/rpc/request.h @@ -34,19 +34,19 @@ public: UniValue id; std::string strMethod; UniValue params; - bool fHelp; + enum Mode { EXECUTE, GET_HELP } mode = EXECUTE; std::string URI; std::string authUser; std::string peerAddr; const util::Ref& context; - explicit JSONRPCRequest(const util::Ref& context) : id(NullUniValue), params(NullUniValue), fHelp(false), context(context) {} + explicit JSONRPCRequest(const util::Ref& context) : id(NullUniValue), params(NullUniValue), context(context) {} //! Initializes request information from another request object and the //! given context. The implementation should be updated if any members are //! added or removed above. JSONRPCRequest(const JSONRPCRequest& other, const util::Ref& context) - : id(other.id), strMethod(other.strMethod), params(other.params), fHelp(other.fHelp), URI(other.URI), + : id(other.id), strMethod(other.strMethod), params(other.params), mode(other.mode), URI(other.URI), authUser(other.authUser), peerAddr(other.peerAddr), context(context) { } |