Dash Core  0.12.2.1
P2P Digital Currency
bip9-softforks.BIP9SoftForksTest Class Reference
+ Inheritance diagram for bip9-softforks.BIP9SoftForksTest:

Public Member Functions

def __init__ (self)
 
def setup_network (self)
 
def run_test (self)
 
def create_transaction (self, node, coinbase, to_address, amount)
 
def sign_transaction (self, node, tx)
 
def generate_blocks (self, number, version, test_blocks=[])
 
def get_bip9_status (self, key)
 
def test_BIP (self, bipName, activated_version, invalidate, invalidatePostSignature, bitno)
 
def get_tests (self)
 
def donothing (self, tx)
 
def csv_invalidate (self, tx)
 
def sequence_lock_invalidate (self, tx)
 
def mtp_invalidate (self, tx)
 
- 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
 
 nodes
 
 test
 
 tip
 
 coinbase_blocks
 
 height
 
 nodeaddress
 
 last_block_time
 
- 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

Definition at line 32 of file bip9-softforks.py.

Constructor & Destructor Documentation

◆ __init__()

def bip9-softforks.BIP9SoftForksTest.__init__ (   self)

Definition at line 34 of file bip9-softforks.py.

Member Function Documentation

◆ create_transaction()

def bip9-softforks.BIP9SoftForksTest.create_transaction (   self,
  node,
  coinbase,
  to_address,
  amount 
)

Definition at line 48 of file bip9-softforks.py.

◆ csv_invalidate()

def bip9-softforks.BIP9SoftForksTest.csv_invalidate (   self,
  tx 
)
Modify the signature in vin 0 of the tx to fail CSV
Prepends -1 CSV DROP in the scriptSig itself.

Definition at line 221 of file bip9-softforks.py.

Referenced by bip9-softforks.BIP9SoftForksTest.get_tests().

◆ donothing()

def bip9-softforks.BIP9SoftForksTest.donothing (   self,
  tx 
)

Definition at line 218 of file bip9-softforks.py.

Referenced by bip9-softforks.BIP9SoftForksTest.get_tests().

◆ generate_blocks()

def bip9-softforks.BIP9SoftForksTest.generate_blocks (   self,
  number,
  version,
  test_blocks = [] 
)

Definition at line 66 of file bip9-softforks.py.

◆ get_bip9_status()

def bip9-softforks.BIP9SoftForksTest.get_bip9_status (   self,
  key 
)

Definition at line 78 of file bip9-softforks.py.

◆ get_tests()

def bip9-softforks.BIP9SoftForksTest.get_tests (   self)

Definition at line 210 of file bip9-softforks.py.

◆ mtp_invalidate()

def bip9-softforks.BIP9SoftForksTest.mtp_invalidate (   self,
  tx 
)
Modify the nLockTime to make it fails once MTP rule is activated

Definition at line 234 of file bip9-softforks.py.

Referenced by bip9-softforks.BIP9SoftForksTest.get_tests().

◆ run_test()

def bip9-softforks.BIP9SoftForksTest.run_test (   self)

◆ sequence_lock_invalidate()

def bip9-softforks.BIP9SoftForksTest.sequence_lock_invalidate (   self,
  tx 
)
Modify the nSequence to make it fails once sequence lock rule is activated (high timespan)

Definition at line 228 of file bip9-softforks.py.

Referenced by bip9-softforks.BIP9SoftForksTest.get_tests().

◆ setup_network()

◆ sign_transaction()

def bip9-softforks.BIP9SoftForksTest.sign_transaction (   self,
  node,
  tx 
)

Definition at line 59 of file bip9-softforks.py.

◆ test_BIP()

def bip9-softforks.BIP9SoftForksTest.test_BIP (   self,
  bipName,
  activated_version,
  invalidate,
  invalidatePostSignature,
  bitno 
)

Definition at line 86 of file bip9-softforks.py.

Referenced by bip9-softforks.BIP9SoftForksTest.get_tests().

Member Data Documentation

◆ coinbase_blocks

bip9-softforks.BIP9SoftForksTest.coinbase_blocks

Definition at line 89 of file bip9-softforks.py.

◆ height

bip9-softforks.BIP9SoftForksTest.height

Definition at line 90 of file bip9-softforks.py.

Referenced by bip9-softforks.BIP9SoftForksTest.generate_blocks().

◆ last_block_time

bip9-softforks.BIP9SoftForksTest.last_block_time

◆ nodeaddress

bip9-softforks.BIP9SoftForksTest.nodeaddress

Definition at line 92 of file bip9-softforks.py.

◆ nodes

bip9-softforks.BIP9SoftForksTest.nodes

Definition at line 38 of file bip9-softforks.py.

