cln: add alternative bitcoin backend config option#583
Closed
elsirion wants to merge 1 commit intofort-nix:masterfrom
Closed
cln: add alternative bitcoin backend config option#583elsirion wants to merge 1 commit intofort-nix:masterfrom
elsirion wants to merge 1 commit intofort-nix:masterfrom
Conversation
5423c18 to
74da216
Compare
Collaborator
|
Stalled PR #533 adds a trustedcoin package and plugin, and clightning module changes that roughly equal this PR. Do you want to pull in the pkg/plugin from #553? |
Contributor
Author
|
I just didn't check the open PRs, this was more of a quickfix for myself that I thought to upstream in case people find it useful. #533 seems like the better design, probably just needs a rebase? |
Contributor
Author
|
Superseded by #597. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Getting a CLN node up and running in pruned mode is annoying and seems impossible when using https://prunednode.today/. It appears the easiest way to bootstrap a CLN node in such an environment is using an alternative chain data plugin like
trustedcointill CLN has processed all relevant blocks and then switching over to the prunedbitcoindagain.With this change users will be able to activate such a plugin with the
alternativeBitcoinBackendoption. If someone ever gets around to properly packagingtrustedcoinwe could make it a normal plugin (that also removes thebitcoin-datadir=${config.services.bitcoind.dataDir}line when active). The current approach is a bit more flexible and you could e.g. write and use your own version oftrustedcoinwith it.Properly packaging
trustedcoinseemed too much work since I don't know go that well, I'm going with the following hack for now: