-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Boss/Mod/CommandReceiver.cpp: Handle
rpc_command
at this level, to …
…increase our responsiveness.
- Loading branch information
Showing
6 changed files
with
68 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#ifndef BOSS_MSG_RPCCOMMANDHOOK_HPP | ||
#define BOSS_MSG_RPCCOMMANDHOOK_HPP | ||
|
||
#include"Jsmn/Object.hpp" | ||
|
||
namespace Boss { namespace Msg { | ||
|
||
/** struct Boss::Msg::RpcCommandHook | ||
* | ||
* @brief Emitted in response to the `lightningd` receiving | ||
* an RPC command. | ||
* | ||
* @desc This does not require or wait for a response: the | ||
* `Boss::Mod::CommandReceiver` specially treats `rpc_command` | ||
* hooks and responds to those immediately. | ||
* After responding, the `CommandReceiver` emits this message. | ||
*/ | ||
struct RpcCommandHook { | ||
Jsmn::Object params; | ||
}; | ||
|
||
}} | ||
|
||
#endif /* !defined(BOSS_MSG_RPCCOMMANDHOOK_HPP) */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters