Move CScriptID to script.{h/cpp}

CScriptID should be next to CScript just as CKeyID is next to CPubKey
This commit is contained in:
Andrew Chow
2023-08-08 10:39:01 -04:00
parent b81ebff0d9
commit 86ea8bed54
16 changed files with 26 additions and 11 deletions

View File

@@ -5,10 +5,13 @@
#include <script/script.h>
#include <hash.h>
#include <util/strencodings.h>
#include <string>
CScriptID::CScriptID(const CScript& in) : BaseHash(Hash160(in)) {}
std::string GetOpName(opcodetype opcode)
{
switch (opcode)