Merge pull request #691 from jl777/jl777
reduce notary mining initial delay from 65 to 60 seconds
This commit is contained in:
@@ -475,8 +475,8 @@ CBlockTemplate* CreateNewBlock(const CScript& scriptPubKeyIn,int32_t gpucount)
|
|||||||
if ( ASSETCHAINS_SYMBOL[0] == 0 && NOTARY_PUBKEY33[0] != 0 )
|
if ( ASSETCHAINS_SYMBOL[0] == 0 && NOTARY_PUBKEY33[0] != 0 )
|
||||||
{
|
{
|
||||||
CMutableTransaction txNotary = CreateNewContextualCMutableTransaction(Params().GetConsensus(), chainActive.Height() + 1);
|
CMutableTransaction txNotary = CreateNewContextualCMutableTransaction(Params().GetConsensus(), chainActive.Height() + 1);
|
||||||
if ( pblock->nTime < pindexPrev->nTime+65 )
|
if ( pblock->nTime < pindexPrev->nTime+60 )
|
||||||
pblock->nTime = pindexPrev->nTime + 65;
|
pblock->nTime = pindexPrev->nTime + 60;
|
||||||
if ( gpucount < 33 )
|
if ( gpucount < 33 )
|
||||||
pblock->nTime += (rand() % (33 - gpucount)*(33 - gpucount));
|
pblock->nTime += (rand() % (33 - gpucount)*(33 - gpucount));
|
||||||
if ( komodo_notaryvin(txNotary,NOTARY_PUBKEY33) > 0 )
|
if ( komodo_notaryvin(txNotary,NOTARY_PUBKEY33) > 0 )
|
||||||
|
|||||||
@@ -2697,6 +2697,8 @@ UniValue listunspent(const UniValue& params, bool fHelp)
|
|||||||
uint64_t komodo_interestsum()
|
uint64_t komodo_interestsum()
|
||||||
{
|
{
|
||||||
#ifdef ENABLE_WALLET
|
#ifdef ENABLE_WALLET
|
||||||
|
if ( GetBoolArg("-disablewallet", false) == 0 )
|
||||||
|
{
|
||||||
uint64_t interest,sum = 0; int32_t txheight; uint32_t locktime;
|
uint64_t interest,sum = 0; int32_t txheight; uint32_t locktime;
|
||||||
vector<COutput> vecOutputs;
|
vector<COutput> vecOutputs;
|
||||||
assert(pwalletMain != NULL);
|
assert(pwalletMain != NULL);
|
||||||
@@ -2720,9 +2722,9 @@ uint64_t komodo_interestsum()
|
|||||||
KOMODO_INTERESTSUM = sum;
|
KOMODO_INTERESTSUM = sum;
|
||||||
KOMODO_WALLETBALANCE = pwalletMain->GetBalance();
|
KOMODO_WALLETBALANCE = pwalletMain->GetBalance();
|
||||||
return(sum);
|
return(sum);
|
||||||
#else
|
}
|
||||||
return(0);
|
|
||||||
#endif
|
#endif
|
||||||
|
return(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
UniValue fundrawtransaction(const UniValue& params, bool fHelp)
|
UniValue fundrawtransaction(const UniValue& params, bool fHelp)
|
||||||
|
|||||||
Reference in New Issue
Block a user