dash-docs/en/doxygen/html/namespaceCheckpoints.html

220 lines
11 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Dash Core: Checkpoints Namespace Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectlogo"><img alt="Logo" src="bitcoin_logo_doxygen.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">Dash Core
&#160;<span id="projectnumber">0.12.2.1</span>
</div>
<div id="projectbrief">P2P Digital Currency</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('namespaceCheckpoints.html','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="summary">
<a href="#func-members">Functions</a> &#124;
<a href="#var-members">Variables</a> </div>
<div class="headertitle">
<div class="title">Checkpoints Namespace Reference</div> </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:aa2e60b5114a431ccaff32a6e1f418af1"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceCheckpoints.html#aa2e60b5114a431ccaff32a6e1f418af1">GuessVerificationProgress</a> (const <a class="el" href="structCCheckpointData.html">CCheckpointData</a> &amp;data, <a class="el" href="classCBlockIndex.html">CBlockIndex</a> *pindex, bool fSigchecks)</td></tr>
<tr class="memdesc:aa2e60b5114a431ccaff32a6e1f418af1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Guess how far we are in the verification process at the given block index. <a href="#aa2e60b5114a431ccaff32a6e1f418af1">More...</a><br /></td></tr>
<tr class="separator:aa2e60b5114a431ccaff32a6e1f418af1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afe6d974f9851567cd7f0c6066e0919b5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classCBlockIndex.html">CBlockIndex</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceCheckpoints.html#afe6d974f9851567cd7f0c6066e0919b5">GetLastCheckpoint</a> (const <a class="el" href="structCCheckpointData.html">CCheckpointData</a> &amp;data)</td></tr>
<tr class="memdesc:afe6d974f9851567cd7f0c6066e0919b5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns last CBlockIndex* in mapBlockIndex that is a checkpoint. <a href="#afe6d974f9851567cd7f0c6066e0919b5">More...</a><br /></td></tr>
<tr class="separator:afe6d974f9851567cd7f0c6066e0919b5"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
Variables</h2></td></tr>
<tr class="memitem:a1ba658141a1d43d78b956b6952e0320c"><td class="memItemLeft" align="right" valign="top">static const double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceCheckpoints.html#a1ba658141a1d43d78b956b6952e0320c">SIGCHECK_VERIFICATION_FACTOR</a> = 5.0</td></tr>
<tr class="separator:a1ba658141a1d43d78b956b6952e0320c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Block-chain checkpoints are compiled-in sanity checks. They are updated every release or three. </p>
</div><h2 class="groupheader">Function Documentation</h2>
<a id="afe6d974f9851567cd7f0c6066e0919b5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afe6d974f9851567cd7f0c6066e0919b5">&#9670;&nbsp;</a></span>GetLastCheckpoint()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classCBlockIndex.html">CBlockIndex</a> * Checkpoints::GetLastCheckpoint </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="structCCheckpointData.html">CCheckpointData</a> &amp;&#160;</td>
<td class="paramname"><em>data</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns last CBlockIndex* in mapBlockIndex that is a checkpoint. </p>
<p class="definition">Definition at line <a class="el" href="checkpoints_8cpp_source.html#l00059">59</a> of file <a class="el" href="checkpoints_8cpp_source.html">checkpoints.cpp</a>.</p>
<p class="reference">Referenced by <a class="el" href="validation_8cpp_source.html#l03218">CheckIndexAgainstCheckpoint()</a>.</p>
</div>
</div>
<a id="aa2e60b5114a431ccaff32a6e1f418af1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa2e60b5114a431ccaff32a6e1f418af1">&#9670;&nbsp;</a></span>GuessVerificationProgress()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">double Checkpoints::GuessVerificationProgress </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="structCCheckpointData.html">CCheckpointData</a> &amp;&#160;</td>
<td class="paramname"><em>data</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classCBlockIndex.html">CBlockIndex</a> *&#160;</td>
<td class="paramname"><em>pindex</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool&#160;</td>
<td class="paramname"><em>fSigchecks</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Guess how far we are in the verification process at the given block index. </p>
<p class="definition">Definition at line <a class="el" href="checkpoints_8cpp_source.html#l00030">30</a> of file <a class="el" href="checkpoints_8cpp_source.html">checkpoints.cpp</a>.</p>
<p class="reference">Referenced by <a class="el" href="blockchain_8cpp_source.html#l00743">getblockchaininfo()</a>, <a class="el" href="clientmodel_8cpp_source.html#l00160">ClientModel::getVerificationProgress()</a>, <a class="el" href="validation_8cpp_source.html#l03709">LoadBlockIndexDB()</a>, <a class="el" href="wallet_8cpp_source.html#l01687">CWallet::ScanForWalletTransactions()</a>, and <a class="el" href="validation_8cpp_source.html#l02420">UpdateTip()</a>.</p>
</div>
</div>
<h2 class="groupheader">Variable Documentation</h2>
<a id="a1ba658141a1d43d78b956b6952e0320c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1ba658141a1d43d78b956b6952e0320c">&#9670;&nbsp;</a></span>SIGCHECK_VERIFICATION_FACTOR</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">const double Checkpoints::SIGCHECK_VERIFICATION_FACTOR = 5.0</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>How many times slower we expect checking transactions after the last checkpoint to be (from checking signatures, which is skipped up to the last checkpoint). This number is a compromise, as it can't be accurate for every system. When reindexing from a fast disk with a slow CPU, it can be up to 20, while when downloading from a slow network with a fast multicore CPU, it won't be much higher than 1. </p>
<p class="definition">Definition at line <a class="el" href="checkpoints_8cpp_source.html#l00027">27</a> of file <a class="el" href="checkpoints_8cpp_source.html">checkpoints.cpp</a>.</p>
<p class="reference">Referenced by <a class="el" href="checkpoints_8cpp_source.html#l00030">GuessVerificationProgress()</a>.</p>
</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="namespaceCheckpoints.html">Checkpoints</a></li>
<li class="footer">Generated on Thu Dec 14 2017 13:15:14 for Dash Core by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.14 </li>
</ul>
</div>
</body>
</html>