Skip to content

Testing the new potential kyoto client#965

Open
thunderbiscuit wants to merge 1 commit intobitcoindevkit:masterfrom
thunderbiscuit:new-kyoto
Open

Testing the new potential kyoto client#965
thunderbiscuit wants to merge 1 commit intobitcoindevkit:masterfrom
thunderbiscuit:new-kyoto

Conversation

@thunderbiscuit
Copy link
Copy Markdown
Member

@thunderbiscuit thunderbiscuit commented Mar 5, 2026

Trying to connect the dots from bdk_kyoto all the way to the the bindings.

bitcoindevkit/bdk-kyoto#146

@rustaceanrob
Copy link
Copy Markdown
Collaborator

Do we know why CI is failing?

@thunderbiscuit
Copy link
Copy Markdown
Member Author

CI failing because we don't have the required regtest environment for the tests to run on, but if you run them locally they work well!

Working on this in #966 and #967. If/once we have a Regtest setup in CI, the tests here will pass.

// println("Hello, Compact Block Filters!")
// val regtestEnv = RegEnv.connectTo(walletName = "faucet", username = "regtest", password = "password")

val wallet: Wallet = Wallet.createSingle(
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this use a regtest descriptor here? wondering because from what I see BIP86_DESCRIPTOR is created with Network.TESTNET but the wallet is initialized with Network.REGTEST

wallet.applyUpdate(update)

val balance = wallet.balance().total.toSat()
assert(balance > 0uL)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this use a real test assertion and reenable the funding/mine steps, I think the wallet is never funded and the final assert(...) may be skipped so the test can pass without validating Kyoto sync? Maybe im wrong though

Copy link
Copy Markdown
Collaborator

@reez reez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good overall and consistent w bdk kyoto, a couple questions comments added

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

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

3 participants