Dash Core  0.12.2.1
P2P Digital Currency
signrawtransactions.SignRawTransactionsTest Class Reference
+ Inheritance diagram for signrawtransactions.SignRawTransactionsTest:

Public Member Functions

def setup_chain (self)
 
def setup_network (self, split=False)
 
def successful_signing_test (self)
 
def script_verification_error_test (self)
 
def run_test (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

 nodes
 
 is_network_split
 
- Public Attributes inherited from test_framework.test_framework.BitcoinTestFramework
 nodes
 
 is_network_split
 

Detailed Description

Tests transaction signing via RPC command "signrawtransaction".

Definition at line 10 of file signrawtransactions.py.

Member Function Documentation

◆ run_test()

def signrawtransactions.SignRawTransactionsTest.run_test (   self)

◆ script_verification_error_test()

def signrawtransactions.SignRawTransactionsTest.script_verification_error_test (   self)
Creates and signs a raw transaction with valid (vin 0), invalid (vin 1) and one missing (vin 2) input script.

Expected results:

3) The transaction has no complete set of signatures
4) Two script verification errors occurred
5) Script verification errors have certain properties ("txid", "vout", "scriptSig", "sequence", "error")
6) The verification errors refer to the invalid (vin 1) and missing input (vin 2)

Definition at line 48 of file signrawtransactions.py.

Referenced by signrawtransactions.SignRawTransactionsTest.run_test().

◆ setup_chain()

def signrawtransactions.SignRawTransactionsTest.setup_chain (   self)

◆ setup_network()

def signrawtransactions.SignRawTransactionsTest.setup_network (   self,
  split = False 
)

◆ successful_signing_test()

def signrawtransactions.SignRawTransactionsTest.successful_signing_test (   self)
Creates and signs a valid raw transaction with one input.

Expected results:

1) The transaction has a complete set of signatures
2) No script verification error occurred

Definition at line 21 of file signrawtransactions.py.

Referenced by signrawtransactions.SignRawTransactionsTest.run_test().

Member Data Documentation

◆ is_network_split

◆ nodes

signrawtransactions.SignRawTransactionsTest.nodes

Definition at line 18 of file signrawtransactions.py.

Referenced by walletbackup.WalletBackupTest.do_one_round(), invalidtxrequest.InvalidTxRequestTest.get_tests(), invalidblockrequest.InvalidBlockRequestTest.get_tests(), test_framework.test_framework.BitcoinTestFramework.join_network(), test_framework.test_framework.BitcoinTestFramework.main(), walletbackup.WalletBackupTest.one_send(), listtransactions.ListTransactionsTest.run_rbf_opt_in_test(), getchaintips.GetChainTipsTest.run_test(), nodehandling.NodeHandlingTest.run_test(), txn_clone.TxnMallTest.run_test(), txn_doublespend.TxnMallTest.run_test(), zapwallettxes.ZapWalletTXesTest.run_test(), wallet-hd.WalletHDTest.run_test(), invalidtxrequest.InvalidTxRequestTest.run_test(), httpbasics.HTTPBasicsTest.run_test(), listtransactions.ListTransactionsTest.run_test(), getblocktemplate_longpoll.GetBlockTemplateLPTest.run_test(), invalidblockrequest.InvalidBlockRequestTest.run_test(), test_framework.test_framework.BitcoinTestFramework.run_test(), receivedby.ReceivedByTest.run_test(), wallet.WalletTest.run_test(), multi_rpc.HTTPBasicsTest.run_test(), timestampindex.TimestampIndexTest.run_test(), spentindex.SpentIndexTest.run_test(), txindex.TxIndexTest.run_test(), zmq_test.ZMQTest.run_test(), p2p-fullblocktest.FullBlockTest.run_test(), getblocktemplate_proposals.GetBlockTemplateProposalTest.run_test(), walletbackup.WalletBackupTest.run_test(), proxy_test.ProxyTest.run_test(), signrawtransactions.SignRawTransactionsTest.script_verification_error_test(), test_framework.test_framework.BitcoinTestFramework.split_network(), walletbackup.WalletBackupTest.start_three(), walletbackup.WalletBackupTest.stop_three(), signrawtransactions.SignRawTransactionsTest.successful_signing_test(), test_framework.test_framework.BitcoinTestFramework.sync_all(), and smartfees.EstimateFeeTest.transact_and_mine().


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