From 208f50ce64cb2cc5056061498bcd2b5280a95c7f Mon Sep 17 00:00:00 2001 From: cryptozoidberg Date: Mon, 30 Oct 2023 19:22:33 +0000 Subject: [PATCH] additional changes for cake --- src/wallet/plain_wallet_api.cpp | 6 ++++++ src/wallet/plain_wallet_api.h | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/wallet/plain_wallet_api.cpp b/src/wallet/plain_wallet_api.cpp index deb09878..8b720c7b 100644 --- a/src/wallet/plain_wallet_api.cpp +++ b/src/wallet/plain_wallet_api.cpp @@ -666,4 +666,10 @@ namespace plain_wallet return inst_ptr->gwm.reset_wallet_password(h, password); } + + // 0 (default), 1 (unimportant), 2 (normal), 3 (elevated), 4 (priority) + uint64_t get_current_tx_fee(uint64_t priority) + { + return TX_DEFAULT_FEE; + } } \ No newline at end of file diff --git a/src/wallet/plain_wallet_api.h b/src/wallet/plain_wallet_api.h index 8f0a4b1b..f12eba03 100644 --- a/src/wallet/plain_wallet_api.h +++ b/src/wallet/plain_wallet_api.h @@ -47,5 +47,7 @@ namespace plain_wallet bool is_wallet_exist(const std::string& path); std::string get_wallet_info(hwallet h); std::string reset_wallet_password(hwallet h, const std::string& password); + uint64_t get_current_tx_fee(uint64_t priority); // 0 (default), 1 (unimportant), 2 (normal), 3 (elevated), 4 (priority) +} + -} \ No newline at end of file