mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-18 13:17:55 +02: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:
parent
cc40ba2151
commit
e679ec969c
15 changed files with 1165 additions and 582 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue