diff --git a/iguana/exchanges/LP_statemachine.c b/iguana/exchanges/LP_statemachine.c index 29af48553..b32dbc83a 100644 --- a/iguana/exchanges/LP_statemachine.c +++ b/iguana/exchanges/LP_statemachine.c @@ -17,6 +17,25 @@ // LP_statemachine.c // marketmaker // + +else +{ + CTransaction tx; uint256 hashBlock; int32_t numvouts,len; uint8_t *ptr; + if ( GetTransaction(NOTARIZED_DESTTXID,tx,hashBlock,true) == 0 ) + { + fprintf(stderr,"error finding") + return(-1); + } + if ( (numvouts= tx.vout.size()) > 0 ) + { + ptr = (uint8_t *)tx.vout[numvouts - 1].scriptPubKey.data(); + len = tx.vout[numvouts - 1].scriptPubKey.size(); + retval = komodo_verifynotarizedscript(height,ptr,len,NOTARIZED_HASH); + printf("direct verify ht.%d -> %d\n",height,retval); + return(retval); + } +} + /*struct LP_cacheinfo *ptr,*tmp; HASH_ITER(hh,LP_cacheinfos,ptr,tmp) {