Update Blockchain::get_db() to return reference instead of pointer
Where this method is used, a BlockchainDB object is always expected, so a pointer is unnecessary and less safe.
This commit is contained in:
@@ -145,9 +145,9 @@ namespace cryptonote
|
||||
void set_enforce_dns_checkpoints(bool enforce);
|
||||
bool update_checkpoints(const std::string& file_path, bool check_dns);
|
||||
|
||||
BlockchainDB* get_db()
|
||||
BlockchainDB& get_db()
|
||||
{
|
||||
return m_db;
|
||||
return *m_db;
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user