diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index fe7efa42..5b09b36d 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -6777,7 +6777,7 @@ uint64_t wallet2::select_indices_for_transfer(std::vector& selected_in return found_money; } //---------------------------------------------------------------------------------------------------- -bool wallet2::is_transfer_ready_to_go(const transfer_details& td, uint64_t fake_outputs_count) +bool wallet2::is_transfer_ready_to_go(const transfer_details& td, uint64_t fake_outputs_count) const { if (is_transfer_able_to_go(td, fake_outputs_count) && is_transfer_unlocked(td)) { @@ -6786,7 +6786,7 @@ bool wallet2::is_transfer_ready_to_go(const transfer_details& td, uint64_t fake_ return false; } //---------------------------------------------------------------------------------------------------- -bool wallet2::is_transfer_able_to_go(const transfer_details& td, uint64_t fake_outputs_count) +bool wallet2::is_transfer_able_to_go(const transfer_details& td, uint64_t fake_outputs_count) const { if (!td.is_spendable()) return false; diff --git a/src/wallet/wallet2.h b/src/wallet/wallet2.h index b0c55331..c5c0022d 100644 --- a/src/wallet/wallet2.h +++ b/src/wallet/wallet2.h @@ -576,8 +576,8 @@ namespace tools wallet2_base_state::serialize(a, ver); } - bool is_transfer_ready_to_go(const transfer_details& td, uint64_t fake_outputs_count); - bool is_transfer_able_to_go(const transfer_details& td, uint64_t fake_outputs_count); + bool is_transfer_ready_to_go(const transfer_details& td, uint64_t fake_outputs_count) const; + bool is_transfer_able_to_go(const transfer_details& td, uint64_t fake_outputs_count) const; uint64_t select_indices_for_transfer(std::vector& ind, free_amounts_cache_type& found_free_amounts, uint64_t needed_money, uint64_t fake_outputs_count); bool select_indices_for_transfer(assets_selection_context& needed_money_map, uint64_t fake_outputs_count, std::vector& selected_indexes);