forked from lthn/blockchain
wallet2::is_in_hardfork_zone() made const
This commit is contained in:
parent
08fd1d4248
commit
642cc94691
2 changed files with 3 additions and 4 deletions
|
|
@ -3589,10 +3589,9 @@ bool wallet2::get_pos_entries(std::vector<currency::pos_entry>& entries)
|
|||
return true;
|
||||
}
|
||||
//----------------------------------------------------------------------------------------------------
|
||||
bool wallet2::is_in_hardfork_zone(uint64_t hardfork_index)
|
||||
bool wallet2::is_in_hardfork_zone(uint64_t hardfork_index) const
|
||||
{
|
||||
const currency::core_runtime_config& rtc = get_core_runtime_config();
|
||||
return rtc.is_hardfork_active_for_height(hardfork_index, get_blockchain_current_size());
|
||||
return m_core_runtime_config.is_hardfork_active_for_height(hardfork_index, get_blockchain_current_size());
|
||||
}
|
||||
//----------------------------------------------------------------------------------------------------
|
||||
bool wallet2::prepare_and_sign_pos_block(currency::block& b,
|
||||
|
|
|
|||
|
|
@ -1043,7 +1043,7 @@ private:
|
|||
uint64_t get_directly_spent_transfer_index_by_input_in_tracking_wallet(uint64_t amount, const std::vector<currency::txout_ref_v> & key_offsets);
|
||||
uint64_t get_directly_spent_transfer_index_by_input_in_tracking_wallet(const currency::txin_to_key& intk);
|
||||
uint64_t get_directly_spent_transfer_index_by_input_in_tracking_wallet(const currency::txin_zc_input& inzc);
|
||||
bool is_in_hardfork_zone(uint64_t hardfork_index);
|
||||
bool is_in_hardfork_zone(uint64_t hardfork_index) const;
|
||||
uint8_t out_get_mixin_attr(const currency::tx_out_v& out_t);
|
||||
const crypto::public_key& out_get_pub_key(const currency::tx_out_v& out_t, std::list<currency::htlc_info>& htlc_info_list);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue