mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-21 15:50:07 +01:00
blockstorage: switch from CAutoFile to AutoFile
Also bump includes per suggestions from iwyu.
This commit is contained in:
@@ -79,7 +79,7 @@ bool TxIndex::FindTx(const uint256& tx_hash, uint256& block_hash, CTransactionRe
|
||||
return false;
|
||||
}
|
||||
|
||||
CAutoFile file{m_chainstate->m_blockman.OpenBlockFile(postx, true)};
|
||||
AutoFile file{m_chainstate->m_blockman.OpenBlockFile(postx, true)};
|
||||
if (file.IsNull()) {
|
||||
return error("%s: OpenBlockFile failed", __func__);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user