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

Bitcoin backend plugin fetching a block that doesn't exist #40

Open
LiranCohen opened this issue Jun 12, 2022 · 0 comments
Open

Bitcoin backend plugin fetching a block that doesn't exist #40

LiranCohen opened this issue Jun 12, 2022 · 0 comments

Comments

@LiranCohen
Copy link

I started playing with this during the btc++ hackathon and got stuck on a strange issue.

I wanted to implement a bitcoin backend using the go neutrino library.

I took the scaffold from the example library and figured I'd start by applying those methods using the neutrino library, but for some reason the plugin is trying to fetch a block that doesn't exist using "blockbyheight" after getting to the most recent block, which causes it to blow up.

I'm also not sure why it's calling a blockbyheight starting at some arbitrary height to begin with.
My plugin is waiting for headers to sync during the onInit function.

Was hoping maybe someone could help point me in the right direction.

The code lives here: https://github.com/13x-tech/cln-plugin-test

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