mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-02 01:04:43 +02:00
refactor: inline constant return value of CDBWrapper::Write
This commit is contained in:
@@ -230,12 +230,11 @@ public:
|
||||
}
|
||||
|
||||
template <typename K, typename V>
|
||||
bool Write(const K& key, const V& value, bool fSync = false)
|
||||
void Write(const K& key, const V& value, bool fSync = false)
|
||||
{
|
||||
CDBBatch batch(*this);
|
||||
batch.Write(key, value);
|
||||
WriteBatch(batch, fSync);
|
||||
return true;
|
||||
}
|
||||
|
||||
//! @returns filesystem path to the on-disk data.
|
||||
|
||||
Reference in New Issue
Block a user