From 279fac9187e31b85b66abb5a5ed1ec9900218745 Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 22 Mar 2018 16:56:41 +0200 Subject: [PATCH] Test --- src/komodo_bitcoind.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/komodo_bitcoind.h b/src/komodo_bitcoind.h index e9f8c3818..5960862a7 100644 --- a/src/komodo_bitcoind.h +++ b/src/komodo_bitcoind.h @@ -474,6 +474,16 @@ int32_t komodo_verifynotarization(char *symbol,char *dest,int32_t height,int32_t printf("HEX.(%s) vs hash.%s\n",hexstr,NOTARIZED_HASH.ToString().c_str()); len = strlen(hexstr) >> 1; decode_hex(script,len,hexstr); + if ( script[1] == 0x4c ) + { + script++; + len--; + } + else if ( script[1] == 0x4d ) + { + script += 2; + len -= 2; + } retval = komodo_verifynotarizedscript(height,script,len,NOTARIZED_HASH); } }