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

268 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/wallet/wallet.cpp File 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('wallet_8cpp.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="#nested-classes">Classes</a> &#124;
<a href="#func-members">Functions</a> &#124;
<a href="#var-members">Variables</a> </div>
<div class="headertitle">
<div class="title">wallet.cpp File Reference</div> </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &quot;<a class="el" href="wallet_8h_source.html">wallet/wallet.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="base58_8h_source.html">base58.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="checkpoints_8h_source.html">checkpoints.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="chain_8h_source.html">chain.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="coincontrol_8h_source.html">coincontrol.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="consensus_8h_source.html">consensus/consensus.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="consensus_2validation_8h_source.html">consensus/validation.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="key_8h_source.html">key.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="keystore_8h_source.html">keystore.h</a>&quot;</code><br />
<code>#include &quot;validation.h&quot;</code><br />
<code>#include &quot;<a class="el" href="net_8h_source.html">net.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="policy_8h_source.html">policy/policy.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="block_8h_source.html">primitives/block.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="transaction_8h_source.html">primitives/transaction.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="script_8h_source.html">script/script.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="sign_8h_source.html">script/sign.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="timedata_8h_source.html">timedata.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="txmempool_8h_source.html">txmempool.h</a>&quot;</code><br />
<code>#include &quot;util.h&quot;</code><br />
<code>#include &quot;<a class="el" href="utilmoneystr_8h_source.html">utilmoneystr.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="governance_8h_source.html">governance.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="instantx_8h_source.html">instantx.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="keepass_8h_source.html">keepass.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="privatesend-client_8h_source.html">privatesend-client.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="spork_8h_source.html">spork.h</a>&quot;</code><br />
<code>#include &lt;assert.h&gt;</code><br />
<code>#include &lt;boost/algorithm/string/replace.hpp&gt;</code><br />
<code>#include &lt;boost/filesystem.hpp&gt;</code><br />
<code>#include &lt;boost/thread.hpp&gt;</code><br />
</div>
<p><a href="wallet_8cpp_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structCompareValueOnly.html">CompareValueOnly</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structCompareByPriority.html">CompareByPriority</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structCompareByAmount.html">CompareByAmount</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCAffectedKeysVisitor.html">CAffectedKeysVisitor</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga5120281db2d155cd8254c692267c9d37"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Actions.html#ga5120281db2d155cd8254c692267c9d37">ApproximateBestSubset</a> (vector&lt; pair&lt; <a class="el" href="amount_8h.html#a4eaf3a5239714d8c45b851527f7cb564">CAmount</a>, pair&lt; const <a class="el" href="classCWalletTx.html">CWalletTx</a> *, unsigned int &gt; &gt; &gt;vValue, const <a class="el" href="amount_8h.html#a4eaf3a5239714d8c45b851527f7cb564">CAmount</a> &amp;nTotalLower, const <a class="el" href="amount_8h.html#a4eaf3a5239714d8c45b851527f7cb564">CAmount</a> &amp;nTargetValue, vector&lt; char &gt; &amp;vfBest, <a class="el" href="amount_8h.html#a4eaf3a5239714d8c45b851527f7cb564">CAmount</a> &amp;nBest, int iterations=1000, bool fUseInstantSend=false)</td></tr>
<tr class="separator:ga5120281db2d155cd8254c692267c9d37"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga502a73c6cf145be4a420a8bc75c6a69e"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Actions.html#ga502a73c6cf145be4a420a8bc75c6a69e">less_then_denom</a> (const <a class="el" href="classCOutput.html">COutput</a> &amp;out1, const <a class="el" href="classCOutput.html">COutput</a> &amp;out2)</td></tr>
<tr class="separator:ga502a73c6cf145be4a420a8bc75c6a69e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga854d83cbc2f4a5b993631507ed32aa3a"><td class="memItemLeft" align="right" valign="top">static int64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Actions.html#ga854d83cbc2f4a5b993631507ed32aa3a">GetOldestKeyInPool</a> (const std::set&lt; int64_t &gt; &amp;setKeyPool, <a class="el" href="classCWalletDB.html">CWalletDB</a> &amp;walletdb)</td></tr>
<tr class="separator:ga854d83cbc2f4a5b993631507ed32aa3a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga97f8f562396b32b8e6ee78476087e1b2"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Actions.html#ga97f8f562396b32b8e6ee78476087e1b2">LoadReserveKeysToSet</a> (std::set&lt; <a class="el" href="classCKeyID.html">CKeyID</a> &gt; &amp;setAddress, const std::set&lt; int64_t &gt; &amp;setKeyPool, <a class="el" href="classCWalletDB.html">CWalletDB</a> &amp;walletdb)</td></tr>
<tr class="separator:ga97f8f562396b32b8e6ee78476087e1b2"><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:a306d99326ae3a32749287b1812ac5ea7"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classCFeeRate.html">CFeeRate</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="wallet_8cpp.html#a306d99326ae3a32749287b1812ac5ea7">payTxFee</a> (<a class="el" href="wallet_8h.html#a552380bab1040b682ab9d4a1fca48f2f">DEFAULT_TRANSACTION_FEE</a>)</td></tr>
<tr class="separator:a306d99326ae3a32749287b1812ac5ea7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a77a17dcfb43cece2a434c0a9bfe9e441"><td class="memItemLeft" align="right" valign="top"><a class="el" href="amount_8h.html#a4eaf3a5239714d8c45b851527f7cb564">CAmount</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="wallet_8cpp.html#a77a17dcfb43cece2a434c0a9bfe9e441">maxTxFee</a> = <a class="el" href="wallet_8h.html#a08e44dbb6db8502639f09f72737afd19">DEFAULT_TRANSACTION_MAXFEE</a></td></tr>
<tr class="separator:a77a17dcfb43cece2a434c0a9bfe9e441"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a98515175145feea7ec9776cbf202e446"><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="wallet_8cpp.html#a98515175145feea7ec9776cbf202e446">nTxConfirmTarget</a> = <a class="el" href="wallet_8h.html#a31d13bcc9bac14a52ca62a93088f115d">DEFAULT_TX_CONFIRM_TARGET</a></td></tr>
<tr class="separator:a98515175145feea7ec9776cbf202e446"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a755a19591df8d2f5079c1f7132c65642"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="wallet_8cpp.html#a755a19591df8d2f5079c1f7132c65642">bSpendZeroConfChange</a> = <a class="el" href="wallet_8h.html#a7f01c5239c67e07b5bd29405b65ee46a">DEFAULT_SPEND_ZEROCONF_CHANGE</a></td></tr>
<tr class="separator:a755a19591df8d2f5079c1f7132c65642"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acfb04198cec6dc995cbc6adf98e575d3"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="wallet_8cpp.html#acfb04198cec6dc995cbc6adf98e575d3">fSendFreeTransactions</a> = <a class="el" href="wallet_8h.html#aa805d0c9ae7328aa3e88dca182c186f5">DEFAULT_SEND_FREE_TRANSACTIONS</a></td></tr>
<tr class="separator:acfb04198cec6dc995cbc6adf98e575d3"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Variable Documentation</h2>
<a id="a755a19591df8d2f5079c1f7132c65642"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a755a19591df8d2f5079c1f7132c65642">&#9670;&nbsp;</a></span>bSpendZeroConfChange</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool bSpendZeroConfChange = <a class="el" href="wallet_8h.html#a7f01c5239c67e07b5bd29405b65ee46a">DEFAULT_SPEND_ZEROCONF_CHANGE</a></td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="wallet_8cpp_source.html#l00048">48</a> of file <a class="el" href="wallet_8cpp_source.html">wallet.cpp</a>.</p>
<p class="reference">Referenced by <a class="el" href="init_8cpp_source.html#l00942">AppInit2()</a>, <a class="el" href="wallet_8cpp_source.html#l02041">CWalletTx::IsTrusted()</a>, and <a class="el" href="wallet_8cpp_source.html#l02623">CWallet::SelectCoins()</a>.</p>
</div>
</div>
<a id="acfb04198cec6dc995cbc6adf98e575d3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acfb04198cec6dc995cbc6adf98e575d3">&#9670;&nbsp;</a></span>fSendFreeTransactions</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool fSendFreeTransactions = <a class="el" href="wallet_8h.html#aa805d0c9ae7328aa3e88dca182c186f5">DEFAULT_SEND_FREE_TRANSACTIONS</a></td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="wallet_8cpp_source.html#l00049">49</a> of file <a class="el" href="wallet_8cpp_source.html">wallet.cpp</a>.</p>
<p class="reference">Referenced by <a class="el" href="init_8cpp_source.html#l00942">AppInit2()</a>, <a class="el" href="wallet_8cpp_source.html#l03173">CWallet::CreateTransaction()</a>, <a class="el" href="sendcoinsdialog_8cpp_source.html#l00702">SendCoinsDialog::updateGlobalFeeVariables()</a>, and <a class="el" href="coincontroldialog_8cpp_source.html#l00479">CoinControlDialog::updateLabels()</a>.</p>
</div>
</div>
<a id="a77a17dcfb43cece2a434c0a9bfe9e441"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a77a17dcfb43cece2a434c0a9bfe9e441">&#9670;&nbsp;</a></span>maxTxFee</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="amount_8h.html#a4eaf3a5239714d8c45b851527f7cb564">CAmount</a> maxTxFee = <a class="el" href="wallet_8h.html#a08e44dbb6db8502639f09f72737afd19">DEFAULT_TRANSACTION_MAXFEE</a></td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="wallet_8cpp_source.html#l00046">46</a> of file <a class="el" href="wallet_8cpp_source.html">wallet.cpp</a>.</p>
<p class="reference">Referenced by <a class="el" href="init_8cpp_source.html#l00942">AppInit2()</a>, <a class="el" href="wallet_8cpp_source.html#l03596">CWallet::GetMinimumFee()</a>, <a class="el" href="walletmodel_8cpp_source.html#l00218">WalletModel::prepareTransaction()</a>, and <a class="el" href="sendcoinsdialog_8cpp_source.html#l00609">SendCoinsDialog::processSendCoinsReturn()</a>.</p>
</div>
</div>
<a id="a98515175145feea7ec9776cbf202e446"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a98515175145feea7ec9776cbf202e446">&#9670;&nbsp;</a></span>nTxConfirmTarget</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">unsigned int nTxConfirmTarget = <a class="el" href="wallet_8h.html#a31d13bcc9bac14a52ca62a93088f115d">DEFAULT_TX_CONFIRM_TARGET</a></td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="wallet_8cpp_source.html#l00047">47</a> of file <a class="el" href="wallet_8cpp_source.html">wallet.cpp</a>.</p>
<p class="reference">Referenced by <a class="el" href="init_8cpp_source.html#l00942">AppInit2()</a>, <a class="el" href="wallet_8cpp_source.html#l03173">CWallet::CreateTransaction()</a>, <a class="el" href="sendcoinsdialog_8cpp_source.html#l00702">SendCoinsDialog::updateGlobalFeeVariables()</a>, and <a class="el" href="coincontroldialog_8cpp_source.html#l00479">CoinControlDialog::updateLabels()</a>.</p>
</div>
</div>
<a id="a306d99326ae3a32749287b1812ac5ea7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a306d99326ae3a32749287b1812ac5ea7">&#9670;&nbsp;</a></span>payTxFee</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classCFeeRate.html">CFeeRate</a> payTxFee(<a class="el" href="wallet_8h.html#a552380bab1040b682ab9d4a1fca48f2f">DEFAULT_TRANSACTION_FEE</a>)</td>
</tr>
</table>
</div><div class="memdoc">
<p>Transaction fee set by the user </p>
<p class="reference">Referenced by <a class="el" href="init_8cpp_source.html#l00942">AppInit2()</a>, <a class="el" href="misc_8cpp_source.html#l00047">getinfo()</a>, <a class="el" href="wallet_8cpp_source.html#l03596">CWallet::GetMinimumFee()</a>, <a class="el" href="rpcwallet_8cpp_source.html#l02376">getwalletinfo()</a>, <a class="el" href="init_8cpp_source.html#l00384">HelpMessage()</a>, <a class="el" href="rpcwallet_8cpp_source.html#l02349">settxfee()</a>, <a class="el" href="sendcoinsdialog_8cpp_source.html#l00702">SendCoinsDialog::updateGlobalFeeVariables()</a>, and <a class="el" href="coincontroldialog_8cpp_source.html#l00479">CoinControlDialog::updateLabels()</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="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_e91c81f9be83f649fcd1d8691438a113.html">wallet</a></li><li class="navelem"><a class="el" href="wallet_8cpp.html">wallet.cpp</a></li>
<li class="footer">Generated on Thu Dec 14 2017 13:15:11 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>