diff options
author | MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> | 2023-06-30 16:25:13 +0200 |
---|---|---|
committer | MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> | 2023-09-15 14:34:24 +0200 |
commit | fa56c421be04af846f479c30749b17e6663ab418 (patch) | |
tree | 26b3f14db47fb94a320da39e86eed7c5988ff654 /src/index | |
parent | 9999b89cd37fb2a23c5ebcd91d9cb31d69375933 (diff) |
Return CAutoFile from BlockManager::Open*File()
This is a refactor.
Diffstat (limited to 'src/index')
-rw-r--r-- | src/index/txindex.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/index/txindex.cpp b/src/index/txindex.cpp index 6b38e19d81..e16dd0f8bd 100644 --- a/src/index/txindex.cpp +++ b/src/index/txindex.cpp @@ -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), CLIENT_VERSION}; + CAutoFile file{m_chainstate->m_blockman.OpenBlockFile(postx, true)}; if (file.IsNull()) { return error("%s: OpenBlockFile failed", __func__); } |