(openchannel2, plugin, **kwargs)
| 21 | |
| 22 | @plugin.hook('openchannel2') |
| 23 | def on_openchannel2(openchannel2, plugin, **kwargs): |
| 24 | delaytime = float(plugin.get_option('delaytime')) |
| 25 | msg = f'delaying WIRE_ACCEPT_CHANNEL for {delaytime}s' |
| 26 | plugin.log(msg) |
| 27 | time.sleep(delaytime) |
| 28 | return {'result': 'continue'} |
| 29 | |
| 30 | |
| 31 | plugin.add_option('delaytime', '10', 'How long to hold the WIRE_OPEN_CHANNEL.') |
nothing calls this directly
no test coverage detected