Skip to content

Commit

Permalink
get rid of unused MAX_OP_RETURN_RELAY
Browse files Browse the repository at this point in the history
  • Loading branch information
DeckerSU committed Jun 13, 2024
1 parent 6fb6a2e commit a97380f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion src/script/standard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ using namespace std;
typedef vector<unsigned char> valtype;

bool fAcceptDatacarrier = DEFAULT_ACCEPT_DATACARRIER;
unsigned nMaxDatacarrierBytes = MAX_OP_RETURN_RELAY;
unsigned nMaxDatacarrierBytes = MAX_OP_RETURN_RELAY_KMD;

bool komodo_is_vSolutionsFixActive(); // didn't want to bring komodo headers here, it's a special case to bypass bad code in Solver() and ExtractDestination()

Expand Down
2 changes: 0 additions & 2 deletions src/script/standard.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ class CScriptID : public uint160
CScriptID(const uint160& in) : uint160(in) {}
};

static const unsigned int MAX_OP_RETURN_RELAY = 8192; //! bytes

static const unsigned int MAX_OP_RETURN_RELAY_KMD = 140; /* 76 bytes of nota size + 64 bytes chain name */
static const unsigned int MAX_OP_RETURN_RELAY_AC = 208; /* 144 bytes of nota size + 64 bytes chain name */

Expand Down

0 comments on commit a97380f

Please sign in to comment.