dash/src
UdjinM6 105713c10a Sync overhaul (#1564)
* Change sync process:
- IsBlockchainSynced(): drop CheckNodeHeight() and all complicated code, use fInitialDownload in UpdatedBlockTip() to switch initial states
- ProcessTick(): detect sleep mode like it was in IsBlockchainSynced(), not by number of masternodes

* Changes for sync in governance:
- do not keep sync alive on ConfirmInventoryRequest()
- skip some governance actions until we are synced to some level

* do not run CMasternodeMan::UpdateLastPaid() until winners list is synced

* start syncing mn list on the same node right after requesting sporks

* replace nTimeLast<Asset> with the unified nTimeLastBumped, bump on UpdatedBlockTip

* fix comments and LogPrintf-s

* remove excessive MASTERNODE_SYNC_IBD

* a bit more descriptive BumpAssetLastTime in few cases
2017-08-09 19:07:03 +03:00
..
bench Backport Bitcoin PR#9260: Mrs Peacock in The Library with The Candlestick (killed main.{h,cpp}) (#1566) 2017-08-09 03:19:06 +03:00
compat fixed protobuf 3.0 (byteswap) issue on macOS (#1370) 2017-02-28 13:00:02 +04:00
config
consensus Align with btc 0.12 (#1409) 2017-04-11 13:53:54 +03:00
crypto Merge remote-tracking branch 'bitcoin/0.12' into HEAD 2016-02-06 16:48:04 +03:00
drafted bump copyright notice to 2017 (#1207) 2016-12-20 17:26:45 +04:00
leveldb Update LevelDB 2015-11-04 23:46:47 +01:00
obj
obj-test
policy Backport Bitcoin PR#9260: Mrs Peacock in The Library with The Candlestick (killed main.{h,cpp}) (#1566) 2017-08-09 03:19:06 +03:00
primitives Implement BIP69 outside of CTxIn/CTxOut (#1514) 2017-07-10 17:42:59 +03:00
qt Backport Bitcoin PR#9260: Mrs Peacock in The Library with The Candlestick (killed main.{h,cpp}) (#1566) 2017-08-09 03:19:06 +03:00
rpc Sync overhaul (#1564) 2017-08-09 19:07:03 +03:00
script Rename bitcoinconsensus library to dashconsensus. (#1432) 2017-04-15 09:29:09 +02:00
secp256k1 Cleanup 2016-02-15 00:01:44 +03:00
support HD wallet (#1405) 2017-05-29 14:51:40 +03:00
test Backport Bitcoin PR#9289: net: drop boost::thread_group (#1568) 2017-08-09 19:06:31 +03:00
univalue univalue: Handle UTF-8 2016-05-31 04:31:02 +03:00
wallet Backport Bitcoin PR#9260: Mrs Peacock in The Library with The Candlestick (killed main.{h,cpp}) (#1566) 2017-08-09 03:19:06 +03:00
zmq Backport Bitcoin PR#9260: Mrs Peacock in The Library with The Candlestick (killed main.{h,cpp}) (#1566) 2017-08-09 03:19:06 +03:00
.clang-format [trivial] clang-format: Set AlignAfterOpenBracket: false 2015-11-05 23:28:02 +01:00
activemasternode.cpp Backport Bitcoin PR#8085: p2p: Begin encapsulation (#1537) 2017-07-21 12:35:19 +03:00
activemasternode.h Replace watchdogs with ping (#1491) 2017-07-04 20:31:57 +03:00
addrdb.cpp Backport Bitcoin PR#8085: p2p: Begin encapsulation (#1537) 2017-07-21 12:35:19 +03:00
addrdb.h Backport Bitcoin PR#8085: p2p: Begin encapsulation (#1537) 2017-07-21 12:35:19 +03:00
addressindex.h mempool: same address and index for an input and output bug 2016-06-13 11:23:30 -04:00
addrman.cpp Backport Bitcoin PR#7749: Enforce expected outbound services (#1508) 2017-07-05 06:45:23 +03:00
addrman.h Backport Bitcoin PR#7749: Enforce expected outbound services (#1508) 2017-07-05 06:45:23 +03:00
alert.cpp Backport Bitcoin PR#8708: net: have CConnman handle message sending (#1553) 2017-07-27 17:28:05 +03:00
alert.h Backport Bitcoin PR#8708: net: have CConnman handle message sending (#1553) 2017-07-27 17:28:05 +03:00
amount.cpp Report amounts in the correct currency (#983) 2016-09-02 01:02:45 +04:00
amount.h Bump copyright headers to 2015 2016-01-05 14:13:33 +01:00
arith_uint256.cpp
arith_uint256.h Bump copyright headers to 2015 2016-01-05 14:13:33 +01:00
base58.cpp Improve EncodeBase58/DecodeBase58 performance (#1456) 2017-05-09 20:06:51 +03:00
base58.h (log) tweaks and (general) cleanup (#1086) 2016-10-22 20:52:14 +04:00
bip39_english.h HD wallet (#1405) 2017-05-29 14:51:40 +03:00
bip39.cpp HD wallet (#1405) 2017-05-29 14:51:40 +03:00
bip39.h HD wallet (#1405) 2017-05-29 14:51:40 +03:00
bloom.cpp trivial: fix bloom filter init to isEmpty = true (#1458) 2017-05-05 14:33:44 +03:00
bloom.h Bump copyright headers to 2015 2016-01-05 14:13:33 +01:00
cachemap.h bump copyright notice to 2017 (#1207) 2016-12-20 17:26:45 +04:00
cachemultimap.h Periodicially request orphan objects (#1383) 2017-03-06 08:46:59 +01:00
chain.cpp test: Add more thorough test for dbwrapper iterators 2016-06-09 22:47:27 +02:00
chain.h Merge #915: Store block hash in CDiskBlockIndex 2016-07-29 07:27:47 +02:00
chainparams.cpp various trivial cleanup fixes (#1501) 2017-07-03 16:14:07 +03:00
chainparams.h various trivial cleanup fixes (#1501) 2017-07-03 16:14:07 +03:00
chainparamsbase.cpp Merge remote-tracking branch 'bitcoin/0.12' into HEAD 2016-02-06 16:48:04 +03:00
chainparamsbase.h Merge remote-tracking branch 'bitcoin/0.12' into HEAD 2016-02-06 16:48:04 +03:00
chainparamsseeds.h Merge remote-tracking branch 'bitcoin/0.12' into HEAD 2016-02-06 16:48:04 +03:00
checkpoints.cpp Backport Bitcoin PR#9260: Mrs Peacock in The Library with The Candlestick (killed main.{h,cpp}) (#1566) 2017-08-09 03:19:06 +03:00
checkpoints.h Bump copyright headers to 2015 2016-01-05 14:13:33 +01:00
checkqueue.h Bump copyright headers to 2015 2016-01-05 14:13:33 +01:00
clientversion.cpp Merge remote-tracking branch 'bitcoin/0.12' into HEAD 2016-02-06 16:48:04 +03:00
clientversion.h bump to 0.12.1.5 (#1418) 2017-03-24 11:47:10 +01:00
coincontrol.h More instantx->instantsend (few more ds->privatesend) (#984) 2016-09-02 16:17:32 +04:00
coins.cpp Bump copyright headers to 2015 2016-01-05 14:13:33 +01:00
coins.h Merge remote-tracking branch 'bitcoin/0.12' into HEAD 2016-02-06 16:48:04 +03:00
compat.h Cleanup 2016-02-15 00:01:44 +03:00
compressor.cpp
compressor.h
core_io.h Bump copyright headers to 2015 2016-01-05 14:13:33 +01:00
core_memusage.h Prevector type 2015-11-13 18:15:20 +01:00
core_read.cpp Bump copyright headers to 2015 2016-01-05 14:13:33 +01:00
core_write.cpp Refactor script tests 2016-05-04 13:01:59 +02:00
darksend-relay.cpp Backport Bitcoin PR#8085: p2p: Begin encapsulation (#1537) 2017-07-21 12:35:19 +03:00
darksend-relay.h Backport Bitcoin PR#9260: Mrs Peacock in The Library with The Candlestick (killed main.{h,cpp}) (#1566) 2017-08-09 03:19:06 +03:00
dash-cli-res.rc Merge remote-tracking branch 'bitcoin/0.12' into HEAD 2016-02-06 16:48:04 +03:00
dash-cli.cpp Backport Bincoin PR#7348: MOVE ONLY: move rpc* to rpc/ + same for Dash-specific rpc (#1502) 2017-07-03 16:13:34 +03:00
dash-tx-res.rc Merge remote-tracking branch 'bitcoin/0.12' into HEAD 2016-02-06 16:48:04 +03:00
dash-tx.cpp Fix exit codes (#1127) 2016-11-11 09:16:39 +04:00
dashd-res.rc Merge remote-tracking branch 'bitcoin/0.12' into HEAD 2016-02-06 16:48:04 +03:00
dashd.cpp Backport Bincoin PR#7348: MOVE ONLY: move rpc* to rpc/ + same for Dash-specific rpc (#1502) 2017-07-03 16:13:34 +03:00
dbwrapper.cpp Bump copyright headers to 2015 2016-01-05 14:13:33 +01:00
dbwrapper.h Bump copyright headers to 2015 2016-01-05 14:13:33 +01:00
dsnotificationinterface.cpp Sync overhaul (#1564) 2017-08-09 19:07:03 +03:00
dsnotificationinterface.h fix CDSNotificationInterface::UpdatedBlockTip signature (#1562) 2017-08-04 20:43:48 +03:00
flat-database.h bump copyright notice to 2017 (#1207) 2016-12-20 17:26:45 +04:00
governance-classes.cpp Backport Bitcoin PR#9260: Mrs Peacock in The Library with The Candlestick (killed main.{h,cpp}) (#1566) 2017-08-09 03:19:06 +03:00
governance-classes.h cleanup/fix includes: (#1214) 2016-12-20 17:27:59 +04:00
governance-exceptions.h cleanup/fix includes: (#1214) 2016-12-20 17:27:59 +04:00
governance-misc.h Backport Bitcoin PR#9260: Mrs Peacock in The Library with The Candlestick (killed main.{h,cpp}) (#1566) 2017-08-09 03:19:06 +03:00
governance-object.cpp Backport Bitcoin PR#8085: p2p: Begin encapsulation (#1537) 2017-07-21 12:35:19 +03:00
governance-object.h Fixed issues with propagation of governance objects (#1489) 2017-07-05 03:31:50 +03:00
governance-validators.cpp add 6 to strAllowedChars (#1542) 2017-07-21 12:36:34 +03:00
governance-validators.h Validate proposals on prepare and submit (#1488) 2017-06-26 16:56:29 +03:00
governance-vote.cpp Backport Bitcoin PR#8085: p2p: Begin encapsulation (#1537) 2017-07-21 12:35:19 +03:00
governance-vote.h cleanup/fix includes: (#1214) 2016-12-20 17:27:59 +04:00
governance-votedb.cpp V0.12.1.x multiple vote fix (#1425) 2017-04-03 23:06:33 +03:00
governance-votedb.h bump copyright notice to 2017 (#1207) 2016-12-20 17:26:45 +04:00
governance.cpp Sync overhaul (#1564) 2017-08-09 19:07:03 +03:00
governance.h Fix vulnerability with mapMasternodeOrphanObjects (#1512) 2017-07-13 12:38:00 +03:00
hash.cpp Bump copyright headers to 2015 2016-01-05 14:13:33 +01:00
hash.h bump copyright notice to 2017 (#1207) 2016-12-20 17:26:45 +04:00
hdchain.cpp HD wallet (#1405) 2017-05-29 14:51:40 +03:00
hdchain.h HD wallet (#1405) 2017-05-29 14:51:40 +03:00
httprpc.cpp Backport Bincoin PR#7348: MOVE ONLY: move rpc* to rpc/ + same for Dash-specific rpc (#1502) 2017-07-03 16:13:34 +03:00
httprpc.h evhttpd implementation 2015-09-03 10:59:18 +02:00
httpserver.cpp Backport Bincoin PR#7348: MOVE ONLY: move rpc* to rpc/ + same for Dash-specific rpc (#1502) 2017-07-03 16:13:34 +03:00
httpserver.h http: speed up shutdown 2015-11-13 11:10:48 +01:00
init.cpp Sync overhaul (#1564) 2017-08-09 19:07:03 +03:00
init.h Merge remote-tracking branch 'bitcoin/0.12' into HEAD 2016-02-06 16:48:04 +03:00
instantx.cpp Backport Bitcoin PR#9260: Mrs Peacock in The Library with The Candlestick (killed main.{h,cpp}) (#1566) 2017-08-09 03:19:06 +03:00
instantx.h adjust/fix some log and error messages (#1484) 2017-06-06 02:47:23 +03:00
keepass.cpp Backport Bincoin PR#7348: MOVE ONLY: move rpc* to rpc/ + same for Dash-specific rpc (#1502) 2017-07-03 16:13:34 +03:00
keepass.h bump copyright notice to 2017 (#1207) 2016-12-20 17:26:45 +04:00
key.cpp Bump copyright headers to 2015 2016-01-05 14:13:33 +01:00
key.h HD wallet (#1405) 2017-05-29 14:51:40 +03:00
keystore.cpp HD wallet (#1405) 2017-05-29 14:51:40 +03:00
keystore.h HD wallet (#1405) 2017-05-29 14:51:40 +03:00
limitedmap.h Bump copyright headers to 2015 2016-01-05 14:13:33 +01:00
Makefile.am Backport Bitcoin PR#9289: net: drop boost::thread_group (#1568) 2017-08-09 19:06:31 +03:00
Makefile.bench.include Backport Bitcoin PR#7349: Build against system UniValue when available (#1503) 2017-07-04 06:20:19 +03:00
Makefile.leveldb.include Backport leveldb build integration to 0.12 2016-06-05 12:48:57 -07:00
Makefile.qt.include HD wallet (#1405) 2017-05-29 14:51:40 +03:00
Makefile.qttest.include Qt: bug fixes and enhancement to traffic graph widget (#1429) 2017-05-28 16:49:34 +03:00
Makefile.test.include Backport Bitcoin PR#7696: Fix de-serialization bug where AddrMan is corrupted after exception (#1507) 2017-07-05 03:40:22 +03:00
masternode-payments.cpp Sync overhaul (#1564) 2017-08-09 19:07:03 +03:00
masternode-payments.h Backport Bitcoin PR#9260: Mrs Peacock in The Library with The Candlestick (killed main.{h,cpp}) (#1566) 2017-08-09 03:19:06 +03:00
masternode-sync.cpp Sync overhaul (#1564) 2017-08-09 19:07:03 +03:00
masternode-sync.h Sync overhaul (#1564) 2017-08-09 19:07:03 +03:00
masternode.cpp Sync overhaul (#1564) 2017-08-09 19:07:03 +03:00
masternode.h Backport Bitcoin PR#9260: Mrs Peacock in The Library with The Candlestick (killed main.{h,cpp}) (#1566) 2017-08-09 03:19:06 +03:00
masternodeconfig.cpp Fix CMasternodeConfig::read (#1322) 2017-02-06 01:29:23 +04:00
masternodeconfig.h bump copyright notice to 2017 (#1207) 2016-12-20 17:26:45 +04:00
masternodeman.cpp Sync overhaul (#1564) 2017-08-09 19:07:03 +03:00
masternodeman.h Refactor PS (#1437) 2017-05-05 14:26:27 +03:00
memusage.h Prevector type 2015-11-13 18:15:20 +01:00
merkleblock.cpp PARTIAL: typofixes (found by misspell_fixer) 2016-01-16 17:04:08 +01:00
merkleblock.h Bump copyright headers to 2015 2016-01-05 14:13:33 +01:00
messagesigner.cpp Backport Bitcoin PR#9260: Mrs Peacock in The Library with The Candlestick (killed main.{h,cpp}) (#1566) 2017-08-09 03:19:06 +03:00
messagesigner.h Refactor: CDarkSendSigner (#1410) 2017-04-12 10:04:06 +03:00
miner.cpp Backport Bitcoin PR#9260: Mrs Peacock in The Library with The Candlestick (killed main.{h,cpp}) (#1566) 2017-08-09 03:19:06 +03:00
miner.h Backport Bitcoin PR#8085: p2p: Begin encapsulation (#1537) 2017-07-21 12:35:19 +03:00
net_processing.cpp Backport Bitcoin PR#9289: net: drop boost::thread_group (#1568) 2017-08-09 19:06:31 +03:00
net_processing.h Backport Bitcoin PR#9289: net: drop boost::thread_group (#1568) 2017-08-09 19:06:31 +03:00
net.cpp Backport Bitcoin PR#9289: net: drop boost::thread_group (#1568) 2017-08-09 19:06:31 +03:00
net.h Backport Bitcoin PR#9289: net: drop boost::thread_group (#1568) 2017-08-09 19:06:31 +03:00
netbase.cpp Backport Bitcoin PR#9289: net: drop boost::thread_group (#1568) 2017-08-09 19:06:31 +03:00
netbase.h Backport Bitcoin PR#9289: net: drop boost::thread_group (#1568) 2017-08-09 19:06:31 +03:00
netfulfilledman.cpp bump copyright notice to 2017 (#1207) 2016-12-20 17:26:45 +04:00
netfulfilledman.h bump copyright notice to 2017 (#1207) 2016-12-20 17:26:45 +04:00
noui.cpp bump copyright notice to 2017 (#1207) 2016-12-20 17:26:45 +04:00
noui.h
pow.cpp Fixed pow (test and algo) (#1415) 2017-04-11 13:55:07 +03:00
pow.h Merge remote-tracking branch 'bitcoin/0.12' into HEAD 2016-02-06 16:48:04 +03:00
prevector.h prevector::swap: fix (unreached) data corruption 2016-07-30 05:18:17 +03:00
privatesend-client.cpp Backport Bitcoin PR#8708: net: have CConnman handle message sending (#1553) 2017-07-27 17:28:05 +03:00
privatesend-client.h Backport Bitcoin PR#8085: p2p: Begin encapsulation (#1537) 2017-07-21 12:35:19 +03:00
privatesend-server.cpp Backport Bitcoin PR#8708: net: have CConnman handle message sending (#1553) 2017-07-27 17:28:05 +03:00
privatesend-server.h split CPrivateSend (#1492) 2017-06-30 21:30:16 +03:00
privatesend.cpp Backport Bitcoin PR#8708: net: have CConnman handle message sending (#1553) 2017-07-27 17:28:05 +03:00
privatesend.h Make sure mixing messages are relayed/accepted properly (#1547) 2017-07-25 13:57:26 +03:00
protocol.cpp Backport Bitcoin PR#8822: net: Consistent checksum handling (#1565) 2017-08-08 20:57:36 +03:00
protocol.h Backport Bitcoin PR#8822: net: Consistent checksum handling (#1565) 2017-08-08 20:57:36 +03:00
pubkey.cpp Bump copyright headers to 2015 2016-01-05 14:13:33 +01:00
pubkey.h HD wallet (#1405) 2017-05-29 14:51:40 +03:00
random.cpp thread safe rand (#1157) 2016-11-20 10:52:45 +04:00
random.h thread safe rand (#1157) 2016-11-20 10:52:45 +04:00
rest.cpp Backport Bitcoin PR#9260: Mrs Peacock in The Library with The Candlestick (killed main.{h,cpp}) (#1566) 2017-08-09 03:19:06 +03:00
reverselock.h c++11: don't throw from the reverselock destructor (#1421) 2017-04-11 13:55:41 +03:00
scheduler.cpp Reenable multithread scheduler test 2016-06-09 22:52:04 +02:00
scheduler.h
sendalert.cpp Backport Bitcoin PR#8708: net: have CConnman handle message sending (#1553) 2017-07-27 17:28:05 +03:00
serialize.h Backport Bitcoin PR#8708: net: have CConnman handle message sending (#1553) 2017-07-27 17:28:05 +03:00
spentindex.h main: spentindex for the mempool 2016-06-02 12:15:59 -04:00
spork.cpp Backport Bitcoin PR#9260: Mrs Peacock in The Library with The Candlestick (killed main.{h,cpp}) (#1566) 2017-08-09 03:19:06 +03:00
spork.h bump copyright notice to 2017 (#1207) 2016-12-20 17:26:45 +04:00
streams.h Backport Bitcoin PR#8708: net: have CConnman handle message sending (#1553) 2017-07-27 17:28:05 +03:00
sync.cpp Changes in potential_deadlock_detected behavior: (#1259) 2017-01-11 03:00:34 +04:00
sync.h Do not shadow LOCK's criticalblock variable for LOCK inside LOCK (#1453) 2017-05-05 14:34:54 +03:00
threadinterrupt.cpp Backport Bitcoin PR#9289: net: drop boost::thread_group (#1568) 2017-08-09 19:06:31 +03:00
threadinterrupt.h Backport Bitcoin PR#9289: net: drop boost::thread_group (#1568) 2017-08-09 19:06:31 +03:00
threadsafety.h
timedata.cpp Merge remote-tracking branch 'bitcoin/0.12' into HEAD 2016-02-06 16:48:04 +03:00
timedata.h
tinyformat.h
torcontrol.cpp Align with btc 0.12 (#1409) 2017-04-11 13:53:54 +03:00
torcontrol.h torcontrol improvements and fixes 2015-11-12 17:58:15 +01:00
txdb.cpp Backport Bitcoin PR#9260: Mrs Peacock in The Library with The Candlestick (killed main.{h,cpp}) (#1566) 2017-08-09 03:19:06 +03:00
txdb.h rpc: fix issue with querying txids by block heights 2016-06-02 12:15:37 -04:00
txmempool.cpp Backport Bitcoin PR#9260: Mrs Peacock in The Library with The Candlestick (killed main.{h,cpp}) (#1566) 2017-08-09 03:19:06 +03:00
txmempool.h Merge remote-tracking branch 'bitpay/0.12.1-bitcore' into dashBitcore1 2016-07-19 08:49:28 +03:00
ui_interface.h Backport Bitcoin PR#7917: Optimize reindex (#1515) 2017-07-10 17:41:14 +03:00
uint256.cpp Bump copyright headers to 2015 2016-01-05 14:13:33 +01:00
uint256.h bump copyright notice to 2017 (#1207) 2016-12-20 17:26:45 +04:00
undo.h
util.cpp change invalid version string constant (#1532) 2017-07-17 17:38:32 +03:00
util.h New rpc call "masternodelist info" (#1513) 2017-07-10 17:41:42 +03:00
utilmoneystr.cpp Bump copyright headers to 2015 2016-01-05 14:13:33 +01:00
utilmoneystr.h Bump copyright headers to 2015 2016-01-05 14:13:33 +01:00
utilstrencodings.cpp Merge remote-tracking branch 'bitcoin/0.12' into HEAD 2016-02-06 16:48:04 +03:00
utilstrencodings.h Bump copyright headers to 2015 2016-01-05 14:13:33 +01:00
utiltime.cpp Add masternode tab in qt wallet 2016-05-11 15:50:04 +03:00
utiltime.h Add masternode tab in qt wallet 2016-05-11 15:50:04 +03:00
validation.cpp Sync overhaul (#1564) 2017-08-09 19:07:03 +03:00
validation.h Backport Bitcoin PR#9260: Mrs Peacock in The Library with The Candlestick (killed main.{h,cpp}) (#1566) 2017-08-09 03:19:06 +03:00
validationinterface.cpp Backport Bitcoin PR#8865: Decouple peer-processing-logic from block-connection-logic (#1556) 2017-07-28 17:10:10 +03:00
validationinterface.h Backport Bitcoin PR#8865: Decouple peer-processing-logic from block-connection-logic (#1556) 2017-07-28 17:10:10 +03:00
version.h Replace watchdogs with ping (#1491) 2017-07-04 20:31:57 +03:00
versionbits.cpp Align with btc 0.12 (#1409) 2017-04-11 13:53:54 +03:00
versionbits.h Align with btc 0.12 (#1409) 2017-04-11 13:53:54 +03:00