6 #ifndef PIVX_POLICY_POLICY_H
7 #define PIVX_POLICY_POLICY_H
21 static const unsigned int DEFAULT_BLOCK_MAX_SIZE = 750000;
23 static const unsigned int MAX_P2SH_SIGOPS = 15;
25 static const unsigned int DEFAULT_MAX_MEMPOOL_SIZE = 300;
27 static const bool DEFAULT_PERMIT_BAREMULTISIG =
true;
34 static const unsigned int DUST_RELAY_TX_FEE = 30000;
41 static constexpr
unsigned int STANDARD_SCRIPT_VERIFY_FLAGS = MANDATORY_SCRIPT_VERIFY_FLAGS |
52 static constexpr
unsigned int STANDARD_NOT_MANDATORY_VERIFY_FLAGS = STANDARD_SCRIPT_VERIFY_FLAGS & ~MANDATORY_SCRIPT_VERIFY_FLAGS;
int64_t CAmount
Amount in PIV (Can be negative)
CChainParams defines various tweakable parameters of a given instance of the PIVX system.
CCoinsView that adds a memory cache for transactions to another CCoinsView.
Fee rate in PIV per kilobyte: CAmount / kB.
Serialized script, used inside transaction inputs and outputs.
The basic transaction that is broadcasted on the network and contained in blocks.
An output of a transaction.
@ SCRIPT_VERIFY_NULLDUMMY
@ SCRIPT_VERIFY_STRICTENC
@ SCRIPT_VERIFY_CLEANSTACK
@ SCRIPT_VERIFY_MINIMALDATA
@ SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS
@ SCRIPT_VERIFY_EXCHANGEADDR
BOOST_STATIC_ASSERT(DEFAULT_BLOCK_MAX_SIZE<=MAX_BLOCK_SIZE_CURRENT)
bool AreInputsStandard(const CTransaction &tx, const CCoinsViewCache &mapInputs)
Check for standard transaction types.
CAmount GetDustThreshold(const CTxOut &txout, const CFeeRate &dustRelayFeeIn)
bool IsStandardTx(const CTransactionRef &tx, int nBlockHeight, std::string &reason)
Check for standard transaction types.
bool IsDust(const CTxOut &txout, const CFeeRate &dustRelayFeeIn)
bool IsStandard(const CScript &scriptPubKey, txnouttype &whichType)
Check transaction inputs to mitigate two potential denial-of-service attacks:
CAmount GetShieldedDustThreshold(const CFeeRate &dustRelayFeeIn)
std::shared_ptr< const CTransaction > CTransactionRef