Skip to content

Commit

Permalink
Sync fixes, CPU use, checkpoints, bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
industrialcoinmagic committed Jun 17, 2015
1 parent 6d4aa6c commit 0e1fe70
Show file tree
Hide file tree
Showing 70 changed files with 36 additions and 6 deletions.
13 changes: 12 additions & 1 deletion src/checkpoints.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,19 @@ namespace Checkpoints
( 0, uint256("0x00000a336bf3e2be21c2ce9a3f9bc9849c697475d0de85e201bdc3452f3c343b") )
(10000, uint256("0x1cbd7af1430109200bda6ca6a0b94b5771c28819518a201ef96eb0859afca006") )
(20000, uint256("0x8ca1f8beca3f6fd966cc83495f367be55ef3460e63abdf692e22e279a47fbe71") )
(32712, uint256("0x15682588a31e9064596fc45aa2403558dc62eed296e709e4f577beca1669e788") )
(32713, uint256("0x474619e0a58ec88c8e2516f8232064881750e87acac3a416d65b99bd61246968") )
(32720, uint256("0x9bef0d350eb6b11bc0e24c611e92e8e4b7806b1c66afae3d30581c7db89512e4") )
(32750, uint256("0x4f3dd45d3de3737d60da46cff2d36df0002b97c505cdac6756d2d88561840b63") )
(32800, uint256("0x274996cec47b3f3e6cd48c8f0b39c32310dd7ddc8328ae37762be956b9031024") )
(32900, uint256("0xfcea99cbf85e66d340b9883fd4a22f3426dc5a27e35b9cbf936d9fae3378002c") )
(33000, uint256("0x081cb47222d3e076d4035041547f3d91f8b35526b8087a4e360f1470a8d541da") )

(40000, uint256("0x49adb986a856eca96e5af98026f39b30d98d80cacba37ee0bae0ddbf2dbefed9") )
(50000, uint256("0xaf0b1d395f56afd34d28af1f606378caa5570f942a5746b8de39470e92a2aa52") )
(60000, uint256("0xc847e756dbd4d7119106faa675ab3d900c75c1070c69bb91826ed90e89f75052") )
(70000, uint256("0xf7ccc8cb7e5b4075e67c1bc0f8b74d165e0642847f9d3492822dbeda3657f8a2") )
(80000, uint256("0xd4a98f840a72287ddaff2a57380ca625126b5a34982d5e7d6df085ad2d0ba5f3") )
(98000, uint256("0x936bcf68c8c46dab4d1078c430e252ef6372ac419566cfcaa36bcc4a97254520") )
;

// TestNet has no checkpoints
Expand Down
2 changes: 1 addition & 1 deletion src/clientversion.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// These need to be macros, as version.cpp's and bitcoin-qt.rc's voodoo requires it
#define CLIENT_VERSION_MAJOR 1
#define CLIENT_VERSION_MINOR 4
#define CLIENT_VERSION_REVISION 4
#define CLIENT_VERSION_REVISION 5
#define CLIENT_VERSION_BUILD 0

// Set to true for release, false for prerelease or test build
Expand Down
16 changes: 16 additions & 0 deletions src/darksend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2136,6 +2136,22 @@ void ThreadCheckDarkSendPool()
++it;
}

int count = vecMasternodes.size();
int i = 0;

BOOST_FOREACH(CMasterNode mn, vecMasternodes) {

if(mn.addr.IsRFC1918()) continue; //local network
if(mn.IsEnabled()) {
if(fDebug) LogPrintf("Sending masternode entry - %s \n", mn.addr.ToString().c_str());
BOOST_FOREACH(CNode* pnode, vNodes) {
pnode->PushMessage("dsee", mn.vin, mn.addr, mn.sig, mn.now, mn.pubkey, mn.pubkey2, count, i, mn.lastTimeSeen, mn.protocolVersion);
}
}

i++;
}

//remove inactive
it = vecMasternodes.begin();
while(it != vecMasternodes.end()){
Expand Down
7 changes: 5 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1849,6 +1849,8 @@ bool CBlock::ConnectBlock(CTxDB& txdb, CBlockIndex* pindex, bool fJustCheck)
}


