From 725e5ff2911f71fd92453de098f6072d394bbd6c Mon Sep 17 00:00:00 2001 From: Francisco Gindre Date: Wed, 16 Nov 2022 20:27:12 -0300 Subject: [PATCH] [#634] Set ZIP-317 flag on sending and shielding as false for 0.17.0 Closes #634 This turns off ZIP-317 fee strategy in favor of ZIP-313 fixed fees until this can be tested thoroughly --- Sources/ZcashLightClientKit/Rust/ZcashRustBackend.swift | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Sources/ZcashLightClientKit/Rust/ZcashRustBackend.swift b/Sources/ZcashLightClientKit/Rust/ZcashRustBackend.swift index 65df795a..f5bb2821 100644 --- a/Sources/ZcashLightClientKit/Rust/ZcashRustBackend.swift +++ b/Sources/ZcashLightClientKit/Rust/ZcashRustBackend.swift @@ -11,7 +11,7 @@ import libzcashlc class ZcashRustBackend: ZcashRustBackendWelding { static let minimumConfirmations: UInt32 = 10 - + static let useZIP317Fees = false static func createAccount(dbData: URL, seed: [UInt8], networkType: NetworkType) throws -> UnifiedSpendingKey { let dbData = dbData.osStr() @@ -57,7 +57,8 @@ class ZcashRustBackend: ZcashRustBackendWelding { outputParamsPath, UInt(outputParamsPath.lengthOfBytes(using: .utf8)), networkType.networkId, - minimumConfirmations + minimumConfirmations, + useZIP317Fees ) } } @@ -609,7 +610,8 @@ class ZcashRustBackend: ZcashRustBackendWelding { UInt(spendParamsPath.lengthOfBytes(using: .utf8)), outputParamsPath, UInt(outputParamsPath.lengthOfBytes(using: .utf8)), - networkType.networkId + networkType.networkId, + useZIP317Fees ) } }