mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-03-05 14:06:27 -05:00
MOVEONLY: Move datacarrier defaults to policy.h
This commit is contained in:
parent
7a172c76d2
commit
8bbe257bac
2 changed files with 7 additions and 8 deletions
|
@ -63,6 +63,13 @@ static constexpr unsigned int DEFAULT_ANCESTOR_SIZE_LIMIT_KVB{101};
|
||||||
static constexpr unsigned int DEFAULT_DESCENDANT_LIMIT{25};
|
static constexpr unsigned int DEFAULT_DESCENDANT_LIMIT{25};
|
||||||
/** Default for -limitdescendantsize, maximum kilobytes of in-mempool descendants */
|
/** Default for -limitdescendantsize, maximum kilobytes of in-mempool descendants */
|
||||||
static constexpr unsigned int DEFAULT_DESCENDANT_SIZE_LIMIT_KVB{101};
|
static constexpr unsigned int DEFAULT_DESCENDANT_SIZE_LIMIT_KVB{101};
|
||||||
|
/** Default for -datacarrier */
|
||||||
|
static const bool DEFAULT_ACCEPT_DATACARRIER = true;
|
||||||
|
/**
|
||||||
|
* Default setting for -datacarriersize. 80 bytes of data, +1 for OP_RETURN,
|
||||||
|
* +2 for the pushdata opcodes.
|
||||||
|
*/
|
||||||
|
static const unsigned int MAX_OP_RETURN_RELAY = 83;
|
||||||
/**
|
/**
|
||||||
* An extra transaction can be added to a package, as long as it only has one
|
* An extra transaction can be added to a package, as long as it only has one
|
||||||
* ancestor and is no larger than this. Not really any reason to make this
|
* ancestor and is no larger than this. Not really any reason to make this
|
||||||
|
|
|
@ -16,16 +16,8 @@
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <variant>
|
#include <variant>
|
||||||
|
|
||||||
static const bool DEFAULT_ACCEPT_DATACARRIER = true;
|
|
||||||
|
|
||||||
class CScript;
|
class CScript;
|
||||||
|
|
||||||
/**
|
|
||||||
* Default setting for -datacarriersize. 80 bytes of data, +1 for OP_RETURN,
|
|
||||||
* +2 for the pushdata opcodes.
|
|
||||||
*/
|
|
||||||
static const unsigned int MAX_OP_RETURN_RELAY = 83;
|
|
||||||
|
|
||||||
enum class TxoutType {
|
enum class TxoutType {
|
||||||
NONSTANDARD,
|
NONSTANDARD,
|
||||||
// 'standard' transaction types:
|
// 'standard' transaction types:
|
||||||
|
|
Loading…
Add table
Reference in a new issue