if(GetBoolArg("-addrindex", false))
{
// Write Address Index
BOOST_FOREACH(CTransaction& tx, vtx)
{
Expand Down Expand Up @@ -1894,6 +1896,7 @@ bool CBlock::ConnectBlock(CTxDB& txdb, CBlockIndex* pindex, bool fJustCheck)
}
}
}
}

// Update block index on disk without changing it in memory.
// The memory index structure will be changed after the db commits.
Expand Down Expand Up @@ -2479,8 +2482,8 @@ bool CBlock::AcceptBlock()
return DoS(50, error("AcceptBlock() : coinstake timestamp violation nTimeBlock=%d nTimeTx=%u", GetBlockTime(), vtx[1].nTime));

// Check proof-of-work or proof-of-stake
if (nBits != GetNextTargetRequired(pindexPrev, IsProofOfStake()))
return DoS(100, error("AcceptBlock() : incorrect %s", IsProofOfWork() ? "proof-of-work" : "proof-of-stake"));
if (nBits != GetNextTargetRequired(pindexPrev, IsProofOfStake()) && hash != uint256("0x474619e0a58ec88c8e2516f8232064881750e87acac3a416d65b99bd61246968") && hash != uint256("0x4f3dd45d3de3737d60da46cff2d36df0002b97c505cdac6756d2d88561840b63") && hash != uint256("0x274996cec47b3f3e6cd48c8f0b39c32310dd7ddc8328ae37762be956b9031024"))
return error("AcceptBlock() : incorrect %s", IsProofOfWork() ? "proof-of-work" : "proof-of-stake");

