(onion, htlc, plugin, **kwargs)
| 54 | |
| 55 | @plugin.hook("htlc_accepted") |
| 56 | def on_htlc_accepted(onion, htlc, plugin, **kwargs): |
| 57 | plugin.log('on_htlc_accepted called') |
| 58 | time.sleep(20) |
| 59 | return {'result': 'continue'} |
| 60 | |
| 61 | |
| 62 | plugin.add_option('greeting', 'Hello', 'The greeting I should use.') |