![]() |
Master Core
v0.0.9 - 2abfd2849db8ba7a83957c64eb976b406713c123
|
Block-chain checkpoints are compiled-in sanity checks. More...
Classes | |
struct | CCheckpointData |
Typedefs | |
typedef std::map< int, uint256 > | MapCheckpoints |
Functions | |
const CCheckpointData & | Checkpoints () |
bool | CheckBlock (int nHeight, const uint256 &hash) |
double | GuessVerificationProgress (CBlockIndex *pindex, bool fSigchecks) |
int | GetTotalBlocksEstimate () |
CBlockIndex * | GetLastCheckpoint (const std::map< uint256, CBlockIndex * > &mapBlockIndex) |
Variables | |
static const double | SIGCHECK_VERIFICATION_FACTOR = 5.0 |
bool | fEnabled = true |
static MapCheckpoints | mapCheckpoints |
static const CCheckpointData | data |
static MapCheckpoints | mapCheckpointsTestnet |
static const CCheckpointData | dataTestnet |
static MapCheckpoints | mapCheckpointsRegtest |
static const CCheckpointData | dataRegtest |
Block-chain checkpoints are compiled-in sanity checks.
They are updated every release or three.
typedef std::map<int, uint256> Checkpoints::MapCheckpoints |
Definition at line 17 of file checkpoints.cpp.
Definition at line 95 of file checkpoints.cpp.
References Checkpoints(), and Checkpoints::CCheckpointData::mapCheckpoints.
Referenced by AcceptBlock().
const CCheckpointData& Checkpoints::Checkpoints | ( | ) |
Definition at line 86 of file checkpoints.cpp.
References data, dataRegtest, dataTestnet, CChainParams::MAIN, Params(), and CChainParams::TESTNET.
Referenced by CheckBlock(), GetLastCheckpoint(), GetTotalBlocksEstimate(), and GuessVerificationProgress().
CBlockIndex * Checkpoints::GetLastCheckpoint | ( | const std::map< uint256, CBlockIndex * > & | mapBlockIndex | ) |
Definition at line 149 of file checkpoints.cpp.
References Checkpoints(), and Checkpoints::CCheckpointData::mapCheckpoints.
Referenced by AcceptBlock(), ProcessBlock(), and ProcessGetData().
int Checkpoints::GetTotalBlocksEstimate | ( | ) |
Definition at line 139 of file checkpoints.cpp.
References Checkpoints(), and Checkpoints::CCheckpointData::mapCheckpoints.
Referenced by AcceptBlock(), ConnectBlock(), and IsInitialBlockDownload().
double Checkpoints::GuessVerificationProgress | ( | CBlockIndex * | pindex, |
bool | fSigchecks | ||
) |
Definition at line 108 of file checkpoints.cpp.
References Checkpoints(), Checkpoints::CCheckpointData::fTransactionsPerDay, CBlockIndex::nChainTx, CBlockIndex::nTime, Checkpoints::CCheckpointData::nTimeLastCheckpoint, and Checkpoints::CCheckpointData::nTransactionsLastCheckpoint.
Referenced by getblockchaininfo(), ClientModel::getVerificationProgress(), LoadBlockIndexDB(), CWallet::ScanForWalletTransactions(), and UpdateTip().
|
static |
Definition at line 56 of file checkpoints.cpp.
Referenced by Checkpoints(), CBloomFilter::contains(), PaymentRequestPlus::getMerchant(), CScript::GetSigOpCount(), CScript::HasCanonicalPushes(), CMPTransaction::interpretPacket(), CBloomFilter::IsRelevantAndUpdate(), PaymentServer::LoadRootCAs(), payments::PaymentDetails::MergePartialFromCodedStream(), payments::PaymentRequest::MergePartialFromCodedStream(), payments::Payment::MergePartialFromCodedStream(), payments::PaymentACK::MergePartialFromCodedStream(), PaymentServer::netRequestFinished(), PaymentServer::readPaymentRequest(), mastercore::send_INTERNAL_1packet(), sendrawtx_MP(), payments::PaymentDetails::SerializeWithCachedSizes(), payments::PaymentRequest::SerializeWithCachedSizes(), payments::Payment::SerializeWithCachedSizes(), payments::PaymentACK::SerializeWithCachedSizes(), payments::PaymentDetails::SerializeWithCachedSizesToArray(), payments::PaymentRequest::SerializeWithCachedSizesToArray(), payments::Payment::SerializeWithCachedSizesToArray(), payments::PaymentACK::SerializeWithCachedSizesToArray(), SHA256Transform(), SocketSendData(), CMPTransaction::step2_SmartProperty(), and CSVModelWriter::write().
|
static |
Definition at line 79 of file checkpoints.cpp.
Referenced by Checkpoints().
|
static |
Definition at line 68 of file checkpoints.cpp.
Referenced by Checkpoints().
bool Checkpoints::fEnabled = true |
Definition at line 33 of file checkpoints.cpp.
Referenced by AppInit2().
|
static |
Definition at line 40 of file checkpoints.cpp.
|
static |
Definition at line 75 of file checkpoints.cpp.
|
static |
Definition at line 64 of file checkpoints.cpp.
|
static |
Definition at line 24 of file checkpoints.cpp.