mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Fix OpenLedger::empty:
* Fix logic of OpenLedger::empty * Add regression test * Remove some dead code
This commit is contained in:
@@ -41,7 +41,7 @@ OpenLedger::empty() const
|
||||
{
|
||||
std::lock_guard<
|
||||
std::mutex> lock(modify_mutex_);
|
||||
return current_->txCount() != 0;
|
||||
return current_->txCount() == 0;
|
||||
}
|
||||
|
||||
std::shared_ptr<ReadView const>
|
||||
|
||||
Reference in New Issue
Block a user