36
36
#include < txmempool.h>
37
37
#include < ui_interface.h>
38
38
#include < undo.h>
39
- #include < util/system.h>
40
39
#include < util/moneystr.h>
41
40
#include < util/strencodings.h>
41
+ #include < util/system.h>
42
42
#include < validationinterface.h>
43
43
#include < warnings.h>
44
44
@@ -1455,9 +1455,7 @@ bool CheckInputs(const CTransaction& tx, CValidationState &state, const CCoinsVi
1455
1455
return true ;
1456
1456
}
1457
1457
1458
- namespace {
1459
-
1460
- bool UndoWriteToDisk (const CBlockUndo& blockundo, FlatFilePos& pos, const uint256& hashBlock, const CMessageHeader::MessageStartChars& messageStart)
1458
+ static bool UndoWriteToDisk (const CBlockUndo& blockundo, FlatFilePos& pos, const uint256& hashBlock, const CMessageHeader::MessageStartChars& messageStart)
1461
1459
{
1462
1460
// Open history file to append
1463
1461
CAutoFile fileout (OpenUndoFile (pos), SER_DISK, CLIENT_VERSION);
@@ -1484,7 +1482,7 @@ bool UndoWriteToDisk(const CBlockUndo& blockundo, FlatFilePos& pos, const uint25
1484
1482
return true ;
1485
1483
}
1486
1484
1487
- static bool UndoReadFromDisk (CBlockUndo& blockundo, const CBlockIndex * pindex)
1485
+ bool UndoReadFromDisk (CBlockUndo& blockundo, const CBlockIndex* pindex)
1488
1486
{
1489
1487
FlatFilePos pos = pindex->GetUndoPos ();
1490
1488
if (pos.IsNull ()) {
@@ -1533,8 +1531,6 @@ static bool AbortNode(CValidationState& state, const std::string& strMessage, co
1533
1531
return state.Error (strMessage);
1534
1532
}
1535
1533
1536
- } // namespace
1537
-
1538
1534
/* *
1539
1535
* Restore the UTXO in a Coin at a given COutPoint
1540
1536
* @param undo The Coin to be restored.
0 commit comments