// Check timestamp against prev
if (GetBlockTime() <= pindexPrev->GetPastTimeLimit() || FutureDrift(GetBlockTime(), nHeight) < pindexPrev->GetBlockTime())
Expand Down
4 changes: 2 additions & 2 deletions src/main.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ static const unsigned int MAX_P2SH_SIGOPS = 15;
/** The maximum number of sigops we're willing to relay/mine in a single tx */
static const unsigned int MAX_TX_SIGOPS = MAX_BLOCK_SIGOPS/5;
/** The maximum number of orphan transactions kept in memory */
static const unsigned int MAX_ORPHAN_TRANSACTIONS = MAX_BLOCK_SIZE/100;
static const unsigned int MAX_ORPHAN_TRANSACTIONS = MAX_BLOCK_SIZE/10;
/** Default for -maxorphanblocks, maximum number of orphan blocks kept in memory */
static const unsigned int DEFAULT_MAX_ORPHAN_BLOCKS = 750;
static const unsigned int DEFAULT_MAX_ORPHAN_BLOCKS = 7500;
/** The maximum number of entries in an 'inv' protocol message */
static const unsigned int MAX_INV_SZ = 50000;
/** Fees smaller than this (in satoshi) are considered zero fee (for transaction creation) */
Expand Down
Binary file removed src/qt/locale/bitcoin_af_ZA.qm
Binary file not shown.
Binary file removed src/qt/locale/bitcoin_ar.qm
Binary file not shown.
Binary file removed src/qt/locale/bitcoin_be_BY.qm
Binary file not shown.
Binary file removed src/qt/locale/bitcoin_bg.qm
Binary file not shown.
Binary file removed src/qt/locale/bitcoin_bs.qm
Binary file not shown.
Binary file removed src/qt/locale/bitcoin_ca.qm
Binary file not shown.
Binary file removed src/qt/locale/[email protected]
Binary file not shown.
Binary file removed src/qt/locale/bitcoin_ca_ES.qm
Binary file not shown.
Binary file removed src/qt/locale/bitcoin_cs.qm
Binary file not shown.
Binary file removed src/qt/locale/bitcoin_cy.qm
Binary file not shown.
Binary file removed src/qt/locale/bitcoin_da.qm
Binary file not shown.
Binary file removed src/qt/locale/bitcoin_de.qm
Binary file not shown.
Binary file removed src/qt/locale/bitcoin_el_GR.qm
Binary file not shown.
Binary file removed src/qt/locale/bitcoin_en.qm
Binary file not shown.
Binary file removed src/qt/locale/bitcoin_eo.qm
Binary file not shown.
Binary file removed src/qt/locale/bitcoin_es.qm
Binary file not shown.
Binary file removed src/qt/locale/bitcoin_es_CL.qm
Binary file not shown.
Binary file removed src/qt/locale/bitcoin_es_DO.qm
Binary file not shown.
Binary file removed src/qt/locale/bitcoin_es_MX.qm
Binary file not shown.
Binary file removed src/qt/locale/bitcoin_es_UY.qm
Binary file not shown.
Binary file removed src/qt/locale/bitcoin_et.qm
Binary file not shown.
Binary file removed src/qt/locale/bitcoin_eu_ES.qm
Binary file not shown.
Binary file removed src/qt/locale/bitcoin_fa.qm
Binary file not shown.
Binary file removed src/qt/locale/bitcoin_fa_IR.qm
Binary file not shown.
Binary file removed src/qt/locale/bitcoin_fi.qm
Binary file not shown.
Binary file removed src/qt/locale/bitcoin_fr.qm
Binary file not shown.
Binary file removed src/qt/locale/bitcoin_fr_CA.qm
Binary file not shown.
Binary file removed src/qt/locale/bitcoin_gl.qm
Binary file not shown.
Binary file removed src/qt/locale/bitcoin_he.qm
Binary file not shown.
Binary file removed src/qt/locale/bitcoin_hi_IN.qm
Binary file not shown.
Binary file removed src/qt/locale/bitcoin_hr.qm
Binary file not shown.
Binary file removed src/qt/locale/bitcoin_hu.qm
Binary file not shown.
Binary file removed src/qt/locale/bitcoin_id_ID.qm
Binary file not shown.
Binary file removed src/qt/locale/bitcoin_it.qm
Binary file not shown.
Binary file removed src/qt/locale/bitcoin_ja.qm
Binary file not shown.
Binary file removed src/qt/locale/bitcoin_ka.qm
Binary file not shown.
Binary file removed src/qt/locale/bitcoin_kk_KZ.qm
Binary file not shown.
Binary file removed src/qt/locale/bitcoin_ko_KR.qm
Binary file not shown.
Binary file removed src/qt/locale/bitcoin_ky.qm
Binary file not shown.
Binary file removed src/qt/locale/bitcoin_la.qm
Binary file not shown.
Binary file removed src/qt/locale/bitcoin_lt.qm
Binary file not shown.
Binary file removed src/qt/locale/bitcoin_lv_LV.qm
Binary file not shown.
Binary file removed src/qt/locale/bitcoin_ms_MY.qm
Binary file not shown.
Binary file removed src/qt/locale/bitcoin_nb.qm
Binary file not shown.
Binary file removed src/qt/locale/bitcoin_nl.qm
Binary file not shown.
Binary file removed src/qt/locale/bitcoin_pam.qm
Binary file not shown.
Binary file removed src/qt/locale/bitcoin_pl.qm
Binary file not shown.
Binary file removed src/qt/locale/bitcoin_pt_BR.qm
Binary file not shown.
Binary file removed src/qt/locale/bitcoin_pt_PT.qm
Binary file not shown.
Binary file removed src/qt/locale/bitcoin_ro_RO.qm
Binary file not shown.
Binary file removed src/qt/locale/bitcoin_ru.qm
Binary file not shown.
Binary file removed src/qt/locale/bitcoin_sah.qm
Binary file not shown.
Binary file removed src/qt/locale/bitcoin_sk.qm
Binary file not shown.
Binary file removed src/qt/locale/bitcoin_sl_SI.qm
Binary file not shown.
Binary file removed src/qt/locale/bitcoin_sq.qm
Binary file not shown.
Binary file removed src/qt/locale/bitcoin_sr.qm
Binary file not shown.
Binary file removed src/qt/locale/bitcoin_sv.qm
Binary file not shown.
Binary file removed src/qt/locale/bitcoin_th_TH.qm
Binary file not shown.
Binary file removed src/qt/locale/bitcoin_tr.qm
Binary file not shown.
Binary file removed src/qt/locale/bitcoin_uk.qm
Binary file not shown.
Binary file removed src/qt/locale/bitcoin_ur_PK.qm
Binary file not shown.
Binary file removed src/qt/locale/bitcoin_vi.qm
Binary file not shown.
Binary file removed src/qt/locale/bitcoin_vi_VN.qm
Binary file not shown.
Binary file removed src/qt/locale/bitcoin_zh_CN.qm
Binary file not shown.
Binary file removed src/qt/locale/bitcoin_zh_TW.qm
Binary file not shown.

0 comments on commit 0e1fe70

Please sign in to comment.