Migrate to zcash-light-client-ffi 0.11.0
This commit is contained in:
parent
63a5a2d75c
commit
7f57ca0c17
|
@ -176,8 +176,8 @@
|
||||||
"kind" : "remoteSourceControl",
|
"kind" : "remoteSourceControl",
|
||||||
"location" : "https://github.com/Electric-Coin-Company/zcash-light-client-ffi",
|
"location" : "https://github.com/Electric-Coin-Company/zcash-light-client-ffi",
|
||||||
"state" : {
|
"state" : {
|
||||||
"revision" : "7029804dc30d33b689fb8da712c1172daf8e402e",
|
"revision" : "31a97a1478bc0354abdf208722b670f7fd3d9f8c",
|
||||||
"version" : "0.10.2"
|
"version" : "0.11.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
|
@ -122,8 +122,8 @@
|
||||||
"kind" : "remoteSourceControl",
|
"kind" : "remoteSourceControl",
|
||||||
"location" : "https://github.com/Electric-Coin-Company/zcash-light-client-ffi",
|
"location" : "https://github.com/Electric-Coin-Company/zcash-light-client-ffi",
|
||||||
"state" : {
|
"state" : {
|
||||||
"revision" : "7029804dc30d33b689fb8da712c1172daf8e402e",
|
"revision" : "31a97a1478bc0354abdf208722b670f7fd3d9f8c",
|
||||||
"version" : "0.10.2"
|
"version" : "0.11.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
|
@ -16,7 +16,7 @@ let package = Package(
|
||||||
dependencies: [
|
dependencies: [
|
||||||
.package(url: "https://github.com/grpc/grpc-swift.git", from: "1.23.0"),
|
.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/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: [
|
targets: [
|
||||||
.target(
|
.target(
|
||||||
|
|
|
@ -27,7 +27,6 @@ enum RustLogging: String {
|
||||||
struct ZcashRustBackend: ZcashRustBackendWelding {
|
struct ZcashRustBackend: ZcashRustBackendWelding {
|
||||||
let minimumConfirmations: UInt32 = 10
|
let minimumConfirmations: UInt32 = 10
|
||||||
let minimumShieldingConfirmations: UInt32 = 1
|
let minimumShieldingConfirmations: UInt32 = 1
|
||||||
let useZIP317Fees = true
|
|
||||||
|
|
||||||
let dbData: (String, UInt)
|
let dbData: (String, UInt)
|
||||||
let fsBlockDbRoot: (String, UInt)
|
let fsBlockDbRoot: (String, UInt)
|
||||||
|
@ -162,8 +161,7 @@ struct ZcashRustBackend: ZcashRustBackendWelding {
|
||||||
value,
|
value,
|
||||||
memo?.bytes,
|
memo?.bytes,
|
||||||
networkType.networkId,
|
networkType.networkId,
|
||||||
minimumConfirmations,
|
minimumConfirmations
|
||||||
useZIP317Fees
|
|
||||||
)
|
)
|
||||||
|
|
||||||
guard let proposal else {
|
guard let proposal else {
|
||||||
|
@ -189,8 +187,7 @@ struct ZcashRustBackend: ZcashRustBackendWelding {
|
||||||
account,
|
account,
|
||||||
[CChar](uri.utf8CString),
|
[CChar](uri.utf8CString),
|
||||||
networkType.networkId,
|
networkType.networkId,
|
||||||
minimumConfirmations,
|
minimumConfirmations
|
||||||
useZIP317Fees
|
|
||||||
)
|
)
|
||||||
|
|
||||||
guard let proposal else {
|
guard let proposal else {
|
||||||
|
@ -763,8 +760,7 @@ struct ZcashRustBackend: ZcashRustBackendWelding {
|
||||||
UInt64(shieldingThreshold.amount),
|
UInt64(shieldingThreshold.amount),
|
||||||
transparentReceiver.map { [CChar]($0.utf8CString) },
|
transparentReceiver.map { [CChar]($0.utf8CString) },
|
||||||
networkType.networkId,
|
networkType.networkId,
|
||||||
minimumShieldingConfirmations,
|
minimumShieldingConfirmations
|
||||||
useZIP317Fees
|
|
||||||
)
|
)
|
||||||
|
|
||||||
guard let proposal else {
|
guard let proposal else {
|
||||||
|
|
Loading…
Reference in New Issue