Skip to content

Commit

Permalink
Change OP_RETURN data size (#1520)
Browse files Browse the repository at this point in the history
* Change OP_RETURN data size

* tests: Update MAX_OP_RETURN_RELAY

Co-authored-by: Prasanna Loganathar <[email protected]>
  • Loading branch information
Bushstar and prasannavl authored Nov 11, 2022
1 parent e03f4e8 commit 331abbc
Show file tree
Hide file tree
Showing 2 changed files with 82 additions and 24 deletions.
4 changes: 2 additions & 2 deletions src/script/standard.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ class CScriptID : public uint160
};

/**
* Default setting for nMaxDatacarrierBytes. 520 bytes of data, +1 for OP_RETURN,
* Default setting for nMaxDatacarrierBytes. 3997 bytes of data, +1 for OP_RETURN,
* +2 for the pushdata opcodes.
*/
static const unsigned int MAX_OP_RETURN_RELAY = 523;
static const unsigned int MAX_OP_RETURN_RELAY = 4000;

/**
* A data carrying output is an unspendable output containing data. The script
Expand Down
Loading

0 comments on commit 331abbc

Please sign in to comment.