This commit is contained in:
jl777
2019-07-08 01:42:15 -11:00
parent 654b87cef4
commit b184f14303
2 changed files with 8 additions and 2 deletions

View File

@@ -422,7 +422,13 @@ int32_t NSPV_txextract(CTransaction &tx,uint8_t *data,int32_t datalen)
int32_t NSPV_pubkeysextract(uint8_t pubkeys[64][33],CTransaction tx,uint8_t elected[64][33])
{
int32_t numsigs = 13;
uint256 hashBlock; CTransaction vintx; int32_t i,numsigs = 13;
/*LOCK(cs_main);
for (i=0; i<tx.vin.size(); i++)
{
if ( !GetTransaction(txid,vintx,hashBlock, false))
return(-1);
}*/
return(numsigs);
}

View File

@@ -163,7 +163,7 @@ std::string NSPV_signtx(UniValue &retcodes,CMutableTransaction &mtx,uint64_t txf
{
utxovout = mtx.vin[i].prevout.n;
if ( i > 0 )
sleep(2);
sleep(1);
validation = NSPV_gettransaction(0,utxovout,mtx.vin[i].prevout.hash,used[i].height,vintx);
retcodes.push_back(validation);
if ( validation != -1 ) // most others are degraded security