mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-12-28 01:24:42 +01:00
32de621886
Fixes: #4219 Changelog-Changed: Plugins: Multiple plugins can now register `db_write` hooks.
17 lines
294 B
Python
Executable File
17 lines
294 B
Python
Executable File
#! /usr/bin/env python3
|
|
'''This plugin is a do-nothing backup plugin which just checks that we
|
|
can handle multiple backup plugins.
|
|
'''
|
|
|
|
from pyln.client import Plugin
|
|
|
|
plugin = Plugin()
|
|
|
|
|
|
@plugin.hook('db_write')
|
|
def db_write(plugin, **kwargs):
|
|
return {'result': 'continue'}
|
|
|
|
|
|
plugin.run()
|