mirror of
https://github.com/seigler/dash-docs
synced 2025-07-27 09:46:12 +00:00
124 lines
26 KiB
HTML
124 lines
26 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: qa/rpc-tests/getblocktemplate_longpoll.py 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('getblocktemplate__longpoll_8py_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">getblocktemplate_longpoll.py</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<a href="getblocktemplate__longpoll_8py.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"><a class="line" href="namespacegetblocktemplate__longpoll.html"> 1</a></span> <span class="comment">#!/usr/bin/env python2</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"># Copyright (c) 2014-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="keyword">from</span> <a class="code" href="namespacetest__framework_1_1test__framework.html">test_framework.test_framework</a> <span class="keyword">import</span> BitcoinTestFramework</div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="keyword">from</span> <a class="code" href="namespacetest__framework_1_1util.html">test_framework.util</a> <span class="keyword">import</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="keyword">import</span> threading</div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> </div><div class="line"><a name="l00011"></a><span class="lineno"><a class="line" href="classgetblocktemplate__longpoll_1_1LongpollThread.html"> 11</a></span> <span class="keyword">class </span><a class="code" href="classgetblocktemplate__longpoll_1_1LongpollThread.html">LongpollThread</a>(threading.Thread):</div><div class="line"><a name="l00012"></a><span class="lineno"><a class="line" href="classgetblocktemplate__longpoll_1_1LongpollThread.html#a7750b26362e4e0f5c0b61f4340c86dfe"> 12</a></span>  <span class="keyword">def </span><a class="code" href="classgetblocktemplate__longpoll_1_1LongpollThread.html#a7750b26362e4e0f5c0b61f4340c86dfe">__init__</a>(self, node):</div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span>  threading.Thread.__init__(self)</div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span>  <span class="comment"># query current longpollid</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span>  templat = node.getblocktemplate()</div><div class="line"><a name="l00016"></a><span class="lineno"><a class="line" href="classgetblocktemplate__longpoll_1_1LongpollThread.html#a666f8fa3facffcd5f603060512570e9c"> 16</a></span>  self.<a class="code" href="classgetblocktemplate__longpoll_1_1LongpollThread.html#a666f8fa3facffcd5f603060512570e9c">longpollid</a> = templat[<span class="stringliteral">'longpollid'</span>]</div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span>  <span class="comment"># create a new connection to the node, we can't use the same</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span>  <span class="comment"># connection from two threads</span></div><div class="line"><a name="l00019"></a><span class="lineno"><a class="line" href="classgetblocktemplate__longpoll_1_1LongpollThread.html#ab032788e75faa4f3f4bc99ca2e52f0d3"> 19</a></span>  self.<a class="code" href="classgetblocktemplate__longpoll_1_1LongpollThread.html#ab032788e75faa4f3f4bc99ca2e52f0d3">node</a> = <a class="code" href="namespacetest__framework_1_1util.html#adf11fca732419a7289c9d119119b34f2">get_rpc_proxy</a>(node.url, 1, timeout=600)</div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> </div><div class="line"><a name="l00021"></a><span class="lineno"><a class="line" href="classgetblocktemplate__longpoll_1_1LongpollThread.html#a087e1e6b86408ae85db55a925b849860"> 21</a></span>  <span class="keyword">def </span><a class="code" href="classgetblocktemplate__longpoll_1_1LongpollThread.html#a087e1e6b86408ae85db55a925b849860">run</a>(self):</div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>  self.<a class="code" href="classgetblocktemplate__longpoll_1_1LongpollThread.html#ab032788e75faa4f3f4bc99ca2e52f0d3">node</a>.<a class="code" href="mining_8cpp.html#a054ca23f5d86a8ca30138464ba10008c">getblocktemplate</a>({<span class="stringliteral">'longpollid'</span>:self.<a class="code" href="classgetblocktemplate__longpoll_1_1LongpollThread.html#a666f8fa3facffcd5f603060512570e9c">longpollid</a>})</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="classgetblocktemplate__longpoll_1_1GetBlockTemplateLPTest.html"> 24</a></span> <span class="keyword">class </span><a class="code" href="classgetblocktemplate__longpoll_1_1GetBlockTemplateLPTest.html">GetBlockTemplateLPTest</a>(<a class="code" href="classtest__framework_1_1test__framework_1_1BitcoinTestFramework.html">BitcoinTestFramework</a>):</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>  <span class="stringliteral">'''</span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="stringliteral"> Test longpolling with getblocktemplate.</span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="stringliteral"> '''</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="classgetblocktemplate__longpoll_1_1GetBlockTemplateLPTest.html#a6c51c53c9d236b58d07f745678737d52"> 29</a></span>  <span class="keyword">def </span><a class="code" href="classgetblocktemplate__longpoll_1_1GetBlockTemplateLPTest.html#a6c51c53c9d236b58d07f745678737d52">run_test</a>(self):</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  <span class="keywordflow">print</span> <span class="stringliteral">"Warning: this test will take about 70 seconds in the best case. Be patient."</span></div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  <a class="code" href="namespacetest__framework_1_1util.html#a6cfe71893f4a2ba2e7f30d87c615a322">wait_to_sync</a>(self.<a class="code" href="classtest__framework_1_1test__framework_1_1BitcoinTestFramework.html#a1c8a2aab0f11f2370c48060835f23f76">nodes</a>[0])</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  self.<a class="code" href="classtest__framework_1_1test__framework_1_1BitcoinTestFramework.html#a1c8a2aab0f11f2370c48060835f23f76">nodes</a>[0].<a class="code" href="mining_8cpp.html#afc5f2c0cbe40a2f876b46df2929cf359">generate</a>(10)</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  templat = self.<a class="code" href="classtest__framework_1_1test__framework_1_1BitcoinTestFramework.html#a1c8a2aab0f11f2370c48060835f23f76">nodes</a>[0].<a class="code" href="mining_8cpp.html#a054ca23f5d86a8ca30138464ba10008c">getblocktemplate</a>()</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  longpollid = templat[<span class="stringliteral">'longpollid'</span>]</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  <span class="comment"># longpollid should not change between successive invocations if nothing else happens</span></div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  templat2 = self.<a class="code" href="classtest__framework_1_1test__framework_1_1BitcoinTestFramework.html#a1c8a2aab0f11f2370c48060835f23f76">nodes</a>[0].<a class="code" href="mining_8cpp.html#a054ca23f5d86a8ca30138464ba10008c">getblocktemplate</a>()</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  assert(templat2[<span class="stringliteral">'longpollid'</span>] == longpollid)</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>  <span class="comment"># Test 1: test that the longpolling wait if we do nothing</span></div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  thr = <a class="code" href="classgetblocktemplate__longpoll_1_1LongpollThread.html">LongpollThread</a>(self.<a class="code" href="classtest__framework_1_1test__framework_1_1BitcoinTestFramework.html#a1c8a2aab0f11f2370c48060835f23f76">nodes</a>[0])</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  thr.start()</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  <span class="comment"># check that thread still lives</span></div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  thr.join(5) <span class="comment"># wait 5 seconds or until thread exits</span></div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  assert(thr.is_alive())</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span> </div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  <span class="comment"># Test 2: test that longpoll will terminate if another node generates a block</span></div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  self.<a class="code" href="classtest__framework_1_1test__framework_1_1BitcoinTestFramework.html#a1c8a2aab0f11f2370c48060835f23f76">nodes</a>[1].<a class="code" href="mining_8cpp.html#afc5f2c0cbe40a2f876b46df2929cf359">generate</a>(1) <span class="comment"># generate a block on another node</span></div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  <span class="comment"># check that thread will exit now that new transaction entered mempool</span></div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  thr.join(5) <span class="comment"># wait 5 seconds or until thread exits</span></div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  assert(<span class="keywordflow">not</span> thr.is_alive())</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span> </div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  <span class="comment"># Test 3: test that longpoll will terminate if we generate a block ourselves</span></div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  thr = <a class="code" href="classgetblocktemplate__longpoll_1_1LongpollThread.html">LongpollThread</a>(self.<a class="code" href="classtest__framework_1_1test__framework_1_1BitcoinTestFramework.html#a1c8a2aab0f11f2370c48060835f23f76">nodes</a>[0])</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  thr.start()</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  self.<a class="code" href="classtest__framework_1_1test__framework_1_1BitcoinTestFramework.html#a1c8a2aab0f11f2370c48060835f23f76">nodes</a>[0].<a class="code" href="mining_8cpp.html#afc5f2c0cbe40a2f876b46df2929cf359">generate</a>(1) <span class="comment"># generate a block on another node</span></div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  thr.join(5) <span class="comment"># wait 5 seconds or until thread exits</span></div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  assert(<span class="keywordflow">not</span> thr.is_alive())</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>  <span class="comment"># Test 4: test that introducing a new transaction into the mempool will terminate the longpoll</span></div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  thr = <a class="code" href="classgetblocktemplate__longpoll_1_1LongpollThread.html">LongpollThread</a>(self.<a class="code" href="classtest__framework_1_1test__framework_1_1BitcoinTestFramework.html#a1c8a2aab0f11f2370c48060835f23f76">nodes</a>[0])</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  thr.start()</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  <span class="comment"># generate a random transaction and submit it</span></div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  (txid, txhex, fee) = <a class="code" href="namespacetest__framework_1_1util.html#a2060906ea1bd7e3032ad3718160f28fd">random_transaction</a>(self.<a class="code" href="classtest__framework_1_1test__framework_1_1BitcoinTestFramework.html#a1c8a2aab0f11f2370c48060835f23f76">nodes</a>, Decimal(<span class="stringliteral">"1.1"</span>), Decimal(<span class="stringliteral">"0.0"</span>), Decimal(<span class="stringliteral">"0.001"</span>), 20)</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  <span class="comment"># after one minute, every 10 seconds the mempool is probed, so in 80 seconds it should have returned</span></div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  thr.join(60 + 20)</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  assert(<span class="keywordflow">not</span> thr.is_alive())</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> <span class="keywordflow">if</span> __name__ == <span class="stringliteral">'__main__'</span>:</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  <a class="code" href="classgetblocktemplate__longpoll_1_1GetBlockTemplateLPTest.html">GetBlockTemplateLPTest</a>().<a class="code" href="classtest__framework_1_1test__framework_1_1BitcoinTestFramework.html#a076857f5499c37bacf64a8ccb6ba5197">main</a>()</div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span> </div><div class="ttc" id="namespacetest__framework_1_1util_html_adf11fca732419a7289c9d119119b34f2"><div class="ttname"><a href="namespacetest__framework_1_1util.html#adf11fca732419a7289c9d119119b34f2">test_framework.util.get_rpc_proxy</a></div><div class="ttdeci">def get_rpc_proxy(url, node_number, timeout=None)</div><div class="ttdef"><b>Definition:</b> <a href="util_8py_source.html#l00058">util.py:58</a></div></div>
|
|
<div class="ttc" id="namespacetest__framework_1_1util_html_a2060906ea1bd7e3032ad3718160f28fd"><div class="ttname"><a href="namespacetest__framework_1_1util.html#a2060906ea1bd7e3032ad3718160f28fd">test_framework.util.random_transaction</a></div><div class="ttdeci">def random_transaction(nodes, amount, min_fee, fee_increment, fee_variants)</div><div class="ttdef"><b>Definition:</b> <a href="util_8py_source.html#l00442">util.py:442</a></div></div>
|
|
<div class="ttc" id="mining_8cpp_html_a054ca23f5d86a8ca30138464ba10008c"><div class="ttname"><a href="mining_8cpp.html#a054ca23f5d86a8ca30138464ba10008c">getblocktemplate</a></div><div class="ttdeci">UniValue getblocktemplate(const UniValue &params, bool fHelp)</div><div class="ttdef"><b>Definition:</b> <a href="mining_8cpp_source.html#l00337">mining.cpp:337</a></div></div>
|
|
<div class="ttc" id="namespacetest__framework_1_1util_html_a6cfe71893f4a2ba2e7f30d87c615a322"><div class="ttname"><a href="namespacetest__framework_1_1util.html#a6cfe71893f4a2ba2e7f30d87c615a322">test_framework.util.wait_to_sync</a></div><div class="ttdeci">def wait_to_sync(node)</div><div class="ttdef"><b>Definition:</b> <a href="util_8py_source.html#l00087">util.py:87</a></div></div>
|
|
<div class="ttc" id="classgetblocktemplate__longpoll_1_1LongpollThread_html_ab032788e75faa4f3f4bc99ca2e52f0d3"><div class="ttname"><a href="classgetblocktemplate__longpoll_1_1LongpollThread.html#ab032788e75faa4f3f4bc99ca2e52f0d3">getblocktemplate_longpoll.LongpollThread.node</a></div><div class="ttdeci">node</div><div class="ttdef"><b>Definition:</b> <a href="getblocktemplate__longpoll_8py_source.html#l00019">getblocktemplate_longpoll.py:19</a></div></div>
|
|
<div class="ttc" id="classtest__framework_1_1test__framework_1_1BitcoinTestFramework_html_a1c8a2aab0f11f2370c48060835f23f76"><div class="ttname"><a href="classtest__framework_1_1test__framework_1_1BitcoinTestFramework.html#a1c8a2aab0f11f2370c48060835f23f76">test_framework.test_framework.BitcoinTestFramework.nodes</a></div><div class="ttdeci">nodes</div><div class="ttdef"><b>Definition:</b> <a href="test__framework_8py_source.html#l00051">test_framework.py:51</a></div></div>
|
|
<div class="ttc" id="namespacetest__framework_1_1test__framework_html"><div class="ttname"><a href="namespacetest__framework_1_1test__framework.html">test_framework.test_framework</a></div><div class="ttdef"><b>Definition:</b> <a href="test__framework_8py_source.html#l00001">test_framework.py:1</a></div></div>
|
|
<div class="ttc" id="classtest__framework_1_1test__framework_1_1BitcoinTestFramework_html"><div class="ttname"><a href="classtest__framework_1_1test__framework_1_1BitcoinTestFramework.html">test_framework.test_framework.BitcoinTestFramework</a></div><div class="ttdef"><b>Definition:</b> <a href="test__framework_8py_source.html#l00032">test_framework.py:32</a></div></div>
|
|
<div class="ttc" id="classgetblocktemplate__longpoll_1_1LongpollThread_html"><div class="ttname"><a href="classgetblocktemplate__longpoll_1_1LongpollThread.html">getblocktemplate_longpoll.LongpollThread</a></div><div class="ttdef"><b>Definition:</b> <a href="getblocktemplate__longpoll_8py_source.html#l00011">getblocktemplate_longpoll.py:11</a></div></div>
|
|
<div class="ttc" id="classgetblocktemplate__longpoll_1_1LongpollThread_html_a666f8fa3facffcd5f603060512570e9c"><div class="ttname"><a href="classgetblocktemplate__longpoll_1_1LongpollThread.html#a666f8fa3facffcd5f603060512570e9c">getblocktemplate_longpoll.LongpollThread.longpollid</a></div><div class="ttdeci">longpollid</div><div class="ttdef"><b>Definition:</b> <a href="getblocktemplate__longpoll_8py_source.html#l00016">getblocktemplate_longpoll.py:16</a></div></div>
|
|
<div class="ttc" id="mining_8cpp_html_afc5f2c0cbe40a2f876b46df2929cf359"><div class="ttname"><a href="mining_8cpp.html#afc5f2c0cbe40a2f876b46df2929cf359">generate</a></div><div class="ttdeci">UniValue generate(const UniValue &params, bool fHelp)</div><div class="ttdef"><b>Definition:</b> <a href="mining_8cpp_source.html#l00122">mining.cpp:122</a></div></div>
|
|
<div class="ttc" id="classtest__framework_1_1test__framework_1_1BitcoinTestFramework_html_a076857f5499c37bacf64a8ccb6ba5197"><div class="ttname"><a href="classtest__framework_1_1test__framework_1_1BitcoinTestFramework.html#a076857f5499c37bacf64a8ccb6ba5197">test_framework.test_framework.BitcoinTestFramework.main</a></div><div class="ttdeci">def main(self)</div><div class="ttdef"><b>Definition:</b> <a href="test__framework_8py_source.html#l00097">test_framework.py:97</a></div></div>
|
|
<div class="ttc" id="classgetblocktemplate__longpoll_1_1GetBlockTemplateLPTest_html"><div class="ttname"><a href="classgetblocktemplate__longpoll_1_1GetBlockTemplateLPTest.html">getblocktemplate_longpoll.GetBlockTemplateLPTest</a></div><div class="ttdef"><b>Definition:</b> <a href="getblocktemplate__longpoll_8py_source.html#l00024">getblocktemplate_longpoll.py:24</a></div></div>
|
|
<div class="ttc" id="classgetblocktemplate__longpoll_1_1LongpollThread_html_a087e1e6b86408ae85db55a925b849860"><div class="ttname"><a href="classgetblocktemplate__longpoll_1_1LongpollThread.html#a087e1e6b86408ae85db55a925b849860">getblocktemplate_longpoll.LongpollThread.run</a></div><div class="ttdeci">def run(self)</div><div class="ttdef"><b>Definition:</b> <a href="getblocktemplate__longpoll_8py_source.html#l00021">getblocktemplate_longpoll.py:21</a></div></div>
|
|
<div class="ttc" id="classgetblocktemplate__longpoll_1_1GetBlockTemplateLPTest_html_a6c51c53c9d236b58d07f745678737d52"><div class="ttname"><a href="classgetblocktemplate__longpoll_1_1GetBlockTemplateLPTest.html#a6c51c53c9d236b58d07f745678737d52">getblocktemplate_longpoll.GetBlockTemplateLPTest.run_test</a></div><div class="ttdeci">def run_test(self)</div><div class="ttdef"><b>Definition:</b> <a href="getblocktemplate__longpoll_8py_source.html#l00029">getblocktemplate_longpoll.py:29</a></div></div>
|
|
<div class="ttc" id="namespacetest__framework_1_1util_html"><div class="ttname"><a href="namespacetest__framework_1_1util.html">test_framework.util</a></div><div class="ttdef"><b>Definition:</b> <a href="util_8py_source.html#l00001">util.py:1</a></div></div>
|
|
<div class="ttc" id="classgetblocktemplate__longpoll_1_1LongpollThread_html_a7750b26362e4e0f5c0b61f4340c86dfe"><div class="ttname"><a href="classgetblocktemplate__longpoll_1_1LongpollThread.html#a7750b26362e4e0f5c0b61f4340c86dfe">getblocktemplate_longpoll.LongpollThread.__init__</a></div><div class="ttdeci">def __init__(self, node)</div><div class="ttdef"><b>Definition:</b> <a href="getblocktemplate__longpoll_8py_source.html#l00012">getblocktemplate_longpoll.py:12</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_62ba24d7ce8eecc59962fe5b590c1065.html">qa</a></li><li class="navelem"><a class="el" href="dir_dbddb259b29a77ea11562b7a380aa303.html">rpc-tests</a></li><li class="navelem"><a class="el" href="getblocktemplate__longpoll_8py.html">getblocktemplate_longpoll.py</a></li>
|
|
<li class="footer">Generated on Thu Dec 14 2017 13:15:01 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>
|