Cleanup, initialize stake for chainPower in pre-sapling path
This commit is contained in:
@@ -824,6 +824,7 @@ int32_t waitForPeers(const CChainParams &chainparams)
|
|||||||
{
|
{
|
||||||
bool fvNodesEmpty;
|
bool fvNodesEmpty;
|
||||||
{
|
{
|
||||||
|
boost::this_thread::interruption_point();
|
||||||
LOCK(cs_vNodes);
|
LOCK(cs_vNodes);
|
||||||
fvNodesEmpty = vNodes.empty();
|
fvNodesEmpty = vNodes.empty();
|
||||||
}
|
}
|
||||||
@@ -833,6 +834,7 @@ int32_t waitForPeers(const CChainParams &chainparams)
|
|||||||
if (fvNodesEmpty)
|
if (fvNodesEmpty)
|
||||||
MilliSleep(1000 + rand() % 4000);
|
MilliSleep(1000 + rand() % 4000);
|
||||||
{
|
{
|
||||||
|
boost::this_thread::interruption_point();
|
||||||
LOCK(cs_vNodes);
|
LOCK(cs_vNodes);
|
||||||
fvNodesEmpty = vNodes.empty();
|
fvNodesEmpty = vNodes.empty();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -447,7 +447,7 @@ bool CheckProofOfWork(const CBlockHeader &blkHeader, uint8_t *pubkey33, int32_t
|
|||||||
|
|
||||||
CChainPower GetBlockProof(const CBlockIndex& block)
|
CChainPower GetBlockProof(const CBlockIndex& block)
|
||||||
{
|
{
|
||||||
arith_uint256 bnWorkTarget, bnStakeTarget = arith_uint256();
|
arith_uint256 bnWorkTarget, bnStakeTarget = arith_uint256(0);
|
||||||
|
|
||||||
bool fNegative;
|
bool fNegative;
|
||||||
bool fOverflow;
|
bool fOverflow;
|
||||||
|
|||||||
Reference in New Issue
Block a user