(openchannel, plugin, **kwargs)
| 12 | |
| 13 | @plugin.hook('openchannel') |
| 14 | def on_openchannel(openchannel, plugin, **kwargs): |
| 15 | delaytime = float(plugin.get_option('delaytime')) |
| 16 | msg = f'delaying WIRE_ACCEPT_CHANNEL for {delaytime}s' |
| 17 | plugin.log(msg) |
| 18 | time.sleep(delaytime) |
| 19 | return {'result': 'continue'} |
| 20 | |
| 21 | |
| 22 | @plugin.hook('openchannel2') |
nothing calls this directly
no test coverage detected