diff options
| author | Luke Dashjr <[email protected]> | 2015-06-27 19:21:41 +0000 |
|---|---|---|
| committer | MarcoFalke <[email protected]> | 2015-11-28 18:47:29 +0100 |
| commit | b966aa836a3bc5bfa1314248258308f0026d41bb (patch) | |
| tree | 479a641f12deef9df483b368876cbd8ede3da5e5 /src/script | |
| parent | Merge pull request #6942 (diff) | |
| download | discoin-b966aa836a3bc5bfa1314248258308f0026d41bb.tar.xz discoin-b966aa836a3bc5bfa1314248258308f0026d41bb.zip | |
Constrain constant values to a single location in code
Diffstat (limited to 'src/script')
| -rw-r--r-- | src/script/standard.cpp | 1 | ||||
| -rw-r--r-- | src/script/standard.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/script/standard.cpp b/src/script/standard.cpp index bfef8afa1..60cf7ae49 100644 --- a/src/script/standard.cpp +++ b/src/script/standard.cpp @@ -16,6 +16,7 @@ using namespace std; typedef vector<unsigned char> valtype; +bool fAcceptDatacarrier = true; unsigned nMaxDatacarrierBytes = MAX_OP_RETURN_RELAY; CScriptID::CScriptID(const CScript& in) : uint160(Hash160(in.begin(), in.end())) {} diff --git a/src/script/standard.h b/src/script/standard.h index ae1bbecca..140306861 100644 --- a/src/script/standard.h +++ b/src/script/standard.h @@ -26,6 +26,7 @@ public: }; static const unsigned int MAX_OP_RETURN_RELAY = 83; //! bytes (+1 for OP_RETURN, +2 for the pushdata opcodes) +extern bool fAcceptDatacarrier; extern unsigned nMaxDatacarrierBytes; /** |