|
|
@ -2325,7 +2325,7 @@ struct komodo_staking *komodo_addutxo(struct komodo_staking *array,int32_t *numk |
|
|
|
int32_t komodo_staked(CMutableTransaction &txNew,uint32_t nBits,uint32_t *blocktimep,uint32_t *txtimep,uint256 *utxotxidp,int32_t *utxovoutp,uint64_t *utxovaluep,uint8_t *utxosig, uint256 merkleroot) |
|
|
|
{ |
|
|
|
static struct komodo_staking *array; static int32_t numkp,maxkp; static uint32_t lasttime; |
|
|
|
int32_t PoSperc = 0, newStakerActive; |
|
|
|
int32_t PoSperc = 0; |
|
|
|
set<CBitcoinAddress> setAddress; struct komodo_staking *kp; int32_t winners,segid,minage,nHeight,counter=0,i,m,siglen=0,nMinDepth = 1,nMaxDepth = 99999999; vector<COutput> vecOutputs; uint32_t block_from_future_rejecttime,besttime,eligible,earliest = 0; CScript best_scriptPubKey; arith_uint256 mindiff,ratio,bnTarget,tmpTarget; CBlockIndex *tipindex,*pindex; CTxDestination address; bool fNegative,fOverflow; uint8_t hashbuf[256]; CTransaction tx; uint256 hashBlock; |
|
|
|
uint64_t cbPerc = *utxovaluep, tocoinbase = 0; |
|
|
|
if (!EnsureWalletIsAvailable(0)) |
|
|
|