LearnBitcoin

Bitcoin Dev Archive 2021

src/httprpc.cpp InterruptHTTPRPC

2 messages, 12 Aug 2021. Started by Ali Sherief.

Ali Sherief, Jeremy Rubin

Permalink Original thread on gnusha.org

Ali Sherief permalink original

I am using Bitcoin Core's HTTP RPC server as a basis for my own application. While browsing the source code of src/httprpc.cpp, I notice that the InterruptHTTPRPC function https://github.com/bitcoin/bitcoin/blob/7fcf53f7b4524572d1d0c9a5fdc388e87eb02416/src/httprpc.cpp#L310-L314 just calls LogPrint() without doing anything else.

Does the HTTP RPC server support interrupting the event loop at this time, or is this method a stub?

- Ali
Jeremy Rubin in reply to Ali Sherief permalink original

This is probably best to open as an issue in github!