Skip to content

Instantly share code, notes, and snippets.

@kiwiidb
kiwiidb / hodl-invoice.py
Last active November 1, 2022 08:42 — forked from MrHash/hodl-invoice.py
c-lightning hodl invoice plugin example only
#!/usr/bin/env python3
from lightning.plugin import Plugin
import json
plugin = Plugin()
heldinvoices = dict()
@plugin.init()
def init(options, configuration, plugin):
plugin.log("Plugin hodl-invoice initialized")