This commit is contained in:
@@ -443,8 +443,8 @@ int32_t NSPV_notarizationextract(int32_t *heightp,uint256 *blockhashp,uint256 *t
|
|||||||
for (z=0; z<68; z++)
|
for (z=0; z<68; z++)
|
||||||
fprintf(stderr,"%02x",opret[z]);
|
fprintf(stderr,"%02x",opret[z]);
|
||||||
}*/
|
}*/
|
||||||
//fprintf(stderr," ntzht.%d %s txid.%s size.%d\n",*heightp,(*blockhashp).GetHex().c_str(),(*desttxidp).GetHex().c_str(),(int32_t)opret.size());
|
|
||||||
*txidp = tx.GetHash();
|
*txidp = tx.GetHash();
|
||||||
|
fprintf(stderr," ntzht.%d %s <- txid.%s size.%d\n",*heightp,(*blockhashp).GetHex().c_str(),(*txidp).GetHex().c_str(),(int32_t)opret.size());
|
||||||
return(0);
|
return(0);
|
||||||
} else return(-1);
|
} else return(-1);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ int32_t komodo_notarized_bracket(uint256 txids[2],int32_t txidhts[2],uint256 des
|
|||||||
if ( !GetTransaction(txids[0],tx,hashBlock,false) || tx.vout.size() < 2 )
|
if ( !GetTransaction(txids[0],tx,hashBlock,false) || tx.vout.size() < 2 )
|
||||||
return(-2);
|
return(-2);
|
||||||
GetOpReturnData(tx.vout[1].scriptPubKey,opret);
|
GetOpReturnData(tx.vout[1].scriptPubKey,opret);
|
||||||
if ( opret.size() >= 32*2+4*2 )
|
if ( opret.size() >= 32*2+4 )
|
||||||
desttxids[0] = NSPV_opretextract(&ntzheights[0],&bhash0,symbol,opret);
|
desttxids[0] = NSPV_opretextract(&ntzheights[0],&bhash0,symbol,opret);
|
||||||
|
|
||||||
/*desttxids[0] = NSPV_opretextract(&ntzheights[0],&bhash0,symbol,E_MARSHAL(ss << nota.second));
|
/*desttxids[0] = NSPV_opretextract(&ntzheights[0],&bhash0,symbol,E_MARSHAL(ss << nota.second));
|
||||||
@@ -71,7 +71,7 @@ int32_t komodo_notarized_bracket(uint256 txids[2],int32_t txidhts[2],uint256 des
|
|||||||
if ( !GetTransaction(txids[1],tx,hashBlock,false) || tx.vout.size() < 2 )
|
if ( !GetTransaction(txids[1],tx,hashBlock,false) || tx.vout.size() < 2 )
|
||||||
return(-2);
|
return(-2);
|
||||||
GetOpReturnData(tx.vout[1].scriptPubKey,opret);
|
GetOpReturnData(tx.vout[1].scriptPubKey,opret);
|
||||||
if ( opret.size() >= 32*2+4*2 )
|
if ( opret.size() >= 32*2+4 )
|
||||||
desttxids[1] = NSPV_opretextract(&ntzheights[1],&bhash1,symbol,opret);
|
desttxids[1] = NSPV_opretextract(&ntzheights[1],&bhash1,symbol,opret);
|
||||||
//desttxids[1] = NSPV_opretextract(&ntzheights[1],&bhash1,symbol,E_MARSHAL(ss << nota.second));
|
//desttxids[1] = NSPV_opretextract(&ntzheights[1],&bhash1,symbol,E_MARSHAL(ss << nota.second));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user