From bb1a05ef5ca4cfc12815e4e1eab3f53e90ba47f3 Mon Sep 17 00:00:00 2001 From: Lukas Korba Date: Thu, 29 Feb 2024 13:31:27 +0100 Subject: [PATCH] Enable ZIP 317 fees Closes Electric-Coin-Company/zcash-swift-wallet-sdk#1186. --- CHANGELOG.md | 7 +++++++ Sources/ZcashLightClientKit/Rust/ZcashRustBackend.swift | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 947fba7a..4e6251f2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,13 @@ and this library adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 # Unreleased +## Changed + +### [#1186] Enable ZIP 317 fees +- The SDK now generates transactions using [ZIP 317](https://zips.z.cash/zip-0317) fees, + instead of a fixed fee of 10,000 Zatoshi. Use `Proposal.totalFeeRequired` to check the + total fee for a transfer before creating it. + ## Added ### [#1204] Expose APIs for working with transaction proposals diff --git a/Sources/ZcashLightClientKit/Rust/ZcashRustBackend.swift b/Sources/ZcashLightClientKit/Rust/ZcashRustBackend.swift index 99d128a6..290bce63 100644 --- a/Sources/ZcashLightClientKit/Rust/ZcashRustBackend.swift +++ b/Sources/ZcashLightClientKit/Rust/ZcashRustBackend.swift @@ -13,7 +13,7 @@ let globalDBLock = NSLock() actor ZcashRustBackend: ZcashRustBackendWelding { let minimumConfirmations: UInt32 = 10 - let useZIP317Fees = false + let useZIP317Fees = true let dbData: (String, UInt) let fsBlockDbRoot: (String, UInt)