diff --git a/Makefile b/Makefile index bbf06c3..5e0da52 100644 --- a/Makefile +++ b/Makefile @@ -135,6 +135,22 @@ release-static-linux-armv8: mkdir -p $(builddir)/release cd $(builddir)/release && cmake -D BUILD_TESTS=OFF -D ARCH="armv8-a" -D STATIC=ON -D BUILD_64=ON -D CMAKE_BUILD_TYPE=Release -D BUILD_TAG="linux-armv8" $(topdir) && $(MAKE) +release-static-android-armv7-wallet_api: + mkdir -p $(builddir)/release + cd $(builddir)/release && CC=arm-linux-androideabi-clang CXX=arm-linux-androideabi-clang++ cmake -D MONERUJO_HIDAPI=ON -D USE_DEVICE_TREZOR=OFF -D BUILD_GUI_DEPS=1 -D BUILD_TESTS=OFF -D ARCH="armv7-a" -D STATIC=ON -D BUILD_64=OFF -D CMAKE_BUILD_TYPE=release -D ANDROID=true -D BUILD_TAG="android-armv7" -D CMAKE_SYSTEM_NAME="Android" -D CMAKE_ANDROID_STANDALONE_TOOLCHAIN="${ANDROID_STANDALONE_TOOLCHAIN_PATH}" -D CMAKE_ANDROID_ARM_MODE=ON -D CMAKE_ANDROID_ARCH_ABI="armeabi-v7a" -D NO_AES=true ../.. && $(MAKE) wallet_api + +release-static-android-armv8-wallet_api: + mkdir -p $(builddir)/release + cd $(builddir)/release && CC=aarch64-linux-android-clang CXX=aarch64-linux-android-clang++ cmake -D MONERUJO_HIDAPI=ON -D USE_DEVICE_TREZOR=OFF -D BUILD_GUI_DEPS=1 -D BUILD_TESTS=OFF -D ARCH="armv8-a" -D STATIC=ON -D BUILD_64=ON -D CMAKE_BUILD_TYPE=release -D ANDROID=true -D BUILD_TAG="android-armv8" -D CMAKE_SYSTEM_NAME="Android" -D CMAKE_ANDROID_STANDALONE_TOOLCHAIN="${ANDROID_STANDALONE_TOOLCHAIN_PATH}" -D CMAKE_ANDROID_ARCH_ABI="arm64-v8a" ../.. && $(MAKE) wallet_api + +release-static-android-x86_64-wallet_api: + mkdir -p $(builddir)/release + cd $(builddir)/release && CC=x86_64-linux-android-clang CXX=x86_64-linux-android-clang++ cmake -D MONERUJO_HIDAPI=ON -D USE_DEVICE_TREZOR=OFF -D BUILD_GUI_DEPS=1 -D BUILD_TESTS=OFF -D ARCH="x86-64" -D STATIC=ON -D BUILD_64=ON -D CMAKE_BUILD_TYPE=release -D ANDROID=true -D BUILD_TAG="android-x86_64" -D CMAKE_SYSTEM_NAME="Android" -D CMAKE_ANDROID_STANDALONE_TOOLCHAIN="${ANDROID_STANDALONE_TOOLCHAIN_PATH}" -D CMAKE_ANDROID_ARCH_ABI="x86_64" ../.. && $(MAKE) wallet_api + +release-static-android-x86-wallet_api: + mkdir -p $(builddir)/release + cd $(builddir)/release && CC=i686-linux-android-clang CXX=i686-linux-android-clang++ cmake -D MONERUJO_HIDAPI=ON -D USE_DEVICE_TREZOR=OFF -D BUILD_GUI_DEPS=1 -D BUILD_TESTS=OFF -D ARCH="i686" -D STATIC=ON -D BUILD_64=OFF -D CMAKE_BUILD_TYPE=release -D ANDROID=true -D BUILD_TAG="android-x86" -D CMAKE_SYSTEM_NAME="Android" -D CMAKE_ANDROID_STANDALONE_TOOLCHAIN="${ANDROID_STANDALONE_TOOLCHAIN_PATH}" -D CMAKE_ANDROID_ARCH_ABI="x86" ../.. && $(MAKE) wallet_api + release-static-linux-x86_64: mkdir -p $(builddir)/release cd $(builddir)/release && cmake -D STATIC=ON -D ARCH="x86-64" -D BUILD_64=ON -D CMAKE_BUILD_TYPE=Release -D BUILD_TAG="linux-x64" $(topdir) && $(MAKE) diff --git a/src/version.cpp.in b/src/version.cpp.in index 7c9b5e3..d699394 100644 --- a/src/version.cpp.in +++ b/src/version.cpp.in @@ -1,5 +1,5 @@ #define DEF_scala_VERSION_TAG "@VERSIONTAG@" -#define DEF_scala_VERSION "8.0.2" +#define DEF_scala_VERSION "8.0.3" #define DEF_scala_RELEASE_NAME "Menger" #define DEF_scala_VERSION_FULL DEF_scala_VERSION "-" DEF_scala_VERSION_TAG #define DEF_scala_VERSION_IS_RELEASE @VERSION_IS_RELEASE@ diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index c7425cd..440157f 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -8332,36 +8332,9 @@ uint64_t wallet2::get_dynamic_base_fee_estimate() { return FEE_PER_KB; } uint64_t wallet2::get_base_fee() { return FEE_PER_KB; } //---------------------------------------------------------------------------------------------------- uint64_t wallet2::get_base_fee(uint32_t priority) { - const bool use_2021_scaling = - use_fork_rules(HF_VERSION_2021_SCALING, -30 * 1); - if (use_2021_scaling) { - // clamp and map to 0..3 indices, mapping 0 (default, but should not end up - // here) to 0, and 1..4 to 0..3 - if (priority == 0) - priority = 1; - else if (priority > 4) - priority = 4; - --priority; - - std::vector fees; - boost::optional result = - m_node_rpc_proxy.get_dynamic_base_fee_estimate_2021_scaling( - FEE_ESTIMATE_GRACE_BLOCKS, fees); - if (result) { - MERROR("Failed to determine base fee, using default"); - return FEE_PER_BYTE; - } - if (priority >= fees.size()) { - MERROR("Failed to determine base fee for priority " << priority - << ", using default"); - return FEE_PER_BYTE; - } - return fees[priority]; - } else { const uint64_t base_fee = get_base_fee(); const uint64_t fee_multiplier = get_fee_multiplier(priority); return base_fee * fee_multiplier; - } } //---------------------------------------------------------------------------------------------------- uint64_t wallet2::get_fee_quantization_mask() {