![]() |
PIVX Core
5.6.99
P2P Digital Currency
|
#include "test/test_pivx.h"#include "blocksignature.h"#include "net.h"#include "primitives/transaction.h"#include "script/sign.h"#include "validation.h"#include <boost/test/unit_test.hpp>Go to the source code of this file.
Enumerations | |
| enum | BlockSignatureType { P2PK , P2PKH , P2CS } |
Functions | |
| CScript | GetScriptForType (CPubKey pubKey, BlockSignatureType type) |
| std::vector< unsigned char > | CreateDummyScriptSigWithKey (CPubKey pubKey) |
| CScript | GetDummyScriptSigByType (CPubKey pubKey, bool isP2PK) |
| CBlock | CreateDummyBlockWithSignature (CKey stakingKey, BlockSignatureType type, bool useInputP2PK) |
| bool | TestBlockSignature (const CBlock &block) |
| BOOST_AUTO_TEST_CASE (block_signature_test) | |
| BOOST_AUTO_TEST_CASE (subsidy_limit_test) | |
| bool | ReturnFalse () |
| bool | ReturnTrue () |
| BOOST_AUTO_TEST_CASE (test_combiner_all) | |
Variables | |
| CAmount | nMoneySupplyPoWEnd = 43199500 * COIN |
| enum BlockSignatureType |
| Enumerator | |
|---|---|
| P2PK | |
| P2PKH | |
| P2CS | |
Definition at line 19 of file main_tests.cpp.
| BOOST_AUTO_TEST_CASE | ( | block_signature_test | ) |
| BOOST_AUTO_TEST_CASE | ( | subsidy_limit_test | ) |
| BOOST_AUTO_TEST_CASE | ( | test_combiner_all | ) |
| CBlock CreateDummyBlockWithSignature | ( | CKey | stakingKey, |
| BlockSignatureType | type, | ||
| bool | useInputP2PK | ||
| ) |
Definition at line 51 of file main_tests.cpp.
| std::vector<unsigned char> CreateDummyScriptSigWithKey | ( | CPubKey | pubKey | ) |
Definition at line 35 of file main_tests.cpp.
Definition at line 43 of file main_tests.cpp.
| CScript GetScriptForType | ( | CPubKey | pubKey, |
| BlockSignatureType | type | ||
| ) |
Definition at line 25 of file main_tests.cpp.
| bool ReturnFalse | ( | ) |
| bool ReturnTrue | ( | ) |
| bool TestBlockSignature | ( | const CBlock & | block | ) |
Definition at line 75 of file main_tests.cpp.
| CAmount nMoneySupplyPoWEnd = 43199500 * COIN |
Definition at line 104 of file main_tests.cpp.