Skip to content

Commit

Permalink
wallet: use right get_base_fee
Browse files Browse the repository at this point in the history
  • Loading branch information
hayzamjs committed Aug 8, 2023
1 parent 485278d commit 443750f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/hardforks/hardforks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const hardfork_t mainnet_hard_forks[] = {
{1, 1, 0, 1341378000},
{12, 2, 0, 1582125473},

//Approximately on 14th of September 2023 (V8)
// Approximately on 14th of September 2023 (V8)
{16, 820102, 0, 1692005445},
};

Expand Down
10 changes: 5 additions & 5 deletions src/wallet/wallet2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8429,7 +8429,7 @@ uint32_t wallet2::adjust_priority(uint32_t priority) {
try {
// check if there's a backlog in the tx pool
const bool use_per_byte_fee = use_fork_rules(HF_VERSION_PER_BYTE_FEE, 0);
const uint64_t base_fee = get_base_fee(1);
const uint64_t base_fee = get_base_fee();
const double fee_level =
base_fee * (use_per_byte_fee ? 1 : (12 / (double)13 / (double)1024));
const std::vector<std::pair<uint64_t, uint64_t>> blocks =
Expand Down Expand Up @@ -10518,7 +10518,7 @@ std::vector<wallet2::pending_tx> wallet2::create_transactions_2(
const bool use_view_tags = use_fork_rules(get_view_tag_fork(), 0);
std::unordered_set<crypto::public_key> valid_public_keys_cache;

const uint64_t base_fee = get_base_fee(priority);
const uint64_t base_fee = get_base_fee();
const uint64_t fee_quantization_mask = get_fee_quantization_mask();

// throw if attempting a transaction with no destinations
Expand Down Expand Up @@ -11255,7 +11255,7 @@ std::vector<wallet2::pending_tx> wallet2::create_transactions_all(
const bool bulletproof_plus = use_fork_rules(get_bulletproof_plus_fork(), 0);
const bool clsag = use_fork_rules(get_clsag_fork(), 0);
const bool use_view_tags = use_fork_rules(get_view_tag_fork(), 0);
const uint64_t base_fee = get_base_fee(priority);
const uint64_t base_fee = get_base_fee();
const size_t tx_weight_one_ring =
estimate_tx_weight(use_rct, 1, fake_outs_count, 2, 0, bulletproof, clsag,
bulletproof_plus, use_view_tags);
Expand Down Expand Up @@ -11407,7 +11407,7 @@ std::vector<wallet2::pending_tx> wallet2::create_transactions_from(
const rct::RCTConfig rct_config{rct::RangeProofPaddedBulletproof,
bulletproof_plus ? 4 : 2};
const bool use_view_tags = use_fork_rules(get_view_tag_fork(), 0);
const uint64_t base_fee = get_base_fee(priority);
const uint64_t base_fee = get_base_fee();
const uint64_t fee_quantization_mask = get_fee_quantization_mask();

LOG_PRINT_L2("Starting with "
Expand Down Expand Up @@ -11927,7 +11927,7 @@ wallet2::create_unmixable_sweep_transactions() {
const bool hf1_rules = use_fork_rules(2, 10); // first hard fork has version 2
tx_dust_policy dust_policy(hf1_rules ? 0 : ::config::DEFAULT_DUST_THRESHOLD);

const uint64_t base_fee = get_base_fee(1);
const uint64_t base_fee = get_base_fee();

// may throw
std::vector<size_t> unmixable_outputs = select_available_unmixable_outputs();
Expand Down

0 comments on commit 443750f

Please sign in to comment.