mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
Interpret OP_EVAL as OP_NOP until Feb 1, 2012
This commit is contained in:
parent
fae3e2aab6
commit
a0871afb2b
2 changed files with 63 additions and 3 deletions
|
|
@ -1014,6 +1014,18 @@ bool EvalScriptInner(vector<vector<unsigned char> >& stack, const CScript& scrip
|
|||
|
||||
case OP_EVAL:
|
||||
{
|
||||
// This code should be removed when OP_EVAL has
|
||||
// a majority of hashing power on the network.
|
||||
// OP_EVAL behaves just like OP_NOP until
|
||||
// opevaltime :
|
||||
if (!fTestNet || fDebug)
|
||||
{
|
||||
// 1328054400 is Feb 1, 2012
|
||||
int64 nEvalSwitchTime = GetArg("opevaltime", 1328054400);
|
||||
if (GetTime() < nEvalSwitchTime)
|
||||
break;
|
||||
}
|
||||
|
||||
// Evaluate the top item on the stack as a Script
|
||||
// [serialized script ] -- [result(s) of executing script]
|
||||
if (stack.size() < 1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue