Merge 7b3343f300 into merged_master (Bitcoin PR bitcoin/bitcoin#25108)

This commit is contained in:
James Dorfman 2024-08-13 04:14:39 +00:00
commit 31df518140
40 changed files with 59 additions and 88 deletions

View file

@ -180,10 +180,10 @@ static int AppInitRPC(int argc, char* argv[])
/** Reply structure for request_done to fill in */
struct HTTPReply
{
HTTPReply(): status(0), error(-1) {}
HTTPReply() = default;
int status;
int error;
int status{0};
int error{-1};
std::string body;
};
@ -244,7 +244,7 @@ static void http_error_cb(enum evhttp_request_error err, void *ctx)
class BaseRequestHandler
{
public:
virtual ~BaseRequestHandler() {}
virtual ~BaseRequestHandler() = default;
virtual UniValue PrepareRequest(const std::string& method, const std::vector<std::string>& args) = 0;
virtual UniValue ProcessReply(const UniValue &batch_in) = 0;
};