Add detection of liquidv1 fedpeg script, startup sanity check

This commit is contained in:
Gregory Sanders 2019-01-15 10:22:45 -05:00
parent 32aec9af0b
commit 592a622b4b
6 changed files with 96 additions and 8 deletions

View file

@ -233,7 +233,7 @@ bool static CheckPubKeyEncoding(const valtype &vchPubKey, unsigned int flags, co
return true;
}
bool static CheckMinimalPush(const valtype& data, opcodetype opcode) {
bool CheckMinimalPush(const valtype& data, opcodetype opcode) {
// Excludes OP_1NEGATE, OP_1-16 since they are by definition minimal
assert(0 <= opcode && opcode <= OP_PUSHDATA4);
if (data.size() == 0) {