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

130 lines
19 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: src/miner.h Source File</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('miner_8h_source.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="headertitle">
<div class="title">miner.h</div> </div>
</div><!--header-->
<div class="contents">
<a href="miner_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="comment">// Copyright (c) 2009-2010 Satoshi Nakamoto</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="comment">// Copyright (c) 2009-2015 The Bitcoin Core developers</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="comment">// Distributed under the MIT software license, see the accompanying</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment">// file COPYING or http://www.opensource.org/licenses/mit-license.php.</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;</div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="preprocessor">#ifndef BITCOIN_MINER_H</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="preprocessor">#define BITCOIN_MINER_H</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;</div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="block_8h.html">primitives/block.h</a>&quot;</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;</div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="preprocessor">#include &lt;stdint.h&gt;</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;</div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="keyword">class </span><a class="code" href="classCBlockIndex.html">CBlockIndex</a>;</div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="keyword">class </span><a class="code" href="classCChainParams.html">CChainParams</a>;</div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="keyword">class </span><a class="code" href="classCConnman.html">CConnman</a>;</div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="keyword">class </span><a class="code" href="classCReserveKey.html">CReserveKey</a>;</div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="keyword">class </span><a class="code" href="classCScript.html">CScript</a>;</div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="keyword">class </span><a class="code" href="classCWallet.html">CWallet</a>;</div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceConsensus.html">Consensus</a> { <span class="keyword">struct </span><a class="code" href="chainparams_8cpp.html#ace5c5b706d71a324a417dd2db394fd4a">Params</a>; };</div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;</div><div class="line"><a name="l00021"></a><span class="lineno"><a class="line" href="miner_8h.html#aa70c6b92d9922a22ef07eabc4a62caa4"> 21</a></span>&#160;<span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">bool</span> <a class="code" href="miner_8h.html#aa70c6b92d9922a22ef07eabc4a62caa4">DEFAULT_GENERATE</a> = <span class="keyword">false</span>;</div><div class="line"><a name="l00022"></a><span class="lineno"><a class="line" href="miner_8h.html#a0561c24b413d24bf7beaa91e5b90ccf6"> 22</a></span>&#160;<span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="miner_8h.html#a0561c24b413d24bf7beaa91e5b90ccf6">DEFAULT_GENERATE_THREADS</a> = 1;</div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;</div><div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="miner_8h.html#a535d21266859aff68fa43e6f0092cb2e"> 24</a></span>&#160;<span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">bool</span> <a class="code" href="miner_8h.html#a535d21266859aff68fa43e6f0092cb2e">DEFAULT_PRINTPRIORITY</a> = <span class="keyword">false</span>;</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;</div><div class="line"><a name="l00026"></a><span class="lineno"><a class="line" href="structCBlockTemplate.html"> 26</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structCBlockTemplate.html">CBlockTemplate</a></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;{</div><div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="structCBlockTemplate.html#a13261cbac4dc94f996d1b3ff78e41139"> 28</a></span>&#160; <a class="code" href="classCBlock.html">CBlock</a> <a class="code" href="structCBlockTemplate.html#a13261cbac4dc94f996d1b3ff78e41139">block</a>;</div><div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="structCBlockTemplate.html#a66287bde795cc8e8c8cb59c4e2302d49"> 29</a></span>&#160; std::vector&lt;CAmount&gt; <a class="code" href="structCBlockTemplate.html#a66287bde795cc8e8c8cb59c4e2302d49">vTxFees</a>;</div><div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="structCBlockTemplate.html#a13326eb92a7d2fc073d9f5660dfcdde5"> 30</a></span>&#160; std::vector&lt;int64_t&gt; <a class="code" href="structCBlockTemplate.html#a13326eb92a7d2fc073d9f5660dfcdde5">vTxSigOps</a>;</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;};</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160;<span class="keywordtype">void</span> <a class="code" href="miner_8h.html#a5dd1df3c97c260735ad08a808db2115c">GenerateBitcoins</a>(<span class="keywordtype">bool</span> fGenerate, <span class="keywordtype">int</span> nThreads, <span class="keyword">const</span> <a class="code" href="classCChainParams.html">CChainParams</a>&amp; chainparams, <a class="code" href="classCConnman.html">CConnman</a>&amp; connman);</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160;<a class="code" href="structCBlockTemplate.html">CBlockTemplate</a>* <a class="code" href="miner_8h.html#ac8f34678ed590db1325b261c708f2626">CreateNewBlock</a>(<span class="keyword">const</span> <a class="code" href="classCChainParams.html">CChainParams</a>&amp; chainparams, <span class="keyword">const</span> <a class="code" href="classCScript.html">CScript</a>&amp; scriptPubKeyIn);</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160;<span class="keywordtype">void</span> <a class="code" href="miner_8h.html#a4873920d6e6dc589a2062dd3f17e2e52">IncrementExtraNonce</a>(<a class="code" href="classCBlock.html">CBlock</a>* pblock, <span class="keyword">const</span> <a class="code" href="classCBlockIndex.html">CBlockIndex</a>* pindexPrev, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>&amp; nExtraNonce);</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160;int64_t <a class="code" href="miner_8h.html#a9c09903c7d6401b5405db02af064179c">UpdateTime</a>(<a class="code" href="classCBlockHeader.html">CBlockHeader</a>* pblock, <span class="keyword">const</span> <a class="code" href="structConsensus_1_1Params.html">Consensus::Params</a>&amp; consensusParams, <span class="keyword">const</span> <a class="code" href="classCBlockIndex.html">CBlockIndex</a>* pindexPrev);</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160;</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160;<span class="preprocessor">#endif // BITCOIN_MINER_H</span></div><div class="ttc" id="miner_8h_html_ac8f34678ed590db1325b261c708f2626"><div class="ttname"><a href="miner_8h.html#ac8f34678ed590db1325b261c708f2626">CreateNewBlock</a></div><div class="ttdeci">CBlockTemplate * CreateNewBlock(const CChainParams &amp;chainparams, const CScript &amp;scriptPubKeyIn)</div><div class="ttdef"><b>Definition:</b> <a href="miner_8cpp_source.html#l00077">miner.cpp:77</a></div></div>
<div class="ttc" id="classCWallet_html"><div class="ttname"><a href="classCWallet.html">CWallet</a></div><div class="ttdef"><b>Definition:</b> <a href="wallet_8h_source.html#l00617">wallet.h:617</a></div></div>
<div class="ttc" id="miner_8h_html_a0561c24b413d24bf7beaa91e5b90ccf6"><div class="ttname"><a href="miner_8h.html#a0561c24b413d24bf7beaa91e5b90ccf6">DEFAULT_GENERATE_THREADS</a></div><div class="ttdeci">static const int DEFAULT_GENERATE_THREADS</div><div class="ttdef"><b>Definition:</b> <a href="miner_8h_source.html#l00022">miner.h:22</a></div></div>
<div class="ttc" id="classCConnman_html"><div class="ttname"><a href="classCConnman.html">CConnman</a></div><div class="ttdef"><b>Definition:</b> <a href="net_8h_source.html#l00108">net.h:108</a></div></div>
<div class="ttc" id="structConsensus_1_1Params_html"><div class="ttname"><a href="structConsensus_1_1Params.html">Consensus::Params</a></div><div class="ttdef"><b>Definition:</b> <a href="params_8h_source.html#l00043">params.h:43</a></div></div>
<div class="ttc" id="structCBlockTemplate_html_a66287bde795cc8e8c8cb59c4e2302d49"><div class="ttname"><a href="structCBlockTemplate.html#a66287bde795cc8e8c8cb59c4e2302d49">CBlockTemplate::vTxFees</a></div><div class="ttdeci">std::vector&lt; CAmount &gt; vTxFees</div><div class="ttdef"><b>Definition:</b> <a href="miner_8h_source.html#l00029">miner.h:29</a></div></div>
<div class="ttc" id="classCChainParams_html"><div class="ttname"><a href="classCChainParams.html">CChainParams</a></div><div class="ttdef"><b>Definition:</b> <a href="chainparams_8h_source.html#l00042">chainparams.h:42</a></div></div>
<div class="ttc" id="structCBlockTemplate_html_a13261cbac4dc94f996d1b3ff78e41139"><div class="ttname"><a href="structCBlockTemplate.html#a13261cbac4dc94f996d1b3ff78e41139">CBlockTemplate::block</a></div><div class="ttdeci">CBlock block</div><div class="ttdef"><b>Definition:</b> <a href="miner_8h_source.html#l00028">miner.h:28</a></div></div>
<div class="ttc" id="miner_8h_html_a9c09903c7d6401b5405db02af064179c"><div class="ttname"><a href="miner_8h.html#a9c09903c7d6401b5405db02af064179c">UpdateTime</a></div><div class="ttdeci">int64_t UpdateTime(CBlockHeader *pblock, const Consensus::Params &amp;consensusParams, const CBlockIndex *pindexPrev)</div><div class="ttdef"><b>Definition:</b> <a href="miner_8cpp_source.html#l00062">miner.cpp:62</a></div></div>
<div class="ttc" id="structCBlockTemplate_html_a13326eb92a7d2fc073d9f5660dfcdde5"><div class="ttname"><a href="structCBlockTemplate.html#a13326eb92a7d2fc073d9f5660dfcdde5">CBlockTemplate::vTxSigOps</a></div><div class="ttdeci">std::vector&lt; int64_t &gt; vTxSigOps</div><div class="ttdef"><b>Definition:</b> <a href="miner_8h_source.html#l00030">miner.h:30</a></div></div>
<div class="ttc" id="structCBlockTemplate_html"><div class="ttname"><a href="structCBlockTemplate.html">CBlockTemplate</a></div><div class="ttdef"><b>Definition:</b> <a href="miner_8h_source.html#l00026">miner.h:26</a></div></div>
<div class="ttc" id="miner_8h_html_aa70c6b92d9922a22ef07eabc4a62caa4"><div class="ttname"><a href="miner_8h.html#aa70c6b92d9922a22ef07eabc4a62caa4">DEFAULT_GENERATE</a></div><div class="ttdeci">static const bool DEFAULT_GENERATE</div><div class="ttdef"><b>Definition:</b> <a href="miner_8h_source.html#l00021">miner.h:21</a></div></div>
<div class="ttc" id="classCBlockHeader_html"><div class="ttname"><a href="classCBlockHeader.html">CBlockHeader</a></div><div class="ttdef"><b>Definition:</b> <a href="block_8h_source.html#l00020">block.h:20</a></div></div>
<div class="ttc" id="chainparams_8cpp_html_ace5c5b706d71a324a417dd2db394fd4a"><div class="ttname"><a href="chainparams_8cpp.html#ace5c5b706d71a324a417dd2db394fd4a">Params</a></div><div class="ttdeci">const CChainParams &amp; Params()</div><div class="ttdef"><b>Definition:</b> <a href="chainparams_8cpp_source.html#l00424">chainparams.cpp:424</a></div></div>
<div class="ttc" id="classCReserveKey_html"><div class="ttname"><a href="classCReserveKey.html">CReserveKey</a></div><div class="ttdef"><b>Definition:</b> <a href="wallet_8h_source.html#l01049">wallet.h:1049</a></div></div>
<div class="ttc" id="classCScript_html"><div class="ttname"><a href="classCScript.html">CScript</a></div><div class="ttdef"><b>Definition:</b> <a href="script_8h_source.html#l00373">script.h:373</a></div></div>
<div class="ttc" id="namespaceConsensus_html"><div class="ttname"><a href="namespaceConsensus.html">Consensus</a></div><div class="ttdef"><b>Definition:</b> <a href="params_8h_source.html#l00013">params.h:13</a></div></div>
<div class="ttc" id="classCBlockIndex_html"><div class="ttname"><a href="classCBlockIndex.html">CBlockIndex</a></div><div class="ttdef"><b>Definition:</b> <a href="chain_8h_source.html#l00100">chain.h:100</a></div></div>
<div class="ttc" id="miner_8h_html_a4873920d6e6dc589a2062dd3f17e2e52"><div class="ttname"><a href="miner_8h.html#a4873920d6e6dc589a2062dd3f17e2e52">IncrementExtraNonce</a></div><div class="ttdeci">void IncrementExtraNonce(CBlock *pblock, const CBlockIndex *pindexPrev, unsigned int &amp;nExtraNonce)</div><div class="ttdef"><b>Definition:</b> <a href="miner_8cpp_source.html#l00322">miner.cpp:322</a></div></div>
<div class="ttc" id="miner_8h_html_a535d21266859aff68fa43e6f0092cb2e"><div class="ttname"><a href="miner_8h.html#a535d21266859aff68fa43e6f0092cb2e">DEFAULT_PRINTPRIORITY</a></div><div class="ttdeci">static const bool DEFAULT_PRINTPRIORITY</div><div class="ttdef"><b>Definition:</b> <a href="miner_8h_source.html#l00024">miner.h:24</a></div></div>
<div class="ttc" id="classCBlock_html"><div class="ttname"><a href="classCBlock.html">CBlock</a></div><div class="ttdef"><b>Definition:</b> <a href="block_8h_source.html#l00073">block.h:73</a></div></div>
<div class="ttc" id="miner_8h_html_a5dd1df3c97c260735ad08a808db2115c"><div class="ttname"><a href="miner_8h.html#a5dd1df3c97c260735ad08a808db2115c">GenerateBitcoins</a></div><div class="ttdeci">void GenerateBitcoins(bool fGenerate, int nThreads, const CChainParams &amp;chainparams, CConnman &amp;connman)</div><div class="ttdef"><b>Definition:</b> <a href="miner_8cpp_source.html#l00524">miner.cpp:524</a></div></div>
<div class="ttc" id="block_8h_html"><div class="ttname"><a href="block_8h.html">block.h</a></div></div>
</div><!-- fragment --></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="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="miner_8h.html">miner.h</a></li>
<li class="footer">Generated on Thu Dec 14 2017 13:15:03 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>