neobytes/src
Oleg Girko e7e106e228 Backport Bitcoin PR#8969: Decouple peer-processing-logic from block-connection-logic (#2) (#1558)
* Move MarkBlockAsReceived out of ProcessNewMessage

* Remove network state wipe from UnloadBlockIndex.

UnloadBlockIndex is only used during init if we end up reindexing
to clear our block state so that we can start over. However, at
that time no connections have been brought up as CConnman hasn't
been started yet, so all of the network processing state logic is
empty when its called.

Additionally, the initialization of the recentRejects set is moved
to InitPeerLogic.

* Move all calls to CheckBlockIndex out of net-processing logic

This will result in many more calls to CheckBlockIndex when
connecting a list of headers (eg in ::HEADERS messages processing)
but its only enabled in debug mode, and that should mostly just be
during IBD, so it should be OK.

* Move FlushStateToDisk call out of ProcessMessages::TX into ATMP

* Move nTimeBestReceived updating into net processing code
2017-08-01 18:11:32 +03:00
..
bench
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
drafted bump copyright notice to 2017 (#1207) 2016-12-20 17:26:45 +04:00
leveldb
obj
obj-test
policy Merge #942: Leave some space for free transactions by defaut (10000) 2016-08-12 08:01:14 +02:00
primitives Implement BIP69 outside of CTxIn/CTxOut (#1514) 2017-07-10 17:42:59 +03:00
qt Update startup shortcuts (#1551) 2017-07-25 13:58:27 +03:00
rpc Backport Bitcoin PR#8865: Decouple peer-processing-logic from block-connection-logic (#1556) 2017-07-28 17:10:10 +03:00
script Rename bitcoinconsensus library to dashconsensus. (#1432) 2017-04-15 09:29:09 +02:00
secp256k1
support HD wallet (#1405) 2017-05-29 14:51:40 +03:00
test Backport Bitcoin PR#8865: Decouple peer-processing-logic from block-connection-logic (#1556) 2017-07-28 17:10:10 +03:00
univalue univalue: Handle UTF-8 2016-05-31 04:31:02 +03:00
wallet Backport Bitcoin PR#8085: p2p: Begin encapsulation (#1537) 2017-07-21 12:35:19 +03:00
zmq Backport Bitcoin PR#8865: Decouple peer-processing-logic from block-connection-logic (#1556) 2017-07-28 17:10:10 +03:00
.clang-format
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
arith_uint256.cpp
arith_uint256.h
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
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
chainparamsbase.h
chainparamsseeds.h
checkpoints.cpp bump copyright notice to 2017 (#1207) 2016-12-20 17:26:45 +04:00
checkpoints.h
checkqueue.h
clientversion.cpp
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
coins.h
compat.h
compressor.cpp
compressor.h
core_io.h
core_memusage.h
core_read.cpp
core_write.cpp
darksend-relay.cpp Backport Bitcoin PR#8085: p2p: Begin encapsulation (#1537) 2017-07-21 12:35:19 +03:00
darksend-relay.h bump copyright notice to 2017 (#1207) 2016-12-20 17:26:45 +04:00
dash-cli-res.rc
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
dash-tx.cpp Fix exit codes (#1127) 2016-11-11 09:16:39 +04:00
dashd-res.rc
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
dbwrapper.h
dsnotificationinterface.cpp Expire confirmed DSTXes after ~1h since confirmation (#1499) 2017-07-10 17:42:09 +03:00
dsnotificationinterface.h InstantSend overhaul (#1288) 2017-01-29 12:22:14 +04:00
flat-database.h bump copyright notice to 2017 (#1207) 2016-12-20 17:26:45 +04:00
governance-classes.cpp cleanup/fix includes: (#1214) 2016-12-20 17:27:59 +04: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 bump copyright notice to 2017 (#1207) 2016-12-20 17:26:45 +04: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 Backport Bitcoin PR#8708: net: have CConnman handle message sending (#1553) 2017-07-27 17:28:05 +03:00
governance.h Fix vulnerability with mapMasternodeOrphanObjects (#1512) 2017-07-13 12:38:00 +03:00
hash.cpp
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
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
init.cpp Backport Bitcoin PR#8969: Decouple peer-processing-logic from block-connection-logic (#2) (#1558) 2017-08-01 18:11:32 +03:00
init.h
instantx.cpp Backport Bitcoin PR#8085: p2p: Begin encapsulation (#1537) 2017-07-21 12:35:19 +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
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
main.cpp Backport Bitcoin PR#8969: Decouple peer-processing-logic from block-connection-logic (#2) (#1558) 2017-08-01 18:11:32 +03:00
main.h Backport Bitcoin PR#8969: Decouple peer-processing-logic from block-connection-logic (#2) (#1558) 2017-08-01 18:11:32 +03:00
Makefile.am Backport Bitcoin PR#8085: p2p: Begin encapsulation (#1537) 2017-07-21 12:35:19 +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 Backport Bitcoin PR#8708: net: have CConnman handle message sending (#1553) 2017-07-27 17:28:05 +03:00
masternode-payments.h Drop support for pre-12.1 nodes (#1394) 2017-03-14 09:22:00 +03:00
masternode-sync.cpp Backport Bitcoin PR#8708: net: have CConnman handle message sending (#1553) 2017-07-27 17:28:05 +03:00
masternode-sync.h various trivial cleanup fixes (#1501) 2017-07-03 16:14:07 +03:00
masternode.cpp Backport Bitcoin PR#8085: p2p: Begin encapsulation (#1537) 2017-07-21 12:35:19 +03:00
masternode.h Backport Bitcoin PR#8085: p2p: Begin encapsulation (#1537) 2017-07-21 12:35:19 +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 Backport Bitcoin PR#8708: net: have CConnman handle message sending (#1553) 2017-07-27 17:28:05 +03:00
masternodeman.h Refactor PS (#1437) 2017-05-05 14:26:27 +03:00
memusage.h
merkleblock.cpp
merkleblock.h
messagesigner.cpp Refactor: CDarkSendSigner (#1410) 2017-04-12 10:04:06 +03:00
messagesigner.h Refactor: CDarkSendSigner (#1410) 2017-04-12 10:04:06 +03:00
miner.cpp Backport Bitcoin PR#8865: Decouple peer-processing-logic from block-connection-logic (#1556) 2017-07-28 17:10:10 +03:00
miner.h Backport Bitcoin PR#8085: p2p: Begin encapsulation (#1537) 2017-07-21 12:35:19 +03:00
net.cpp net: only delete CConnman if it's been created (#1555) 2017-07-28 01:39:53 +03:00
net.h Backport Bitcoin PR#8708: net: have CConnman handle message sending (#1553) 2017-07-27 17:28:05 +03:00
netbase.cpp Backport Bitcoin PR#8113: Rework addnode behaviour (#1525) 2017-07-14 19:58:57 +03:00
netbase.h merge #855: Fix bad mn sig ipv6 2016-06-02 08:11:56 +02: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
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#7749: Enforce expected outbound services (#1508) 2017-07-05 06:45:23 +03:00
protocol.h Backport Bitcoin PR#7749: Enforce expected outbound services (#1508) 2017-07-05 06:45:23 +03:00
pubkey.cpp
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 Bincoin PR#7348: MOVE ONLY: move rpc* to rpc/ + same for Dash-specific rpc (#1502) 2017-07-03 16:13:34 +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#8708: net: have CConnman handle message sending (#1553) 2017-07-27 17:28:05 +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
threadsafety.h
timedata.cpp
timedata.h
tinyformat.h
torcontrol.cpp Align with btc 0.12 (#1409) 2017-04-11 13:53:54 +03:00
torcontrol.h
txdb.cpp adjust/fix some log and error messages (#1484) 2017-06-06 02:47:23 +03:00
txdb.h rpc: fix issue with querying txids by block heights 2016-06-02 12:15:37 -04:00
txmempool.cpp Merge remote-tracking branch 'bitpay/0.12.1-bitcore' into dashBitcore1 2016-07-19 08:49:28 +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
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
utilmoneystr.h
utilstrencodings.cpp
utilstrencodings.h
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
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