1#!/usr/bin/env python3
2from pyln.client import Plugin
3
4"""A simple plugin that registers an htlc_accepted hook..
5"""
6plugin = Plugin()
7
8
9@plugin.hook('htlc_accepted')
10def on_htlc_accepted(htlc, plugin, **kwargs):
11    print("htlc_accepted called")
12    return {'result': 'continue'}
13
14
15plugin.run()
16