Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

One step toward wallet locking #2925

Merged
merged 4 commits into from
Nov 11, 2019

Commits on Nov 6, 2019

  1. Configuration menu
    Copy the full SHA
    f66228c View commit details
    Browse the repository at this point in the history

Commits on Nov 7, 2019

  1. lightningd/jsonrpc: Add a 'rpc_command' hook

    The 'rpc_command' hook allows a plugin to take over any RPC command.
    It sends the complete JSONRPC request to the plugin, which can then respond
    with :
    - {'continue'}: executes the command normally
    - {'replace': {a_jsonrpc_request}}: replaces the request made
    - {'return': {'result': {}}}: send a custom response
    - {'return': {'error': {}}}: send a custom error
    
    This way, a plugin can modify (/reimplement) or restrict the usage of
    any of `lightningd`'s commands.
    
    Changelog-Added: Plugin: A new plugin hook, `rpc_command` allows a plugin to take over `lightningd` for any RPC command.
    darosior committed Nov 7, 2019
    Configuration menu
    Copy the full SHA
    1214724 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    eecc2ff View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    640f949 View commit details
    Browse the repository at this point in the history