Author

Topic: Where does the 40Byte OP_RETURN Restriction Exist in the Code? (Read 1934 times)

legendary
Activity: 1106
Merit: 1026
If you actually look a bit closer, 6-7 guys are responsible for whatever gets in the client.

Likewise, there are a few open PRs addressing this topic:

Relay up to two (2) OP_RETURN outputs as IsStandard
https://github.com/bitcoin/bitcoin/pull/5075

Accept any sequence of PUSHDATAs in OP_RETURN outputs
https://github.com/bitcoin/bitcoin/pull/5079

Change the default maximum OP_RETURN size to 80 bytes
https://github.com/bitcoin/bitcoin/pull/5286
sr. member
Activity: 293
Merit: 272
Director - www.cubeform.io
legendary
Activity: 1862
Merit: 1014
Reverse engineer from time to time
If you actually look a bit closer, 6-7 guys are responsible for whatever gets in the client.
member
Activity: 114
Merit: 12
newbie
Activity: 6
Merit: 0
Where in the Bitcoin wallet code is the 40byte restriction for OP_RETURN transactions enforced?

So far, I've found material in the code on lines:
328 **src/script/script.h
, 678 **src/main.cpp
, 57 **src/script/standard.cpp

Is the 40byte restriction enforced in the code, or is there something I'm missing here?


... Answered my own question again... I think I found it here:
https://github.com/bitcoin/bitcoin/pull/3737/files


For anyone else who wants to read about OP_RETURN, this post was pretty sweet:
http://bitcoin.stackexchange.com/questions/29554/explanation-of-what-an-op-return-transaction-looks-like


Cheers,
SC.


References:
https://github.com/bitcoin/bitcoin/search?utf8=%E2%9C%93&q=OP_RETURN
https://en.bitcoin.it/wiki/Script
http://coinsecrets.org/
http://bitcoin.stackexchange.com/questions/23024/op-return-data-transaction
Jump to: