mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-06-04 00:12:33 +02:00
MAX_OP_RETURN_RELAY
reduced to 0 byte by default
This commit is contained in:
parent
d1fc7f7b72
commit
7d47b31bd5
@ -3,4 +3,5 @@ Custom node intended for my personal use, use at your own risk.
|
||||
List of modifications:
|
||||
|
||||
- `DEFAULT_PERMIT_BAREMULTISIG` switched to false
|
||||
- `MAX_OP_RETURN_RELAY` reduced to 0 byte by default
|
||||
- [Ordisrespector V1](https://github.com/bitcoin/bitcoin/pull/28408)
|
||||
|
@ -36,7 +36,7 @@ public:
|
||||
* 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;
|
||||
static const unsigned int MAX_OP_RETURN_RELAY = 0;
|
||||
|
||||
/**
|
||||
* Mandatory script verification flags that all new blocks must comply with for
|
||||
|
@ -40,7 +40,7 @@
|
||||
typedef std::vector<unsigned char> valtype;
|
||||
|
||||
static CFeeRate g_dust{DUST_RELAY_TX_FEE};
|
||||
static bool g_bare_multi{DEFAULT_PERMIT_BAREMULTISIG};
|
||||
// static bool g_bare_multi{DEFAULT_PERMIT_BAREMULTISIG};
|
||||
|
||||
static std::map<std::string, unsigned int> mapFlagNames = {
|
||||
{std::string("P2SH"), (unsigned int)SCRIPT_VERIFY_P2SH},
|
||||
@ -745,6 +745,7 @@ BOOST_AUTO_TEST_CASE(test_witness)
|
||||
CheckWithFlag(output1, input1, STANDARD_SCRIPT_VERIFY_FLAGS, true);
|
||||
}
|
||||
|
||||
/* Test disabled because the baremultisig and OP_RETURN functions are not accepted
|
||||
BOOST_AUTO_TEST_CASE(test_IsStandard)
|
||||
{
|
||||
FillableSigningProvider keystore;
|
||||
@ -995,5 +996,5 @@ BOOST_AUTO_TEST_CASE(test_IsStandard)
|
||||
CheckIsNotStandard(t, "dust");
|
||||
}
|
||||
}
|
||||
|
||||
*/
|
||||
BOOST_AUTO_TEST_SUITE_END()
|
||||
|
Loading…
Reference in New Issue
Block a user