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

256 lines
13 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: test_framework.blocktools Namespace Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectlogo"><img alt="Logo" src="bitcoin_logo_doxygen.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">Dash Core
&#160;<span id="projectnumber">0.12.2.1</span>
</div>
<div id="projectbrief">P2P Digital Currency</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('namespacetest__framework_1_1blocktools.html','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="summary">
<a href="#func-members">Functions</a> </div>
<div class="headertitle">
<div class="title">test_framework.blocktools Namespace Reference</div> </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ab3c34a7489e18f5a954a59b06dfcd341"><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacetest__framework_1_1blocktools.html#ab3c34a7489e18f5a954a59b06dfcd341">create_block</a> (hashprev, coinbase, nTime=None)</td></tr>
<tr class="separator:ab3c34a7489e18f5a954a59b06dfcd341"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a73d94882951eb5adeb3b78264a48e389"><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacetest__framework_1_1blocktools.html#a73d94882951eb5adeb3b78264a48e389">serialize_script_num</a> (value)</td></tr>
<tr class="separator:a73d94882951eb5adeb3b78264a48e389"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3fcec92180100b1dcfd1d0f751561081"><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacetest__framework_1_1blocktools.html#a3fcec92180100b1dcfd1d0f751561081">create_coinbase</a> (height, pubkey=None)</td></tr>
<tr class="separator:a3fcec92180100b1dcfd1d0f751561081"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab96dd3d2ebdca9fe7b22d673a53ac05b"><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacetest__framework_1_1blocktools.html#ab96dd3d2ebdca9fe7b22d673a53ac05b">create_transaction</a> (prevtx, n, sig, value)</td></tr>
<tr class="separator:ab96dd3d2ebdca9fe7b22d673a53ac05b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a id="ab3c34a7489e18f5a954a59b06dfcd341"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab3c34a7489e18f5a954a59b06dfcd341">&#9670;&nbsp;</a></span>create_block()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">def test_framework.blocktools.create_block </td>
<td>(</td>
<td class="paramtype">&#160;</td>
<td class="paramname"><em>hashprev</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">&#160;</td>
<td class="paramname"><em>coinbase</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">&#160;</td>
<td class="paramname"><em>nTime</em> = <code>None</code>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="blocktools_8py_source.html#l00011">11</a> of file <a class="el" href="blocktools_8py_source.html">blocktools.py</a>.</p>
<p class="reference">Referenced by <a class="el" href="bip68-112-113-p2p_8py_source.html#l00142">bip68-112-113-p2p.BIP68_112_113Test.create_test_block()</a>, <a class="el" href="bip9-softforks_8py_source.html#l00066">bip9-softforks.BIP9SoftForksTest.generate_blocks()</a>, <a class="el" href="invalidtxrequest_8py_source.html#l00033">invalidtxrequest.InvalidTxRequestTest.get_tests()</a>, <a class="el" href="invalidblockrequest_8py_source.html#l00040">invalidblockrequest.InvalidBlockRequestTest.get_tests()</a>, <a class="el" href="p2p-fullblocktest_8py_source.html#l00060">p2p-fullblocktest.FullBlockTest.next_block()</a>, <a class="el" href="p2p-acceptblock_8py_source.html#l00129">p2p-acceptblock.AcceptBlockTest.run_test()</a>, <a class="el" href="p2p-versionbits-warning_8py_source.html#l00079">p2p-versionbits-warning.VersionBitsWarningTest.send_blocks_with_version()</a>, <a class="el" href="bip68-sequence_8py_source.html#l00350">bip68-sequence.BIP68Test.test_bip68_not_consensus()</a>, and <a class="el" href="bip68-sequence_8py_source.html#l00210">bip68-sequence.BIP68Test.test_sequence_lock_unconfirmed_inputs()</a>.</p>
</div>
</div>
<a id="a3fcec92180100b1dcfd1d0f751561081"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3fcec92180100b1dcfd1d0f751561081">&#9670;&nbsp;</a></span>create_coinbase()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">def test_framework.blocktools.create_coinbase </td>
<td>(</td>
<td class="paramtype">&#160;</td>
<td class="paramname"><em>height</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">&#160;</td>
<td class="paramname"><em>pubkey</em> = <code>None</code>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="blocktools_8py_source.html#l00043">43</a> of file <a class="el" href="blocktools_8py_source.html">blocktools.py</a>.</p>
<p class="reference">Referenced by <a class="el" href="bip68-112-113-p2p_8py_source.html#l00142">bip68-112-113-p2p.BIP68_112_113Test.create_test_block()</a>, <a class="el" href="bip9-softforks_8py_source.html#l00066">bip9-softforks.BIP9SoftForksTest.generate_blocks()</a>, <a class="el" href="invalidtxrequest_8py_source.html#l00033">invalidtxrequest.InvalidTxRequestTest.get_tests()</a>, <a class="el" href="invalidblockrequest_8py_source.html#l00040">invalidblockrequest.InvalidBlockRequestTest.get_tests()</a>, <a class="el" href="p2p-fullblocktest_8py_source.html#l00060">p2p-fullblocktest.FullBlockTest.next_block()</a>, <a class="el" href="p2p-acceptblock_8py_source.html#l00129">p2p-acceptblock.AcceptBlockTest.run_test()</a>, <a class="el" href="p2p-versionbits-warning_8py_source.html#l00079">p2p-versionbits-warning.VersionBitsWarningTest.send_blocks_with_version()</a>, <a class="el" href="bip68-sequence_8py_source.html#l00350">bip68-sequence.BIP68Test.test_bip68_not_consensus()</a>, and <a class="el" href="bip68-sequence_8py_source.html#l00210">bip68-sequence.BIP68Test.test_sequence_lock_unconfirmed_inputs()</a>.</p>
</div>
</div>
<a id="ab96dd3d2ebdca9fe7b22d673a53ac05b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab96dd3d2ebdca9fe7b22d673a53ac05b">&#9670;&nbsp;</a></span>create_transaction()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">def test_framework.blocktools.create_transaction </td>
<td>(</td>
<td class="paramtype">&#160;</td>
<td class="paramname"><em>prevtx</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">&#160;</td>
<td class="paramname"><em>n</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">&#160;</td>
<td class="paramname"><em>sig</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">&#160;</td>
<td class="paramname"><em>value</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="blocktools_8py_source.html#l00061">61</a> of file <a class="el" href="blocktools_8py_source.html">blocktools.py</a>.</p>
</div>
</div>
<a id="a73d94882951eb5adeb3b78264a48e389"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a73d94882951eb5adeb3b78264a48e389">&#9670;&nbsp;</a></span>serialize_script_num()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">def test_framework.blocktools.serialize_script_num </td>
<td>(</td>
<td class="paramtype">&#160;</td>
<td class="paramname"><em>value</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="blocktools_8py_source.html#l00025">25</a> of file <a class="el" href="blocktools_8py_source.html">blocktools.py</a>.</p>
<p class="reference">Referenced by <a class="el" href="blocktools_8py_source.html#l00043">test_framework.blocktools.create_coinbase()</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="namespacetest__framework.html">test_framework</a></li><li class="navelem"><a class="el" href="namespacetest__framework_1_1blocktools.html">blocktools</a></li>
<li class="footer">Generated on Thu Dec 14 2017 13:15:14 for Dash Core by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.14 </li>
</ul>
</div>
</body>
</html>