bdk icon indicating copy to clipboard operation
bdk copied to clipboard

Unify syncing chain state between BDK-LDK

Open ConorOkus opened this issue 2 years ago • 2 comments

Investigate ways to create a sync method for LDK Listen interface and BDK Wallet/Database

Could potentially re-use the BDK RPC Blockchain as an LDK block source but you'd end up with LDK SPV client polling the block source and BDK's wallet.sync()

Other options might be to have bdk::Blockchain be the source of chain data that lightning-block-sync polls and you can also have bdk::Database (or Wallet) implement LDK's Listen interface to accept updates from lightning-block-sync

ConorOkus avatar Aug 10 '22 18:08 ConorOkus

Hi @ConorOkus I might be missing contexts here. But is this something related to this discussion in discord too https://discord.com/channels/753336465005608961/998961455363805184/1007350145173692416??

rajarshimaitra avatar Aug 15 '22 13:08 rajarshimaitra

@rajarshimaitra sorry for the late reply, I don't think this is particularly specific to CBF. There is a related issue for this on the LDKLite repo - https://github.com/lightningdevkit/ldk-lite/issues/3 @tnull is working one

ConorOkus avatar Aug 29 '22 10:08 ConorOkus

https://github.com/lightningdevkit/ldk-lite/pull/9/files

ConorOkus avatar Oct 26 '22 13:10 ConorOkus

The next version of bdk (0.24.0) should be released next week and will include the latest version of rust-esplora-client(0.2.0) and latest rust-bitcoin (0.29) and rust-miniscript (8.0). More details on the release in #787.

notmandatory avatar Oct 27 '22 02:10 notmandatory

https://github.com/bitcoindevkit/.github/issues/51

ConorOkus avatar Mar 27 '23 14:03 ConorOkus