What does the prohibition of “nonstandard” transactions do?Code:main.cpp:506 // Rather not work on nonstandard transactions if (GetSigOpCount() > 2 || ::GetSerializeSize(*this, SER_NETWORK) < 100) return error("AcceptToMemoryPool() : nonstandard transaction");
What is included in “GetSigOpCount”, and what does “GetSerializeSize” measure?
This is “lightly” enforced by the network:Code:main.cpp:1425 // Check that it's not full of nonstandard transactions if (nHeight > 79400 && GetSigOpCount() > MAX_BLOCK_SIGOPS) return error("AcceptBlock() : too many nonstandard transactions");
Bitcoin clients currently only create and recognize transactions that match two possible templates.
Those are some quick tests that loosely check if transactions fit some general metrics that those standard transactions fit. Nodes will only work on adding those transactions to their block.
In the future, if we add more templates to the existing 2 types of transactions, we can change the “rather not work on nonstandard transactions” test to accept them.
10,700 total views, 2 views todayhttps://bitcointalk.org/index.php?topic=999.msg12240#msg12240