http: switch servers from libevent to bitcoin

This commit is contained in:
Matthew Zipkin
2025-01-15 15:44:16 -05:00
parent cbb8d1fb33
commit 21c7542cf8
8 changed files with 44 additions and 58 deletions

View File

@@ -26,8 +26,7 @@
#include <string>
#include <vector>
using http_libevent::EventBase;
using http_libevent::HTTPRequest;
using http_bitcoin::HTTPRequest;
using util::SplitString;
using util::TrimStringView;
@@ -349,8 +348,6 @@ bool StartHTTPRPC(const std::any& context)
if (g_wallet_init_interface.HasWalletSupport()) {
RegisterHTTPHandler("/wallet/", false, handle_rpc);
}
struct event_base* eventBase = EventBase();
assert(eventBase);
return true;
}