PIVX Core  5.6.99
P2P Digital Currency
Functions
script_P2CS_tests.cpp File Reference
#include "key.h"
#include "key_io.h"
#include "policy/policy.h"
#include "wallet/test/wallet_test_fixture.h"
#include "wallet/wallet.h"
#include <boost/test/unit_test.hpp>
Include dependency graph for script_P2CS_tests.cpp:

Go to the source code of this file.

Functions

void CheckValidKeyId (const CTxDestination &dest, const CKeyID &expectedKey)
 
 BOOST_AUTO_TEST_CASE (extract_cold_staking_destination_keys)
 
void SignColdStake (CMutableTransaction &tx, int nIn, const CScript &prevScript, const CKey &key, bool fStaker)
 
 BOOST_AUTO_TEST_CASE (coldstake_lof_script)
 
 BOOST_AUTO_TEST_CASE (coldstake_script)
 
void FakeUnlockColdStake (CMutableTransaction &tx, const CScript &prevScript, const CKey &key)
 
 BOOST_AUTO_TEST_CASE (fake_script_test)
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/4]

BOOST_AUTO_TEST_CASE ( coldstake_lof_script  )

Definition at line 123 of file script_P2CS_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [2/4]

BOOST_AUTO_TEST_CASE ( coldstake_script  )

Definition at line 199 of file script_P2CS_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [3/4]

BOOST_AUTO_TEST_CASE ( extract_cold_staking_destination_keys  )

Definition at line 26 of file script_P2CS_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [4/4]

BOOST_AUTO_TEST_CASE ( fake_script_test  )

Definition at line 304 of file script_P2CS_tests.cpp.

◆ CheckValidKeyId()

void CheckValidKeyId ( const CTxDestination dest,
const CKeyID expectedKey 
)

Definition at line 14 of file script_P2CS_tests.cpp.

Here is the caller graph for this function:

◆ FakeUnlockColdStake()

void FakeUnlockColdStake ( CMutableTransaction tx,
const CScript prevScript,
const CKey key 
)

Definition at line 285 of file script_P2CS_tests.cpp.

Here is the call graph for this function:

◆ SignColdStake()

void SignColdStake ( CMutableTransaction tx,
int  nIn,
const CScript prevScript,
const CKey key,
bool  fStaker 
)

Definition at line 103 of file script_P2CS_tests.cpp.

Here is the call graph for this function: