-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade to bdk ffi v0.31.0 #72
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was concerned at first that moving every function in a separate thread would break functionality (I vaguely remember something breaking, when I tried that)
However, after compiling the update and checking through every bit of functionality we use at Peach, I can confirm that all keeps working well on Android and iOS 👌
ios/BdkRnModule.swift
Outdated
@@ -472,16 +522,12 @@ class BdkRnModule: NSObject { | |||
resolve: @escaping RCTPromiseResolveBlock, | |||
reject: @escaping RCTPromiseRejectBlock | |||
) { | |||
DispatchQueue.global().async { [self] in | |||
DispatchQueue.main.async { [self] in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On second glance, I found that DispatchQueue.main
is render blocking and very noticeable here as a user, because the UI freezes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interestingly, the change in the PR was meant to avoid UI thread blocking.
Will check your PR and this once again
Unfortunately after the last commit, my app keeps crashing right at startup. |
This is another issue caused by the upgrade: #75 |
Hi @Czino |
else -> { | ||
resolvedIndex = setAddressIndex("new") | ||
} | ||
} | ||
val addressInfo = getWalletById(id).getInternalAddress(setAddressIndex(resolvedIndex)) | ||
|
||
val addressInfo = getWalletById(id).getAddress(setAddressIndex(resolvedIndex)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this change on purpose? The ios/BdkRnModule.swift remains unchanged for this method.
Fixed getInternalAddress typo for Android
[0.31.0]
APIs Changed:
BumpFeeTxBuilder.allowShrinking()
now takes aScript
as its argument.Address
constructor now takes aNetwork
argument.Payload::PubkeyHash
andPayload::ScriptHash
now have string arguments instead of byte arrays.APIs Added:
Address
type now has theisValidForNetwork()
method.[0.30.0]
APIs added
BIP-86
descriptor templates