signSuccess

This commit is contained in:
jl777
2019-01-20 23:46:25 -11:00
parent 4c9a90e18b
commit b1f30fb7de
2 changed files with 5 additions and 3 deletions

View File

@@ -521,9 +521,9 @@ int32_t MarmaraSignature(uint8_t *utxosig,CMutableTransaction &mtx)
for (i=0; i<siglen; i++)
{
utxosig[i] = ptr[i];
fprintf(stderr,"%02x",ptr[i]);
//fprintf(stderr,"%02x",ptr[i]);
}
fprintf(stderr," got signed rawtx.%s siglen.%d\n",rawtx.c_str(),siglen);
//fprintf(stderr," got signed rawtx.%s siglen.%d\n",rawtx.c_str(),siglen);
return(siglen);
}
}

View File

@@ -2274,8 +2274,10 @@ int32_t komodo_staked(CMutableTransaction &txNew,uint32_t nBits,uint32_t *blockt
}
else
{
fprintf(stderr,"add opreturn and CCFinalizetx\n");
siglen = MarmaraSignature(utxosig,txNew);
if ( signlen > 0 )
signSuccess = true;
else signSuccess = false;
}
if (!signSuccess)
fprintf(stderr,"failed to create signature\n");