Skip to content

Unarchive historian #687

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Aug 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ Community curated plugins for Core-Lightning.
| [feeadjuster][feeadjuster] | Dynamic fees to keep your channels more balanced | ![](https://img.shields.io/endpoint?url=https%3A%2F%2Flightningd.github.io%2Fplugins%2F.badges%2Ffeeadjuster_24.11.json) ![](https://img.shields.io/endpoint?url=https%3A%2F%2Flightningd.github.io%2Fplugins%2F.badges%2Ffeeadjuster_25.02.json) ![](https://img.shields.io/endpoint?url=https%3A%2F%2Flightningd.github.io%2Fplugins%2F.badges%2Ffeeadjuster_25.05.json) ![](https://img.shields.io/endpoint?url=https%3A%2F%2Flightningd.github.io%2Fplugins%2F.badges%2Ffeeadjuster_nightly.json) |
| [go-lnmetrics.reporter][reporter] | Collect and report of the lightning node metrics | ![](https://img.shields.io/endpoint?url=https%3A%2F%2Flightningd.github.io%2Fplugins%2F.badges%2Fgo-lnmetrics.reporter_24.11.json) ![](https://img.shields.io/endpoint?url=https%3A%2F%2Flightningd.github.io%2Fplugins%2F.badges%2Fgo-lnmetrics.reporter_25.02.json) ![](https://img.shields.io/endpoint?url=https%3A%2F%2Flightningd.github.io%2Fplugins%2F.badges%2Fgo-lnmetrics.reporter_25.05.json) ![](https://img.shields.io/endpoint?url=https%3A%2F%2Flightningd.github.io%2Fplugins%2F.badges%2Fgo-lnmetrics.reporter_nightly.json) |
| [graphql][graphql] | Exposes the Core-Lightning API over [graphql][graphql-spec] | ![](https://img.shields.io/endpoint?url=https%3A%2F%2Flightningd.github.io%2Fplugins%2F.badges%2Fgraphql_24.11.json) ![](https://img.shields.io/endpoint?url=https%3A%2F%2Flightningd.github.io%2Fplugins%2F.badges%2Fgraphql_25.02.json) ![](https://img.shields.io/endpoint?url=https%3A%2F%2Flightningd.github.io%2Fplugins%2F.badges%2Fgraphql_25.05.json) ![](https://img.shields.io/endpoint?url=https%3A%2F%2Flightningd.github.io%2Fplugins%2F.badges%2Fgraphql_nightly.json) |
| [historian][historian] | Gossip message archiver | ![](https://img.shields.io/endpoint?url=https%3A%2F%2Flightningd.github.io%2Fplugins%2F.badges%2Fhistorian_24.11.json) ![](https://img.shields.io/endpoint?url=https%3A%2F%2Flightningd.github.io%2Fplugins%2F.badges%2Fhistorian_25.02.json) ![](https://img.shields.io/endpoint?url=https%3A%2F%2Flightningd.github.io%2Fplugins%2F.badges%2Fhistorian_25.05.json) ![](https://img.shields.io/endpoint?url=https%3A%2F%2Flightningd.github.io%2Fplugins%2F.badges%2Fhistorian_nightly.json) |
| [hold][hold] | Hold invoices that do not require the preimage to be known when created | ![](https://img.shields.io/endpoint?url=https%3A%2F%2Flightningd.github.io%2Fplugins%2F.badges%2Fhold_24.11.json) ![](https://img.shields.io/endpoint?url=https%3A%2F%2Flightningd.github.io%2Fplugins%2F.badges%2Fhold_25.02.json) ![](https://img.shields.io/endpoint?url=https%3A%2F%2Flightningd.github.io%2Fplugins%2F.badges%2Fhold_25.05.json) ![](https://img.shields.io/endpoint?url=https%3A%2F%2Flightningd.github.io%2Fplugins%2F.badges%2Fhold_nightly.json) |
| [holdinvoice][holdinvoice] | Holds htlcs for invoices until settle or cancel is called (aka Hodlinvoices) via RPC/GRPC | ![](https://img.shields.io/endpoint?url=https%3A%2F%2Flightningd.github.io%2Fplugins%2F.badges%2Fholdinvoice_24.11.json) ![](https://img.shields.io/endpoint?url=https%3A%2F%2Flightningd.github.io%2Fplugins%2F.badges%2Fholdinvoice_25.02.json) ![](https://img.shields.io/endpoint?url=https%3A%2F%2Flightningd.github.io%2Fplugins%2F.badges%2Fholdinvoice_25.05.json) ![](https://img.shields.io/endpoint?url=https%3A%2F%2Flightningd.github.io%2Fplugins%2F.badges%2Fholdinvoice_nightly.json) |
| [invoice-queue][Lightning-Invoice-Queue] | Listen to lightning invoices from multiple nodes and send to a redis queue for processing | ![](https://img.shields.io/endpoint?url=https%3A%2F%2Flightningd.github.io%2Fplugins%2F.badges%2FLightning-Invoice-Queue_24.11.json) ![](https://img.shields.io/endpoint?url=https%3A%2F%2Flightningd.github.io%2Fplugins%2F.badges%2FLightning-Invoice-Queue_25.02.json) ![](https://img.shields.io/endpoint?url=https%3A%2F%2Flightningd.github.io%2Fplugins%2F.badges%2FLightning-Invoice-Queue_25.05.json) ![](https://img.shields.io/endpoint?url=https%3A%2F%2Flightningd.github.io%2Fplugins%2F.badges%2FLightning-Invoice-Queue_nightly.json) |
Expand Down Expand Up @@ -233,6 +234,7 @@ more detailed description (if any)
[go-api]: https://github.com/niftynei/glightning
[graphql]: https://github.com/nettijoe96/c-lightning-graphql
[graphql-spec]: https://graphql.org/
[historian]: https://github.com/lightningd/plugins/tree/master/historian
[hold]: https://github.com/BoltzExchange/hold
[holdinvoice]: https://github.com/daywalker90/holdinvoice
[java-api]: https://github.com/clightning4j/JRPClightning
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions archived/historian/historian.py → historian/historian.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ def rabbitmq_connect(self):
params = pika.URLParameters(self.RABBITMQ_URL)
self.connection = pika.BlockingConnection(params) # default, localhost
self.channel = self.connection.channel()
self.channel.exchange_declare(exchange='router.gossip', exchange_type='fanout')
plugin.log(f"message queue connected to {params.host}:{params.port}")

def run(self):
Expand Down
85 changes: 55 additions & 30 deletions archived/historian/poetry.lock → historian/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 22 additions & 3 deletions archived/historian/pyproject.toml → historian/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,28 @@
[tool.poetry]
name = "cln-historian"
[project]
name = "historian"
version = "0.1.0"
description = "A plugin to store historical Lightning Network gossip in a database."
authors = ["Christian Decker <[email protected]>"]
readme = "README.md"
authors = [{name = "Christian Decker", email = "<[email protected]>"}]
license = "MIT"
requires-python = ">=3.9"
dependencies = [
"inotify>=0.2.12",
"pika>=1.3.2",
"pyln-client>=24.2",
"python-dotenv>=1.1.0",
"sqlalchemy>=2.0.40",
]

[dependency-groups]
dev = [
"pyln-testing>=24.2",
"pytest-rerunfailures>=10.3",
"pytest-timeout>=2.1.0",
"pytest-xdist>=3.1.0",
]

[tool.poetry]

[tool.poetry.dependencies]
python = "^3.9"
Expand Down
File renamed without changes.
Loading