Migrate to zcash-light-client-ffi 0.11.0

This commit is contained in:
Jack Grigg 2024-11-16 10:34:18 +13:00
parent 63a5a2d75c
commit 7f57ca0c17
4 changed files with 8 additions and 12 deletions

View File

@ -176,8 +176,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/Electric-Coin-Company/zcash-light-client-ffi",
"state" : {
"revision" : "7029804dc30d33b689fb8da712c1172daf8e402e",
"version" : "0.10.2"
"revision" : "31a97a1478bc0354abdf208722b670f7fd3d9f8c",
"version" : "0.11.0"
}
}
],

View File

@ -122,8 +122,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/Electric-Coin-Company/zcash-light-client-ffi",
"state" : {
"revision" : "7029804dc30d33b689fb8da712c1172daf8e402e",
"version" : "0.10.2"
"revision" : "31a97a1478bc0354abdf208722b670f7fd3d9f8c",
"version" : "0.11.0"
}
}
],

View File

@ -16,7 +16,7 @@ let package = Package(
dependencies: [
.package(url: "https://github.com/grpc/grpc-swift.git", from: "1.23.0"),
.package(url: "https://github.com/stephencelis/SQLite.swift.git", from: "0.15.3"),
.package(url: "https://github.com/Electric-Coin-Company/zcash-light-client-ffi", exact: "0.10.2")
.package(url: "https://github.com/Electric-Coin-Company/zcash-light-client-ffi", exact: "0.11.0")
],
targets: [
.target(

View File

@ -27,7 +27,6 @@ enum RustLogging: String {
struct ZcashRustBackend: ZcashRustBackendWelding {
let minimumConfirmations: UInt32 = 10
let minimumShieldingConfirmations: UInt32 = 1
let useZIP317Fees = true
let dbData: (String, UInt)
let fsBlockDbRoot: (String, UInt)
@ -162,8 +161,7 @@ struct ZcashRustBackend: ZcashRustBackendWelding {
value,
memo?.bytes,
networkType.networkId,
minimumConfirmations,
useZIP317Fees
minimumConfirmations
)
guard let proposal else {
@ -189,8 +187,7 @@ struct ZcashRustBackend: ZcashRustBackendWelding {
account,
[CChar](uri.utf8CString),
networkType.networkId,
minimumConfirmations,
useZIP317Fees
minimumConfirmations
)
guard let proposal else {
@ -763,8 +760,7 @@ struct ZcashRustBackend: ZcashRustBackendWelding {
UInt64(shieldingThreshold.amount),
transparentReceiver.map { [CChar]($0.utf8CString) },
networkType.networkId,
minimumShieldingConfirmations,
useZIP317Fees
minimumShieldingConfirmations
)
guard let proposal else {