6 #ifndef FABCOIN_POLICY_POLICY_H 7 #define FABCOIN_POLICY_POLICY_H 20 static const unsigned int DEFAULT_BLOCK_MAX_CONFLICT = 30;
22 static const unsigned int DEFAULT_BLOCK_PRIORITY_SIZE = 0;
24 static const unsigned int DEFAULT_BLOCK_MAX_WEIGHT = MAX_BLOCK_WEIGHT - 4000;
27 static const unsigned int DEFAULT_BLOCK_MIN_TX_FEE = 1000;
30 static const unsigned int MAX_STANDARD_TX_WEIGHT = 400000;
32 static const unsigned int MAX_P2SH_SIGOPS = 15;
36 static const unsigned int MAX_STANDARD_TX_SIGOPS_COST = MAX_BLOCK_SIGOPS_COST/5;
38 static const unsigned int DEFAULT_MAX_MEMPOOL_SIZE = 300;
41 static const unsigned int DEFAULT_INCREMENTAL_RELAY_FEE = 1000;
43 static const unsigned int DEFAULT_BYTES_PER_SIGOP = 20;
45 static const unsigned int MAX_STANDARD_P2WSH_STACK_ITEMS = 100;
47 static const unsigned int MAX_STANDARD_P2WSH_STACK_ITEM_SIZE = 80;
49 static const unsigned int MAX_STANDARD_P2WSH_SCRIPT_SIZE = 3600;
56 static const unsigned int DUST_RELAY_TX_FEE = 3000;
62 static const unsigned int STANDARD_SCRIPT_VERIFY_FLAGS = MANDATORY_SCRIPT_VERIFY_FLAGS |
79 static const unsigned int STANDARD_NOT_MANDATORY_VERIFY_FLAGS = STANDARD_SCRIPT_VERIFY_FLAGS & ~MANDATORY_SCRIPT_VERIFY_FLAGS;
116 #endif // FABCOIN_POLICY_POLICY_H CFeeRate incrementalRelayFee
bool IsStandard(const CScript &scriptPubKey, txnouttype &whichType, const bool witnessEnabled=false)
Check transaction inputs to mitigate two potential denial-of-service attacks:
bool IsStandardTx(const CTransaction &tx, std::string &reason, const bool witnessEnabled=false)
Check for standard transaction types.
CAmount GetDustThreshold(const CTxOut &txout, const CFeeRate &dustRelayFee)
unsigned int dgpMaxTxSigOps
The maximum number of sigops we're willing to relay/mine in a single tx.
bool IsDust(const CTxOut &txout, const CFeeRate &dustRelayFee)
int64_t CAmount
Amount in lius (Can be negative)
An output of a transaction.
int64_t GetVirtualTransactionSize(int64_t nWeight, int64_t nSigOpCost)
Compute the virtual transaction size (weight reinterpreted as bytes).
Serialized script, used inside transaction inputs and outputs.
Fee rate in liu per kilobyte: CAmount / kB.
unsigned int nBytesPerSigOp
The basic transaction that is broadcasted on the network and contained in blocks. ...
CCoinsView that adds a memory cache for transactions to another CCoinsView.
bool AreInputsStandard(const CTransaction &tx, const CCoinsViewCache &mapInputs)
Check for standard transaction types.
bool IsWitnessStandard(const CTransaction &tx, const CCoinsViewCache &mapInputs)
Check if the transaction is over standard P2WSH resources limit: 3600bytes witnessScript size...