mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-12-29 10:04:41 +01:00
27 lines
435 B
Python
27 lines
435 B
Python
|
#!/usr/bin/env python3
|
||
|
"""
|
||
|
This registers part of the Bitcoin backend methods.
|
||
|
We only use it for testing startup and we don't care about the actual values.
|
||
|
"""
|
||
|
import time
|
||
|
|
||
|
from pyln.client import Plugin
|
||
|
|
||
|
|
||
|
plugin = Plugin()
|
||
|
|
||
|
|
||
|
@plugin.method("sendrawtransaction")
|
||
|
def sendtx(plugin, **kwargs):
|
||
|
time.sleep(1)
|
||
|
return {}
|
||
|
|
||
|
|
||
|
@plugin.method("getutxout")
|
||
|
def gettxout(plugin, **kwargs):
|
||
|
time.sleep(1)
|
||
|
return {}
|
||
|
|
||
|
|
||
|
plugin.run()
|