Skip to content

Historian update #669

New issue

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

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

Already on GitHub? # to your account

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

endothermicdev
Copy link
Contributor

This brings the historian plugin up to date:

  • updates the dependencies of historian
  • handles dns addresses in node announcements
  • ignores the dying flag (closing channels that may in fact be in splice) in gossip store message headers
  • filters out all private gossip types (for older CLN nodes)

It also adds the ability to publish to a message queue if the RABBITMQ_URL environment variable is set. (This is how Greenlight consumes gossip, so it's really useful to have it built into the plugin.)

sqlalchemy, inotify and python-dotenv.
This was causing the message length to be misread.
enum gossip_store_wire {
        /*  This always follows the channel_announce / private_announce */
        WIRE_GOSSIP_STORE_CHANNEL_AMOUNT = 4101,
        /*  Mimics a channel_announce */
        WIRE_GOSSIP_STORE_PRIVATE_CHANNEL_OBS = 4104,
        WIRE_GOSSIP_STORE_PRIVATE_UPDATE_OBS = 4102,
        WIRE_GOSSIP_STORE_DELETE_CHAN = 4103,
        WIRE_GOSSIP_STORE_ENDED = 4105,
        WIRE_GOSSIP_STORE_CHAN_DYING = 4106,
};
This can by used to consume the gossip directly from a message queue.
@chrisguida
Copy link
Collaborator

@endothermicdev are you planning to maintain this plugin? If so, you should un-archive it.

  • remove it from archived.md
  • put it back in README.md and add the CI badges like the rest of the plugins
  • make sure the tests are passing
  • move its source out of archived/ and into the top-level dir

It would be great to see this plugin return to its former glory! ❤️

Avoid the error:
plugin-historian.py: sqlite3.OperationalError: database is locked
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants