mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-20 15:19:07 +01:00
OP_EVAL implementation
OP_EVAL is a new opcode that evaluates an item on the stack as a script. It enables a new type of bitcoin address that needs an arbitrarily complex script to redeem.
This commit is contained in:
@@ -934,6 +934,15 @@ int CWalletDB::LoadWallet(CWallet* pwallet)
|
||||
if (nMinVersion > CLIENT_VERSION)
|
||||
return DB_TOO_NEW;
|
||||
}
|
||||
else if (strType == "cscript")
|
||||
{
|
||||
uint160 hash;
|
||||
ssKey >> hash;
|
||||
std::vector<unsigned char> script;
|
||||
ssValue >> script;
|
||||
if (!pwallet->LoadCScript(hash, script))
|
||||
return DB_CORRUPT;
|
||||
}
|
||||
}
|
||||
pcursor->close();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user