@ -148,22 +148,16 @@ CFeeRate minRelayTxFee = CFeeRate(DEFAULT_MIN_RELAY_TX_FEE);
// Internal stuff
// Internal stuff
namespace {
namespace {
CBlockIndex * pindexBestInvalid = nullptr ;
CBlockIndex * pindexBestInvalid = nullptr ;
} // namespace
RecursiveMutex cs_LastBlockFile ;
// Internal stuff from blockstorage ...
std : : vector < CBlockFileInfo > vinfoBlockFile ;
extern RecursiveMutex cs_LastBlockFile ;
int nLastBlockFile = 0 ;
extern std : : vector < CBlockFileInfo > vinfoBlockFile ;
/** Global flag to indicate we should check to see if there are
extern int nLastBlockFile ;
* block / undo files that should be deleted . Set on startup
extern bool fCheckForPruning ;
* or if we allocate more file space when we ' re in prune mode
extern std : : set < CBlockIndex * > setDirtyBlockIndex ;
*/
extern std : : set < int > setDirtyFileInfo ;
bool fCheckForPruning = false ;
// ... TODO move fully to blockstorage
/** Dirty block index entries. */
std : : set < CBlockIndex * > setDirtyBlockIndex ;
/** Dirty block file entries. */
std : : set < int > setDirtyFileInfo ;
} // anon namespace
CBlockIndex * BlockManager : : LookupBlockIndex ( const uint256 & hash ) const
CBlockIndex * BlockManager : : LookupBlockIndex ( const uint256 & hash ) const
{
{
@ -1515,7 +1509,7 @@ bool UndoReadFromDisk(CBlockUndo& blockundo, const CBlockIndex* pindex)
return true ;
return true ;
}
}
static bool AbortNode ( BlockValidationState & state , const std : : string & strMessage , const bilingual_str & userMessage = bilingual_str ( ) )
bool AbortNode ( BlockValidationState & state , const std : : string & strMessage , const bilingual_str & userMessage )
{
{
AbortNode ( strMessage , userMessage ) ;
AbortNode ( strMessage , userMessage ) ;
return state . Error ( strMessage ) ;
return state . Error ( strMessage ) ;