Skip to content

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

@LiranCohen

Description

@LiranCohen

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions