[#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
This commit is contained in:
Francisco Gindre 2022-11-16 20:27:12 -03:00
parent 07d918bd0d
commit 725e5ff291
1 changed files with 5 additions and 3 deletions

View File

@ -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
)
}
}