Skip to content

Conversation

luke-jr
Copy link
Member

@luke-jr luke-jr commented Oct 10, 2014

This seems to be something miners want control over.

@TheBlueMatt
Copy link
Contributor

Link/summary to miner requests?

@luke-jr
Copy link
Member Author

luke-jr commented Oct 11, 2014

The (5-10 people? not big) Eligius tx policy discussion concluded on 80 byte OP_RETURNs, and I've personally observed various positive reactions from random third parties in response, though I didn't save links or anything.

@TheBlueMatt
Copy link
Contributor

What are those third parties? If they are parties using the chain to store data when they could otherwise only store commitments, I'm not sure we want to support them more?

@@ -137,7 +137,7 @@ bool Solver(const CScript& scriptPubKey, txnouttype& typeRet, vector<vector<unsi
else if (opcode2 == OP_SMALLDATA)
{
// small pushdata, <= MAX_OP_RETURN_RELAY bytes
if (vch1.size() > MAX_OP_RETURN_RELAY)
if (vch1.size() > GetArg("-datacarriersize", MAX_OP_RETURN_RELAY))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd seperate user input GetArg("-datacarriersize", ...) from actual logic.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes I think I mentioned this before to @luke-jr in another pull for another issue. Re-parsing the argument every time this function runs is not a good idea, it should only be done once in AppInit2 or so.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're already re-parsing -datacarrier every time too. CNodePolicy would be moving these to AppInit2 anyway.

@jgarzik
Copy link
Contributor

jgarzik commented Oct 13, 2014

PR #5075 updates the logic to default to 80 bytes.

@TheBlueMatt
Copy link
Contributor

@jgarzik Making it an option, sure...changing the default...probably should be discussed on the ML.

@laanwj
Copy link
Member

laanwj commented Oct 27, 2014

utACK

@TheBlueMatt
Copy link
Contributor

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

utACK commithash 2aa632921efd861a7c9968e8faf6c73cb3d62c4a
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBAgAGBQJUT/1TAAoJEIm7uGY+LmXObkUQAICuCobiXOYEEd7mMCMB5hKe
tlsOgWq7Hi7aZZZH3e0YieLL2XkKExSjKmDrqeOeo/szuPjlLmRsukSDS/fXMzHW
/27L5JY5fJdMNLEECm+hV1sm9pHAkFzSDfHUHJAyajEvmQbZNi5Hs6D8Qrk6gbZq
539QqJZCxLc6tTHU2Wl9qmZ/6REIuKrOKxos9Qg+vANn8UQbtafCdX65JmlqG/cq
3MWU/4Yyk66qxO/X9WlcWyYmdYZTgpa9H71y9GP5wtJtXWeC7dRAZY7v5V5+Qr80
jaiJEKlTRmq87fzNby5oYqI8dXWYIDIPoxZfHa9CPNsa/wBKkAIb1cghognVrlju
jJjxIOIxFff33Pze/PnZlR6Y0+MXN6qfgMqGO7W9Ripkj9CXc0DzdQ6LJdo8i2hN
JdfJ8+mbflQmfrJ8ycNubB/nkfxkSA/v/3kU4vtpnk8wga9yY7N8t6kJfZVTNy3a
9ew6564XnwAgONXe3UW8zXCEImfRUjzmsPrYahHUis3Klb1PFImf2rw8fF85yZJK
AaslG156zp85DKeM9wRXXwKxo+VtnYupclvyo/qUmo0r7L5oyaBur/1BqIsnBAyW
BhWbkeW4SfEa6pGDGg3SvDEXEgctjS4iqfdHfAyxH5BXPQ4mAgSpwPxYa1DEzoSJ
2MKxoQTUxRO5gIPqNj60
=j96Y
-----END PGP SIGNATURE-----

@laanwj laanwj merged commit 2aa6329 into bitcoin:master Oct 31, 2014
laanwj added a commit that referenced this pull request Oct 31, 2014
2aa6329 Enable customising node policy for datacarrier data size with a -datacarriersize option (Luke Dashjr)
@luke-jr luke-jr deleted the datacarriersize branch January 1, 2015 10:13
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants