mirror of
https://github.com/monero-project/monero.git
synced 2025-08-23 05:15:05 -04:00
blockchain_db: add a few const
This commit is contained in:
parent
09324764c0
commit
8069b3ba7f
6 changed files with 10 additions and 10 deletions
|
@ -212,7 +212,7 @@ void mdb_txn_safe::abort()
|
|||
}
|
||||
}
|
||||
|
||||
uint64_t mdb_txn_safe::num_active_tx()
|
||||
uint64_t mdb_txn_safe::num_active_tx() const
|
||||
{
|
||||
return num_active_txns;
|
||||
}
|
||||
|
@ -273,7 +273,7 @@ void BlockchainLMDB::do_resize()
|
|||
mdb_txn_safe::allow_new_txns();
|
||||
}
|
||||
|
||||
bool BlockchainLMDB::need_resize()
|
||||
bool BlockchainLMDB::need_resize() const
|
||||
{
|
||||
MDB_envinfo mei;
|
||||
|
||||
|
@ -668,7 +668,7 @@ void BlockchainLMDB::remove_spent_key(const crypto::key_image& k_image)
|
|||
throw1(DB_ERROR("Error adding removal of key image to db transaction"));
|
||||
}
|
||||
|
||||
blobdata BlockchainLMDB::output_to_blob(const tx_out& output)
|
||||
blobdata BlockchainLMDB::output_to_blob(const tx_out& output) const
|
||||
{
|
||||
LOG_PRINT_L3("BlockchainLMDB::" << __func__);
|
||||
blobdata b;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue