aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet2.cpp
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2024-03-08 10:44:12 -0500
committerluigi1111 <luigi1111w@gmail.com>2024-03-08 10:44:12 -0500
commitff15cb2f049ba329f5aa442811b189f5dd8bf06d (patch)
tree897e405d02a2b9786845d6375e2dce3eda22035c /src/wallet/wallet2.cpp
parentb23116424d3cc4e5749a900dfda2f895f7d4d8e4 (diff)
parent32b3a56313dd8bb0525533e712bf17f8f4547903 (diff)
downloadmonzero-core-ff15cb2f049ba329f5aa442811b189f5dd8bf06d.tar.gz
monzero-core-ff15cb2f049ba329f5aa442811b189f5dd8bf06d.tar.xz
monzero-core-ff15cb2f049ba329f5aa442811b189f5dd8bf06d.zip
Merge pull request #9220
32b3a56 wallet2: adjust fee during backlog, fix set priority (selsta)
Diffstat (limited to 'src/wallet/wallet2.cpp')
-rw-r--r--src/wallet/wallet2.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp
index b48af7721..f34b10988 100644
--- a/src/wallet/wallet2.cpp
+++ b/src/wallet/wallet2.cpp
@@ -8212,7 +8212,7 @@ uint32_t wallet2::adjust_priority(uint32_t priority)
else if (blocks[0].first > 0)
{
MINFO("We don't use the low priority because there's a backlog in the tx pool.");
- return priority;
+ return 2;
}
// get the current full reward zone
@@ -8260,7 +8260,7 @@ uint32_t wallet2::adjust_priority(uint32_t priority)
if (P > 80)
{
MINFO("We don't use the low priority because recent blocks are quite full.");
- return priority;
+ return 2;
}
MINFO("We'll use the low priority because probably it's safe to do so.");
return 1;