mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-17 13:07:54 +02:00
Merge 74fb19317a into merged_master (Bitcoin PR bitcoin/bitcoin#30849)
This commit is contained in:
commit
a7e8a376fa
17 changed files with 106 additions and 135 deletions
|
|
@ -71,8 +71,10 @@ void CCoinsViewDB::ResizeCache(size_t new_cache_size)
|
|||
}
|
||||
}
|
||||
|
||||
bool CCoinsViewDB::GetCoin(const COutPoint &outpoint, Coin &coin) const {
|
||||
return m_db->Read(CoinEntry(&outpoint), coin);
|
||||
std::optional<Coin> CCoinsViewDB::GetCoin(const COutPoint& outpoint) const
|
||||
{
|
||||
if (Coin coin; m_db->Read(CoinEntry(&outpoint), coin)) return coin;
|
||||
return std::nullopt;
|
||||
}
|
||||
|
||||
bool CCoinsViewDB::HaveCoin(const COutPoint &outpoint) const {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue