Skip to content

Examples don't show how to properly initialize a IndexedTxGraph etc from disk #1462

Closed

Description

@LLFourn

See example_esplora, example_electrum and example_bitcoind_rpc_polling

  • for some reasons each of these independently apply the initial changeset to the graph (why can't it just be done inside example_cli::init).
  • The initialization is a bit of a mess where the examples insert the descriptors but don't persist them. Are we doing this intentionally? It's an interesting feature that you can actually change the descriptors in the example and not have to delete the database. If we are doing this intentionally then we should explain this.

I think with the example cli we should have an init command which takes in the descriptor assignments and persists them. It would be great if it could also generate a random bip86 descriptor too. Then future calls should require the db has been initialized -- no more environment variables.

  • can we run the cli examples in CI against a regtest node somehow?

Activity

  1. added
    bug
    good first issue
    invalid
    on Jun 6, 2024
  2. added this to the 1.0.0-beta milestone on Jun 6, 2024
  3. added a commit that references this issue on Aug 12, 2024
  4. ValuedMammal commented on Sep 18, 2024

    @ValuedMammal
    Contributor

    @notmandatory This is mostly complete except for

    • can we run the cli examples in CI against a regtest node somehow?

    therefore probably not critical to have for beta but worth keeping open.

  5. notmandatory commented on Sep 18, 2024

    @notmandatory
    Contributor

    @ValuedMammal I agree running against a regtest node would be great but not essential for the 1.0.0-beta milestone, should be in a new issue so we can close this.

  6. ValuedMammal commented on Sep 19, 2024

    @ValuedMammal
    Contributor

    Fixed by #1495, but I'll open an issue to carry over the remaining tasks #1618

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    buggood first issueinvalid

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions