Dash Core  0.12.2.1
P2P Digital Currency
p2p-fullblocktest.FullBlockTest Class Reference
+ Inheritance diagram for p2p-fullblocktest.FullBlockTest:

Public Member Functions

def __init__ (self)
 
def run_test (self)
 
def add_transactions_to_block (self, block, tx_list)
 
def next_block (self, number, spend=None, additional_coinbase_value=0, script=None)
 
def get_tests (self)
 
- Public Member Functions inherited from test_framework.test_framework.ComparisonTestFramework
def __init__ (self)
 
def add_options (self, parser)
 
def setup_chain (self)
 
def setup_network (self)
 
- Public Member Functions inherited from test_framework.test_framework.BitcoinTestFramework
def run_test (self)
 
def add_options (self, parser)
 
def setup_chain (self)
 
def setup_nodes (self)
 
def setup_network (self, split=False)
 
def split_network (self)
 
def sync_all (self)
 
def join_network (self)
 
def main (self)
 

Public Attributes

 num_nodes
 
 block_heights
 
 coinbase_key
 
 coinbase_pubkey
 
 block_time
 
 tip
 
 blocks
 
 genesis_hash
 
- Public Attributes inherited from test_framework.test_framework.ComparisonTestFramework
 num_nodes
 
 nodes
 
- Public Attributes inherited from test_framework.test_framework.BitcoinTestFramework
 nodes
 
 is_network_split
 

Detailed Description

Can either run this test as 1 node with expected answers, or two and compare them. 
    Change the "outcome" variable from each TestInstance object to only do the comparison. 

Definition at line 29 of file p2p-fullblocktest.py.

Constructor & Destructor Documentation

◆ __init__()

def p2p-fullblocktest.FullBlockTest.__init__ (   self)

Definition at line 33 of file p2p-fullblocktest.py.

Member Function Documentation

◆ add_transactions_to_block()

def p2p-fullblocktest.FullBlockTest.add_transactions_to_block (   self,
  block,
  tx_list 
)

Definition at line 50 of file p2p-fullblocktest.py.

Referenced by p2p-fullblocktest.FullBlockTest.next_block().

◆ get_tests()

def p2p-fullblocktest.FullBlockTest.get_tests (   self)

Definition at line 104 of file p2p-fullblocktest.py.

◆ next_block()

def p2p-fullblocktest.FullBlockTest.next_block (   self,
  number,
  spend = None,
  additional_coinbase_value = 0,
  script = None 
)

Definition at line 60 of file p2p-fullblocktest.py.

◆ run_test()

def p2p-fullblocktest.FullBlockTest.run_test (   self)

Member Data Documentation

◆ block_heights

p2p-fullblocktest.FullBlockTest.block_heights

Definition at line 35 of file p2p-fullblocktest.py.

Referenced by p2p-fullblocktest.FullBlockTest.next_block().

◆ block_time

p2p-fullblocktest.FullBlockTest.block_time

Definition at line 39 of file p2p-fullblocktest.py.

Referenced by p2p-fullblocktest.FullBlockTest.next_block().

◆ blocks

p2p-fullblocktest.FullBlockTest.blocks

Definition at line 41 of file p2p-fullblocktest.py.

Referenced by p2p-fullblocktest.FullBlockTest.next_block().

◆ coinbase_key

p2p-fullblocktest.FullBlockTest.coinbase_key

Definition at line 36 of file p2p-fullblocktest.py.

Referenced by p2p-fullblocktest.FullBlockTest.next_block().

◆ coinbase_pubkey

p2p-fullblocktest.FullBlockTest.coinbase_pubkey

Definition at line 38 of file p2p-fullblocktest.py.

Referenced by p2p-fullblocktest.FullBlockTest.next_block().

◆ genesis_hash

p2p-fullblocktest.FullBlockTest.genesis_hash

Definition at line 105 of file p2p-fullblocktest.py.

Referenced by p2p-fullblocktest.FullBlockTest.next_block().

◆ num_nodes

p2p-fullblocktest.FullBlockTest.num_nodes

◆ tip

p2p-fullblocktest.FullBlockTest.tip

Definition at line 40 of file p2p-fullblocktest.py.

Referenced by p2p-fullblocktest.FullBlockTest.next_block().


The documentation for this class was generated from the following file: