Skip to content

Conversation

@Jasonvdb
Copy link
Contributor

  • Updates BDK to 1.0.0-alpha.11
  • Separate sync functions for fullScan() (used for restoring or manually rescanning wallet) and syncWithRevealedSpks() (used for refreshing the wallet and only scanning addresses that have been exposed)
  • Performance logging for all functions executed on a service queue
  • On chain wallet restore

Notes:
Currently looks like alpha release is missing wallet data persistence after syncing so balance is missing until refreshed each tie app is open. Waiting on the beta release for bdk-ffi for this as building straight from master is currently broken.

@Jasonvdb Jasonvdb requested a review from ovitrif August 13, 2024 17:33
static func createNewWallet(bip39Passphrase: String?, walletIndex: Int = 0) throws -> String {
let mnemonic = Mnemonic(wordCount: Env.defaultWalletWordCount).asString()

Copy link
Collaborator

Choose a reason for hiding this comment

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

Sir, can you please use SwiftFormat? It has a nice extension that auto-formats on ⌘ S in XCode: SwiftFormat for Xcode.

If anything, to make it simple, we can go with the default config so no time is wasted on configuring it.

Reason:
Trailing and random whitespaces are not nice.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah no problem sounds good. Made an issue here I'll do a separate PR with just the formatting updates.

@ovitrif ovitrif mentioned this pull request Aug 14, 2024
2 tasks
@Jasonvdb Jasonvdb mentioned this pull request Aug 14, 2024
@Jasonvdb Jasonvdb merged commit 0fcc276 into master Aug 14, 2024
@Jasonvdb Jasonvdb deleted the bdk-1.0 branch August 14, 2024 14:50
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.

3 participants