Referenced by blockchain.BlockchainTest._test_getblockheader(), blockchain.BlockchainTest._test_gettxoutsetinfo(), pruning.PruneTest.create_big_chain(), pruning.PruneTest.create_chain_with_staleblocks(), decodescript.DecodeScriptTest.decoderawtransaction_asm_sighashtype(), decodescript.DecodeScriptTest.decodescript_script_pub_key(), decodescript.DecodeScriptTest.decodescript_script_sig(), walletbackup.WalletBackupTest.do_one_round(), bip9-softforks.BIP9SoftForksTest.get_bip9_status(), invalidtxrequest.InvalidTxRequestTest.get_tests(), invalidblockrequest.InvalidBlockRequestTest.get_tests(), test_framework.test_framework.BitcoinTestFramework.join_network(), test_framework.test_framework.BitcoinTestFramework.main(), sendheaders.SendHeadersTest.mine_blocks(), sendheaders.SendHeadersTest.mine_reorg(), walletbackup.WalletBackupTest.one_send(), reindex.ReindexTest.reindex(), pruning.PruneTest.reorg_back(), pruning.PruneTest.reorg_test(), listtransactions.ListTransactionsTest.run_rbf_opt_in_test(), getchaintips.GetChainTipsTest.run_test(), keypool.KeyPoolTest.run_test(), keypool-hd.KeyPoolTest.run_test(), nodehandling.NodeHandlingTest.run_test(), txn_clone.TxnMallTest.run_test(), txn_doublespend.TxnMallTest.run_test(), mempool_resurrect_test.MempoolCoinbaseTest.run_test(), zapwallettxes.ZapWalletTXesTest.run_test(), bipdersig.BIP66Test.run_test(), wallet-hd.WalletHDTest.run_test(), invalidtxrequest.InvalidTxRequestTest.run_test(), disablewallet.DisableWalletTest.run_test(), httpbasics.HTTPBasicsTest.run_test(), listtransactions.ListTransactionsTest.run_test(), invalidateblock.InvalidateTest.run_test(), fundrawtransaction-hd.RawTransactionsTest.run_test(), fundrawtransaction.RawTransactionsTest.run_test(), mempool_limit.MempoolLimitTest.run_test(), mempool_reorg.MempoolCoinbaseTest.run_test(), mempool_spendcoinbase.MempoolSpendCoinbaseTest.run_test(), getblocktemplate_longpoll.GetBlockTemplateLPTest.run_test(), prioritise_transaction.PrioritiseTransactionTest.run_test(), invalidblockrequest.InvalidBlockRequestTest.run_test(), forknotify.ForkNotifyTest.run_test(), merkle_blocks.MerkleBlockTest.run_test(), test_framework.test_framework.BitcoinTestFramework.run_test(), receivedby.ReceivedByTest.run_test(), wallet.WalletTest.run_test(), multi_rpc.HTTPBasicsTest.run_test(), rawtransactions.RawTransactionsTest.run_test(), timestampindex.TimestampIndexTest.run_test(), txindex.TxIndexTest.run_test(), spentindex.SpentIndexTest.run_test(), mempool_packages.MempoolPackagesTest.run_test(), zmq_test.ZMQTest.run_test(), p2p-fullblocktest.FullBlockTest.run_test(), blockchain.BlockchainTest.run_test(), bipdersig-p2p.BIP66Test.run_test(), rest.RESTTest.run_test(), getblocktemplate_proposals.GetBlockTemplateProposalTest.run_test(), replace-by-fee.ReplaceByFeeTest.run_test(), maxblocksinflight.MaxBlocksInFlightTest.run_test(), p2p-versionbits-warning.VersionBitsWarningTest.run_test(), walletbackup.WalletBackupTest.run_test(), maxuploadtarget.MaxUploadTest.run_test(), p2p-acceptblock.AcceptBlockTest.run_test(), proxy_test.ProxyTest.run_test(), signrawtransactions.SignRawTransactionsTest.script_verification_error_test(), p2p-versionbits-warning.VersionBitsWarningTest.send_blocks_with_version(), 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(), bip9-softforks.BIP9SoftForksTest.test_BIP(), replace-by-fee.ReplaceByFeeTest.test_doublespend_chain(), replace-by-fee.ReplaceByFeeTest.test_doublespend_tree(), pruning.PruneTest.test_height_min(), replace-by-fee.ReplaceByFeeTest.test_new_unconfirmed_inputs(), replace-by-fee.ReplaceByFeeTest.test_opt_in(), replace-by-fee.ReplaceByFeeTest.test_prioritised_transactions(), replace-by-fee.ReplaceByFeeTest.test_replacement_feeperkb(), replace-by-fee.ReplaceByFeeTest.test_simple_doublespend(), replace-by-fee.ReplaceByFeeTest.test_spends_of_conflicting_outputs(), replace-by-fee.ReplaceByFeeTest.test_too_many_replacements(), and smartfees.EstimateFeeTest.transact_and_mine().

◆ num_nodes

bip9-softforks.BIP9SoftForksTest.num_nodes

◆ test

bip9-softforks.BIP9SoftForksTest.test

Definition at line 43 of file bip9-softforks.py.

◆ tip


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