Files
Davide Grilli 37cc8b9cf9
Some checks failed
Coverage (Nightly) / Build with Coverage (push) Has been cancelled
Coverage (Nightly) / Test (postgres) (push) Has been cancelled
Coverage (Nightly) / Test (sqlite) (push) Has been cancelled
Coverage (Nightly) / Generate Coverage Report (push) Has been cancelled
Repro Build Nightly / Ubuntu repro build: focal (push) Has been cancelled
Repro Build Nightly / Ubuntu repro build: jammy (push) Has been cancelled
Repro Build Nightly / Ubuntu repro build: noble (push) Has been cancelled
Python API Docs (Nightly) / Generate Python API Documentation (push) Has been cancelled
Documentation (Nightly) / Generate Project Documentation (push) Has been cancelled
Publish Documentation Site / Generate Coverage Reports (push) Has been cancelled
Publish Documentation Site / Generate Python API Documentation (push) Has been cancelled
Publish Documentation Site / Generate Project Documentation (push) Has been cancelled
Publish Documentation Site / Deploy to GitHub Pages (push) Has been cancelled
feat: Update network references from bitcoin to palladium and add palladiumd RPC warmup retry logic.
2026-02-20 16:15:16 +01:00

39 lines
816 B
Python
Executable File

#!/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("estimatefees")
def getfeerate(plugin, **kwargs):
time.sleep(1)
return {}
@plugin.method("getrawblockbyheight")
def getblock(plugin, **kwargs):
time.sleep(1)
return {}
@plugin.method("getchaininfo")
def getchaininfo(plugin, **kwargs):
time.sleep(1)
return {}
# We don't use these options, but it allows us to get to the expected failure.
plugin.add_option("palladium-rpcuser", "", "")
plugin.add_option("palladium-rpcpassword", "", "")
plugin.add_option("palladium-rpcport", "", "")
plugin.add_option("palladium-datadir", "", "")
plugin.run()