Test
This commit is contained in:
@@ -165,6 +165,8 @@ std::string FinalizeCCTx(uint64_t CCmask,struct CCcontract_info *cp,CMutableTran
|
|||||||
{
|
{
|
||||||
{
|
{
|
||||||
char addr[64];
|
char addr[64];
|
||||||
|
Getscriptaddress(addr,vintx.vout[0].scriptPubKey);
|
||||||
|
fprintf(stderr,"vout[%d] %.8f -> %s\n",0,dstr(vintx.vout[0].nValue),addr);
|
||||||
Getscriptaddress(addr,vintx.vout[utxovout].scriptPubKey);
|
Getscriptaddress(addr,vintx.vout[utxovout].scriptPubKey);
|
||||||
fprintf(stderr,"vout[%d] %.8f -> %s\n",utxovout,dstr(vintx.vout[utxovout].nValue),addr);
|
fprintf(stderr,"vout[%d] %.8f -> %s\n",utxovout,dstr(vintx.vout[utxovout].nValue),addr);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -233,13 +233,6 @@ bool NSPV_SignTx(CMutableTransaction &mtx,int32_t vini,int64_t utxovalue,const C
|
|||||||
{
|
{
|
||||||
CTransaction txNewConst(mtx); SignatureData sigdata; CBasicKeyStore keystore; int64_t branchid = NSPV_BRANCHID;
|
CTransaction txNewConst(mtx); SignatureData sigdata; CBasicKeyStore keystore; int64_t branchid = NSPV_BRANCHID;
|
||||||
keystore.AddKey(NSPV_key);
|
keystore.AddKey(NSPV_key);
|
||||||
if ( 1 )
|
|
||||||
{
|
|
||||||
int32_t i;
|
|
||||||
for (i=0; i<scriptPubKey.size()+4; i++)
|
|
||||||
fprintf(stderr,"%02x",((uint8_t *)&scriptPubKey)[i]);
|
|
||||||
fprintf(stderr," scriptPubKey\n");
|
|
||||||
}
|
|
||||||
if ( nTime != 0 && nTime < KOMODO_SAPLING_ACTIVATION )
|
if ( nTime != 0 && nTime < KOMODO_SAPLING_ACTIVATION )
|
||||||
{
|
{
|
||||||
fprintf(stderr,"use legacy sig validation\n");
|
fprintf(stderr,"use legacy sig validation\n");
|
||||||
|
|||||||
Reference in New Issue
Block a user