Skip to content

Fix CLN channel confirmations on regtest#704

Open
KingParmenides wants to merge 1 commit into
stakwork:masterfrom
KingParmenides:fix-cln-channel-confirmations-182
Open

Fix CLN channel confirmations on regtest#704
KingParmenides wants to merge 1 commit into
stakwork:masterfrom
KingParmenides:fix-cln-channel-confirmations-182

Conversation

@KingParmenides
Copy link
Copy Markdown

Fixes #182.

Summary

  • use the local Bitcoind RPC for regtest channel funding transaction status instead of the hard-coded testnet mempool.space endpoint
  • choose the mainnet mempool.space endpoint when the stack network is bitcoin, while keeping testnet as the fallback
  • persist computed inactive channel confirmations and preserve them across channel polling refreshes

Verification

  • npm_config_cache=/private/tmp/npm-cache-swarm npm ci
  • npm run build
  • npm run check (fails on existing repo-wide type errors such as app/src/api/swarm.ts Cmd union entries and EventTarget.value usages)
  • CARGO_HOME=/private/tmp/cargo-home-swarm CARGO_TARGET_DIR=/private/tmp/sphinx-swarm-target PROTOC=/private/tmp/protoc-local/bin/protoc cargo check
  • git diff --check -- app/src/api/btc.ts app/src/api/cmd.ts app/src/api/lnd.ts app/src/helpers/bitcoin.ts app/src/lnd/ChannelRows.svelte app/src/lnd/Channels.svelte src/cmd.rs src/conn/bitcoin/bitcoinrpc.rs src/handler.rs

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

Successfully merging this pull request may close these issues.

Channel shows 0 confirmations in the UI until it hits 3

1 participant