Build fix
This commit is contained in:
parent
60b801fd3f
commit
0c91f78dde
@ -167,9 +167,9 @@ bool CCoinsViewCache::HaveCoin(const OutputIndex& index) const {
|
||||
|
||||
bool CCoinsViewCache::GetMWEBCoin(const mw::Hash& output_id, Output& coin) const {
|
||||
if (GetMWEBCacheView()->HasCoinInCache(output_id)) {
|
||||
std::vector<UTXO::CPtr> utxos = GetMWEBCacheView()->GetUTXOs(output_id);
|
||||
assert(!utxos.empty());
|
||||
coin = utxos.front()->GetOutput();
|
||||
UTXO::CPtr utxo = GetMWEBCacheView()->GetUTXO(output_id);
|
||||
assert(utxo != nullptr);
|
||||
coin = utxo->GetOutput();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user