mirror of
https://github.com/seigler/dash-docs
synced 2025-07-27 17:56:16 +00:00
138 lines
34 KiB
HTML
138 lines
34 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/spentindex.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&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
|
|
 <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&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&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&dn=gpl-2.0.txt GPL-v2 */
|
|
$(document).ready(function(){initNavTree('spentindex_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">spentindex.h</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<a href="spentindex_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> <span class="comment">// Copyright (c) 2009-2010 Satoshi Nakamoto</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <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> <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> <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> </div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="preprocessor">#ifndef BITCOIN_SPENTINDEX_H</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="preprocessor">#define BITCOIN_SPENTINDEX_H</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> </div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="preprocessor">#include "<a class="code" href="uint256_8h.html">uint256.h</a>"</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="preprocessor">#include "<a class="code" href="amount_8h.html">amount.h</a>"</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> </div><div class="line"><a name="l00012"></a><span class="lineno"><a class="line" href="structCSpentIndexKey.html"> 12</a></span> <span class="keyword">struct </span><a class="code" href="structCSpentIndexKey.html">CSpentIndexKey</a> {</div><div class="line"><a name="l00013"></a><span class="lineno"><a class="line" href="structCSpentIndexKey.html#a98f9dd57f9af971b4787ad7ede026f43"> 13</a></span>  <a class="code" href="classuint256.html">uint256</a> <a class="code" href="structCSpentIndexKey.html#a98f9dd57f9af971b4787ad7ede026f43">txid</a>;</div><div class="line"><a name="l00014"></a><span class="lineno"><a class="line" href="structCSpentIndexKey.html#a13e6f9f822146526c8112acce999a709"> 14</a></span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="structCSpentIndexKey.html#a13e6f9f822146526c8112acce999a709">outputIndex</a>;</div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> </div><div class="line"><a name="l00016"></a><span class="lineno"><a class="line" href="structCSpentIndexKey.html#a4fcfc6a12bc3fdea29994a569c204315"> 16</a></span>  <a class="code" href="structCSpentIndexKey.html#a4fcfc6a12bc3fdea29994a569c204315">ADD_SERIALIZE_METHODS</a>;</div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> </div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> Stream, <span class="keyword">typename</span> Operation></div><div class="line"><a name="l00019"></a><span class="lineno"><a class="line" href="structCSpentIndexKey.html#a1bd965f78b96ed61cf3c51ef36380d82"> 19</a></span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="structCSpentIndexKey.html#a1bd965f78b96ed61cf3c51ef36380d82">SerializationOp</a>(Stream& s, Operation ser_action, <span class="keywordtype">int</span> nType, <span class="keywordtype">int</span> nVersion) {</div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>  <a class="code" href="serialize_8h.html#a4d7fc7040e01003a01f367b8d90324f1">READWRITE</a>(<a class="code" href="structCSpentIndexKey.html#a98f9dd57f9af971b4787ad7ede026f43">txid</a>);</div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>  <a class="code" href="serialize_8h.html#a4d7fc7040e01003a01f367b8d90324f1">READWRITE</a>(<a class="code" href="structCSpentIndexKey.html#a13e6f9f822146526c8112acce999a709">outputIndex</a>);</div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>  }</div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> </div><div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="structCSpentIndexKey.html#a15000293a642ba8401427d55e94f3991"> 24</a></span>  <a class="code" href="structCSpentIndexKey.html#a15000293a642ba8401427d55e94f3991">CSpentIndexKey</a>(<a class="code" href="classuint256.html">uint256</a> t, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i) {</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>  <a class="code" href="structCSpentIndexKey.html#a98f9dd57f9af971b4787ad7ede026f43">txid</a> = t;</div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  <a class="code" href="structCSpentIndexKey.html#a13e6f9f822146526c8112acce999a709">outputIndex</a> = i;</div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  }</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> </div><div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="structCSpentIndexKey.html#a06486e70f11c6184e27247cc17fc37c1"> 29</a></span>  <a class="code" href="structCSpentIndexKey.html#a06486e70f11c6184e27247cc17fc37c1">CSpentIndexKey</a>() {</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  <a class="code" href="structCSpentIndexKey.html#aebd848cd3e3e416c96517526fba9a20b">SetNull</a>();</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  }</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span> </div><div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="structCSpentIndexKey.html#aebd848cd3e3e416c96517526fba9a20b"> 33</a></span>  <span class="keywordtype">void</span> <a class="code" href="structCSpentIndexKey.html#aebd848cd3e3e416c96517526fba9a20b">SetNull</a>() {</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  <a class="code" href="structCSpentIndexKey.html#a98f9dd57f9af971b4787ad7ede026f43">txid</a>.<a class="code" href="classbase__blob.html#aa340be5328d911272eded433d03f30a3">SetNull</a>();</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  <a class="code" href="structCSpentIndexKey.html#a13e6f9f822146526c8112acce999a709">outputIndex</a> = 0;</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  }</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span> </div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span> };</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span> </div><div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="structCSpentIndexValue.html"> 40</a></span> <span class="keyword">struct </span><a class="code" href="structCSpentIndexValue.html">CSpentIndexValue</a> {</div><div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="structCSpentIndexValue.html#aad16faff9e2d74359d977986911bac33"> 41</a></span>  <a class="code" href="classuint256.html">uint256</a> <a class="code" href="structCSpentIndexValue.html#aad16faff9e2d74359d977986911bac33">txid</a>;</div><div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="structCSpentIndexValue.html#a1f66a53ec4ef540b51e4787e842ae88c"> 42</a></span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="structCSpentIndexValue.html#a1f66a53ec4ef540b51e4787e842ae88c">inputIndex</a>;</div><div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="structCSpentIndexValue.html#ad2e454112b9830af46480a9ee3040fb4"> 43</a></span>  <span class="keywordtype">int</span> <a class="code" href="structCSpentIndexValue.html#ad2e454112b9830af46480a9ee3040fb4">blockHeight</a>;</div><div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="structCSpentIndexValue.html#a4dc408ea5e141e426395091a692f39cc"> 44</a></span>  <a class="code" href="amount_8h.html#a4eaf3a5239714d8c45b851527f7cb564">CAmount</a> <a class="code" href="structCSpentIndexValue.html#a4dc408ea5e141e426395091a692f39cc">satoshis</a>;</div><div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="structCSpentIndexValue.html#ad942d5cdcbe531184ca8050ba583fa97"> 45</a></span>  <span class="keywordtype">int</span> <a class="code" href="structCSpentIndexValue.html#ad942d5cdcbe531184ca8050ba583fa97">addressType</a>;</div><div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="structCSpentIndexValue.html#a2aeee131cb911ca46d4a59daadf10c3e"> 46</a></span>  <a class="code" href="classuint160.html">uint160</a> <a class="code" href="structCSpentIndexValue.html#a2aeee131cb911ca46d4a59daadf10c3e">addressHash</a>;</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span> </div><div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="structCSpentIndexValue.html#ab0aeeb8b997ba0d025b40663efcc178c"> 48</a></span>  <a class="code" href="structCSpentIndexValue.html#ab0aeeb8b997ba0d025b40663efcc178c">ADD_SERIALIZE_METHODS</a>;</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span> </div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> Stream, <span class="keyword">typename</span> Operation></div><div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="structCSpentIndexValue.html#a8b617f5616dc075afa35abe3b33ae508"> 51</a></span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="structCSpentIndexValue.html#a8b617f5616dc075afa35abe3b33ae508">SerializationOp</a>(Stream& s, Operation ser_action, <span class="keywordtype">int</span> nType, <span class="keywordtype">int</span> nVersion) {</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  <a class="code" href="serialize_8h.html#a4d7fc7040e01003a01f367b8d90324f1">READWRITE</a>(<a class="code" href="structCSpentIndexValue.html#aad16faff9e2d74359d977986911bac33">txid</a>);</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  <a class="code" href="serialize_8h.html#a4d7fc7040e01003a01f367b8d90324f1">READWRITE</a>(<a class="code" href="structCSpentIndexValue.html#a1f66a53ec4ef540b51e4787e842ae88c">inputIndex</a>);</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  <a class="code" href="serialize_8h.html#a4d7fc7040e01003a01f367b8d90324f1">READWRITE</a>(<a class="code" href="structCSpentIndexValue.html#ad2e454112b9830af46480a9ee3040fb4">blockHeight</a>);</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  <a class="code" href="serialize_8h.html#a4d7fc7040e01003a01f367b8d90324f1">READWRITE</a>(<a class="code" href="structCSpentIndexValue.html#a4dc408ea5e141e426395091a692f39cc">satoshis</a>);</div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <a class="code" href="serialize_8h.html#a4d7fc7040e01003a01f367b8d90324f1">READWRITE</a>(<a class="code" href="structCSpentIndexValue.html#ad942d5cdcbe531184ca8050ba583fa97">addressType</a>);</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  <a class="code" href="serialize_8h.html#a4d7fc7040e01003a01f367b8d90324f1">READWRITE</a>(<a class="code" href="structCSpentIndexValue.html#a2aeee131cb911ca46d4a59daadf10c3e">addressHash</a>);</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  }</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span> </div><div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="structCSpentIndexValue.html#a1b4bd7a916283df5d46a685ab442e299"> 60</a></span>  <a class="code" href="structCSpentIndexValue.html#a1b4bd7a916283df5d46a685ab442e299">CSpentIndexValue</a>(<a class="code" href="classuint256.html">uint256</a> t, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i, <span class="keywordtype">int</span> h, <a class="code" href="amount_8h.html#a4eaf3a5239714d8c45b851527f7cb564">CAmount</a> s, <span class="keywordtype">int</span> type, <a class="code" href="classuint160.html">uint160</a> a) {</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <a class="code" href="structCSpentIndexValue.html#aad16faff9e2d74359d977986911bac33">txid</a> = t;</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  <a class="code" href="structCSpentIndexValue.html#a1f66a53ec4ef540b51e4787e842ae88c">inputIndex</a> = i;</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  <a class="code" href="structCSpentIndexValue.html#ad2e454112b9830af46480a9ee3040fb4">blockHeight</a> = h;</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  <a class="code" href="structCSpentIndexValue.html#a4dc408ea5e141e426395091a692f39cc">satoshis</a> = s;</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  <a class="code" href="structCSpentIndexValue.html#ad942d5cdcbe531184ca8050ba583fa97">addressType</a> = type;</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  <a class="code" href="structCSpentIndexValue.html#a2aeee131cb911ca46d4a59daadf10c3e">addressHash</a> = a;</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  }</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span> </div><div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="structCSpentIndexValue.html#a5f7902635cf2cb54ffc48b1f83405753"> 69</a></span>  <a class="code" href="structCSpentIndexValue.html#a5f7902635cf2cb54ffc48b1f83405753">CSpentIndexValue</a>() {</div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  <a class="code" href="structCSpentIndexValue.html#a7f192b517b49e009d5e8ab1dca9f429d">SetNull</a>();</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  }</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span> </div><div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="structCSpentIndexValue.html#a7f192b517b49e009d5e8ab1dca9f429d"> 73</a></span>  <span class="keywordtype">void</span> <a class="code" href="structCSpentIndexValue.html#a7f192b517b49e009d5e8ab1dca9f429d">SetNull</a>() {</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <a class="code" href="structCSpentIndexValue.html#aad16faff9e2d74359d977986911bac33">txid</a>.<a class="code" href="classbase__blob.html#aa340be5328d911272eded433d03f30a3">SetNull</a>();</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  <a class="code" href="structCSpentIndexValue.html#a1f66a53ec4ef540b51e4787e842ae88c">inputIndex</a> = 0;</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  <a class="code" href="structCSpentIndexValue.html#ad2e454112b9830af46480a9ee3040fb4">blockHeight</a> = 0;</div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  <a class="code" href="structCSpentIndexValue.html#a4dc408ea5e141e426395091a692f39cc">satoshis</a> = 0;</div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  <a class="code" href="structCSpentIndexValue.html#ad942d5cdcbe531184ca8050ba583fa97">addressType</a> = 0;</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  <a class="code" href="structCSpentIndexValue.html#a2aeee131cb911ca46d4a59daadf10c3e">addressHash</a>.<a class="code" href="classbase__blob.html#aa340be5328d911272eded433d03f30a3">SetNull</a>();</div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  }</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span> </div><div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="structCSpentIndexValue.html#a296c78f5ded6222a7f1e93f4697f32d9"> 82</a></span>  <span class="keywordtype">bool</span> <a class="code" href="structCSpentIndexValue.html#a296c78f5ded6222a7f1e93f4697f32d9">IsNull</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  <span class="keywordflow">return</span> <a class="code" href="structCSpentIndexValue.html#aad16faff9e2d74359d977986911bac33">txid</a>.<a class="code" href="classbase__blob.html#aba89c6722866a5850882a509d27d7bbd">IsNull</a>();</div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  }</div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span> };</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span> </div><div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="structCSpentIndexKeyCompare.html"> 87</a></span> <span class="keyword">struct </span><a class="code" href="structCSpentIndexKeyCompare.html">CSpentIndexKeyCompare</a></div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span> {</div><div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="structCSpentIndexKeyCompare.html#a64b75193a523be2b351cd8e382bcef41"> 89</a></span>  <span class="keywordtype">bool</span> <a class="code" href="structCSpentIndexKeyCompare.html#a64b75193a523be2b351cd8e382bcef41">operator()</a>(<span class="keyword">const</span> <a class="code" href="structCSpentIndexKey.html">CSpentIndexKey</a>& a, <span class="keyword">const</span> <a class="code" href="structCSpentIndexKey.html">CSpentIndexKey</a>& b)<span class="keyword"> const </span>{</div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  <span class="keywordflow">if</span> (a.<a class="code" href="structCSpentIndexKey.html#a98f9dd57f9af971b4787ad7ede026f43">txid</a> == b.<a class="code" href="structCSpentIndexKey.html#a98f9dd57f9af971b4787ad7ede026f43">txid</a>) {</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  <span class="keywordflow">return</span> a.<a class="code" href="structCSpentIndexKey.html#a13e6f9f822146526c8112acce999a709">outputIndex</a> < b.<a class="code" href="structCSpentIndexKey.html#a13e6f9f822146526c8112acce999a709">outputIndex</a>;</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  } <span class="keywordflow">else</span> {</div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  <span class="keywordflow">return</span> a.<a class="code" href="structCSpentIndexKey.html#a98f9dd57f9af971b4787ad7ede026f43">txid</a> < b.<a class="code" href="structCSpentIndexKey.html#a98f9dd57f9af971b4787ad7ede026f43">txid</a>;</div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  }</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  }</div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span> };</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span> </div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span> <span class="preprocessor">#endif // BITCOIN_SPENTINDEX_H</span></div><div class="ttc" id="classbase__blob_html_aa340be5328d911272eded433d03f30a3"><div class="ttname"><a href="classbase__blob.html#aa340be5328d911272eded433d03f30a3">base_blob::SetNull</a></div><div class="ttdeci">void SetNull()</div><div class="ttdef"><b>Definition:</b> <a href="uint256_8h_source.html#l00041">uint256.h:41</a></div></div>
|
|
<div class="ttc" id="serialize_8h_html_a4d7fc7040e01003a01f367b8d90324f1"><div class="ttname"><a href="serialize_8h.html#a4d7fc7040e01003a01f367b8d90324f1">READWRITE</a></div><div class="ttdeci">#define READWRITE(obj)</div><div class="ttdef"><b>Definition:</b> <a href="serialize_8h_source.html#l00175">serialize.h:175</a></div></div>
|
|
<div class="ttc" id="structCSpentIndexKey_html_a98f9dd57f9af971b4787ad7ede026f43"><div class="ttname"><a href="structCSpentIndexKey.html#a98f9dd57f9af971b4787ad7ede026f43">CSpentIndexKey::txid</a></div><div class="ttdeci">uint256 txid</div><div class="ttdef"><b>Definition:</b> <a href="spentindex_8h_source.html#l00013">spentindex.h:13</a></div></div>
|
|
<div class="ttc" id="structCSpentIndexKey_html_a4fcfc6a12bc3fdea29994a569c204315"><div class="ttname"><a href="structCSpentIndexKey.html#a4fcfc6a12bc3fdea29994a569c204315">CSpentIndexKey::ADD_SERIALIZE_METHODS</a></div><div class="ttdeci">ADD_SERIALIZE_METHODS</div><div class="ttdef"><b>Definition:</b> <a href="spentindex_8h_source.html#l00016">spentindex.h:16</a></div></div>
|
|
<div class="ttc" id="structCSpentIndexValue_html_a1f66a53ec4ef540b51e4787e842ae88c"><div class="ttname"><a href="structCSpentIndexValue.html#a1f66a53ec4ef540b51e4787e842ae88c">CSpentIndexValue::inputIndex</a></div><div class="ttdeci">unsigned int inputIndex</div><div class="ttdef"><b>Definition:</b> <a href="spentindex_8h_source.html#l00042">spentindex.h:42</a></div></div>
|
|
<div class="ttc" id="structCSpentIndexKey_html_a13e6f9f822146526c8112acce999a709"><div class="ttname"><a href="structCSpentIndexKey.html#a13e6f9f822146526c8112acce999a709">CSpentIndexKey::outputIndex</a></div><div class="ttdeci">unsigned int outputIndex</div><div class="ttdef"><b>Definition:</b> <a href="spentindex_8h_source.html#l00014">spentindex.h:14</a></div></div>
|
|
<div class="ttc" id="structCSpentIndexKeyCompare_html_a64b75193a523be2b351cd8e382bcef41"><div class="ttname"><a href="structCSpentIndexKeyCompare.html#a64b75193a523be2b351cd8e382bcef41">CSpentIndexKeyCompare::operator()</a></div><div class="ttdeci">bool operator()(const CSpentIndexKey &a, const CSpentIndexKey &b) const</div><div class="ttdef"><b>Definition:</b> <a href="spentindex_8h_source.html#l00089">spentindex.h:89</a></div></div>
|
|
<div class="ttc" id="structCSpentIndexValue_html_a2aeee131cb911ca46d4a59daadf10c3e"><div class="ttname"><a href="structCSpentIndexValue.html#a2aeee131cb911ca46d4a59daadf10c3e">CSpentIndexValue::addressHash</a></div><div class="ttdeci">uint160 addressHash</div><div class="ttdef"><b>Definition:</b> <a href="spentindex_8h_source.html#l00046">spentindex.h:46</a></div></div>
|
|
<div class="ttc" id="structCSpentIndexKeyCompare_html"><div class="ttname"><a href="structCSpentIndexKeyCompare.html">CSpentIndexKeyCompare</a></div><div class="ttdef"><b>Definition:</b> <a href="spentindex_8h_source.html#l00087">spentindex.h:87</a></div></div>
|
|
<div class="ttc" id="classbase__blob_html_aba89c6722866a5850882a509d27d7bbd"><div class="ttname"><a href="classbase__blob.html#aba89c6722866a5850882a509d27d7bbd">base_blob::IsNull</a></div><div class="ttdeci">bool IsNull() const</div><div class="ttdef"><b>Definition:</b> <a href="uint256_8h_source.html#l00033">uint256.h:33</a></div></div>
|
|
<div class="ttc" id="amount_8h_html_a4eaf3a5239714d8c45b851527f7cb564"><div class="ttname"><a href="amount_8h.html#a4eaf3a5239714d8c45b851527f7cb564">CAmount</a></div><div class="ttdeci">int64_t CAmount</div><div class="ttdef"><b>Definition:</b> <a href="amount_8h_source.html#l00014">amount.h:14</a></div></div>
|
|
<div class="ttc" id="structCSpentIndexValue_html_ad942d5cdcbe531184ca8050ba583fa97"><div class="ttname"><a href="structCSpentIndexValue.html#ad942d5cdcbe531184ca8050ba583fa97">CSpentIndexValue::addressType</a></div><div class="ttdeci">int addressType</div><div class="ttdef"><b>Definition:</b> <a href="spentindex_8h_source.html#l00045">spentindex.h:45</a></div></div>
|
|
<div class="ttc" id="structCSpentIndexValue_html_ab0aeeb8b997ba0d025b40663efcc178c"><div class="ttname"><a href="structCSpentIndexValue.html#ab0aeeb8b997ba0d025b40663efcc178c">CSpentIndexValue::ADD_SERIALIZE_METHODS</a></div><div class="ttdeci">ADD_SERIALIZE_METHODS</div><div class="ttdef"><b>Definition:</b> <a href="spentindex_8h_source.html#l00048">spentindex.h:48</a></div></div>
|
|
<div class="ttc" id="structCSpentIndexValue_html"><div class="ttname"><a href="structCSpentIndexValue.html">CSpentIndexValue</a></div><div class="ttdef"><b>Definition:</b> <a href="spentindex_8h_source.html#l00040">spentindex.h:40</a></div></div>
|
|
<div class="ttc" id="structCSpentIndexValue_html_aad16faff9e2d74359d977986911bac33"><div class="ttname"><a href="structCSpentIndexValue.html#aad16faff9e2d74359d977986911bac33">CSpentIndexValue::txid</a></div><div class="ttdeci">uint256 txid</div><div class="ttdef"><b>Definition:</b> <a href="spentindex_8h_source.html#l00041">spentindex.h:41</a></div></div>
|
|
<div class="ttc" id="structCSpentIndexKey_html_a06486e70f11c6184e27247cc17fc37c1"><div class="ttname"><a href="structCSpentIndexKey.html#a06486e70f11c6184e27247cc17fc37c1">CSpentIndexKey::CSpentIndexKey</a></div><div class="ttdeci">CSpentIndexKey()</div><div class="ttdef"><b>Definition:</b> <a href="spentindex_8h_source.html#l00029">spentindex.h:29</a></div></div>
|
|
<div class="ttc" id="structCSpentIndexValue_html_ad2e454112b9830af46480a9ee3040fb4"><div class="ttname"><a href="structCSpentIndexValue.html#ad2e454112b9830af46480a9ee3040fb4">CSpentIndexValue::blockHeight</a></div><div class="ttdeci">int blockHeight</div><div class="ttdef"><b>Definition:</b> <a href="spentindex_8h_source.html#l00043">spentindex.h:43</a></div></div>
|
|
<div class="ttc" id="structCSpentIndexValue_html_a7f192b517b49e009d5e8ab1dca9f429d"><div class="ttname"><a href="structCSpentIndexValue.html#a7f192b517b49e009d5e8ab1dca9f429d">CSpentIndexValue::SetNull</a></div><div class="ttdeci">void SetNull()</div><div class="ttdef"><b>Definition:</b> <a href="spentindex_8h_source.html#l00073">spentindex.h:73</a></div></div>
|
|
<div class="ttc" id="structCSpentIndexValue_html_a5f7902635cf2cb54ffc48b1f83405753"><div class="ttname"><a href="structCSpentIndexValue.html#a5f7902635cf2cb54ffc48b1f83405753">CSpentIndexValue::CSpentIndexValue</a></div><div class="ttdeci">CSpentIndexValue()</div><div class="ttdef"><b>Definition:</b> <a href="spentindex_8h_source.html#l00069">spentindex.h:69</a></div></div>
|
|
<div class="ttc" id="structCSpentIndexValue_html_a4dc408ea5e141e426395091a692f39cc"><div class="ttname"><a href="structCSpentIndexValue.html#a4dc408ea5e141e426395091a692f39cc">CSpentIndexValue::satoshis</a></div><div class="ttdeci">CAmount satoshis</div><div class="ttdef"><b>Definition:</b> <a href="spentindex_8h_source.html#l00044">spentindex.h:44</a></div></div>
|
|
<div class="ttc" id="structCSpentIndexKey_html_aebd848cd3e3e416c96517526fba9a20b"><div class="ttname"><a href="structCSpentIndexKey.html#aebd848cd3e3e416c96517526fba9a20b">CSpentIndexKey::SetNull</a></div><div class="ttdeci">void SetNull()</div><div class="ttdef"><b>Definition:</b> <a href="spentindex_8h_source.html#l00033">spentindex.h:33</a></div></div>
|
|
<div class="ttc" id="classuint256_html"><div class="ttname"><a href="classuint256.html">uint256</a></div><div class="ttdef"><b>Definition:</b> <a href="uint256_8h_source.html#l00114">uint256.h:114</a></div></div>
|
|
<div class="ttc" id="structCSpentIndexKey_html_a1bd965f78b96ed61cf3c51ef36380d82"><div class="ttname"><a href="structCSpentIndexKey.html#a1bd965f78b96ed61cf3c51ef36380d82">CSpentIndexKey::SerializationOp</a></div><div class="ttdeci">void SerializationOp(Stream &s, Operation ser_action, int nType, int nVersion)</div><div class="ttdef"><b>Definition:</b> <a href="spentindex_8h_source.html#l00019">spentindex.h:19</a></div></div>
|
|
<div class="ttc" id="structCSpentIndexKey_html"><div class="ttname"><a href="structCSpentIndexKey.html">CSpentIndexKey</a></div><div class="ttdef"><b>Definition:</b> <a href="spentindex_8h_source.html#l00012">spentindex.h:12</a></div></div>
|
|
<div class="ttc" id="uint256_8h_html"><div class="ttname"><a href="uint256_8h.html">uint256.h</a></div></div>
|
|
<div class="ttc" id="classuint160_html"><div class="ttname"><a href="classuint160.html">uint160</a></div><div class="ttdef"><b>Definition:</b> <a href="uint256_8h_source.html#l00102">uint256.h:102</a></div></div>
|
|
<div class="ttc" id="amount_8h_html"><div class="ttname"><a href="amount_8h.html">amount.h</a></div></div>
|
|
<div class="ttc" id="structCSpentIndexValue_html_a296c78f5ded6222a7f1e93f4697f32d9"><div class="ttname"><a href="structCSpentIndexValue.html#a296c78f5ded6222a7f1e93f4697f32d9">CSpentIndexValue::IsNull</a></div><div class="ttdeci">bool IsNull() const</div><div class="ttdef"><b>Definition:</b> <a href="spentindex_8h_source.html#l00082">spentindex.h:82</a></div></div>
|
|
<div class="ttc" id="structCSpentIndexValue_html_a8b617f5616dc075afa35abe3b33ae508"><div class="ttname"><a href="structCSpentIndexValue.html#a8b617f5616dc075afa35abe3b33ae508">CSpentIndexValue::SerializationOp</a></div><div class="ttdeci">void SerializationOp(Stream &s, Operation ser_action, int nType, int nVersion)</div><div class="ttdef"><b>Definition:</b> <a href="spentindex_8h_source.html#l00051">spentindex.h:51</a></div></div>
|
|
<div class="ttc" id="structCSpentIndexKey_html_a15000293a642ba8401427d55e94f3991"><div class="ttname"><a href="structCSpentIndexKey.html#a15000293a642ba8401427d55e94f3991">CSpentIndexKey::CSpentIndexKey</a></div><div class="ttdeci">CSpentIndexKey(uint256 t, unsigned int i)</div><div class="ttdef"><b>Definition:</b> <a href="spentindex_8h_source.html#l00024">spentindex.h:24</a></div></div>
|
|
<div class="ttc" id="structCSpentIndexValue_html_a1b4bd7a916283df5d46a685ab442e299"><div class="ttname"><a href="structCSpentIndexValue.html#a1b4bd7a916283df5d46a685ab442e299">CSpentIndexValue::CSpentIndexValue</a></div><div class="ttdeci">CSpentIndexValue(uint256 t, unsigned int i, int h, CAmount s, int type, uint160 a)</div><div class="ttdef"><b>Definition:</b> <a href="spentindex_8h_source.html#l00060">spentindex.h:60</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="spentindex_8h.html">spentindex.h</a></li>
|
|
<li class="footer">Generated on Thu Dec 14 2017 13:15:09 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>
|