Skip to content
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

different/changing fee estimates #9

Closed
ghost opened this issue Aug 14, 2021 · 3 comments
Closed

different/changing fee estimates #9

ghost opened this issue Aug 14, 2021 · 3 comments

Comments

@ghost
Copy link

ghost commented Aug 14, 2021

  1. if you type lightning-cli estimatefees multiple times - the fees jump from one second to the other. i guess this is because the 3 esplora instances return different feerates
  2. the estimates are different from what bitcoind would give as a backend which can lead to some side effects (peers not agreeing on fees for example, leading to closed channels)

the first point i could solve with just using one esplora backend (which kind of makes it less reliable if that backend goes bust, but would be kind of okay) - but i am not sure about the second point. would it be possible to use bitcoind for the estimatefees call and the esplora instances for the rest, especially getting the blocks? i would like to use trustedcoin with a pruned bitcoind backend

i also looked into btc-rpx-proxy (which would support getting missing blocks), but failed to run it on openbsd

edit: maybe i could use something like https://github.com/Toorop/go-bitcoind
edit2: maybe i can tweak trustedcoin itself here to get similar feerates

@fiatjaf
Copy link
Collaborator

fiatjaf commented Aug 14, 2021

Yeah, I wanted that too actually. Use bitcoind to publish transactions, get block hashes and estimate fees, but trustedcoin to fetch the full blocks. However that requires an entirely new plugin.

The default bcli thing to be rewritten and then we just swap out the blocks part for the trustedcoin one. It's easy, but I didn't have time yet.

If you want to tackle that, I would recommend maybe copying code from trustedcoin and from this bcli rewrite: https://github.com/niftynei/glightning/blob/master/examples/plugin/pl_btc/btc.go

@ghost
Copy link
Author

ghost commented Aug 14, 2021

awesome - thanks for the link. i will see what i can do and if it is also easy for me to implement. will update here if i have something to show

@ghost
Copy link
Author

ghost commented Aug 15, 2021

i implemented this in the most reckless way (depending only on blockstream.info and not verifying blocks) - it works for some hours now with my node. will probably add something similar used by trustedcoin (more explorers and validate the blocks): https://git.dalliard.ch/trustme/

will close this, because it is not really an issue with trustedcoin

@ghost ghost closed this as completed Aug 15, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant