Test fix to stop nodes forceing an attacking chain onto others.

This commit is contained in:
blackjok3r
2019-02-11 01:10:27 +08:00
parent 8328842ff0
commit 8d7234bf22
2 changed files with 22 additions and 17 deletions

View File

@@ -293,6 +293,9 @@ public:
bool fNetworkNode;
bool fSuccessfullyConnected;
bool fDisconnect;
// count blocks seen.
int8_t nBlocksinARow;
int8_t nBlocksinARow2;
// We use fRelayTxes for two purposes -
// a) it allows us to not relay tx invs before receiving the peer's version message
// b) the peer may tell us in its version message that we should not relay tx invs