aboutsummaryrefslogtreecommitdiff
path: root/build-aux
diff options
context:
space:
mode:
authorVasil Dimov <vd@FreeBSD.org>2021-01-20 11:26:43 +0100
committerMarcoFalke <falke.marco@gmail.com>2021-04-16 11:20:04 +0200
commitdfeb6c10bba80dc91245318feb0ad1d879015a99 (patch)
tree31e083d4a55ac9cb359196da1e2c8f369d2bbe24 /build-aux
parente3b76b6c13f81ca422e2b4c8582a56557c5b8442 (diff)
downloadbitcoin-dfeb6c10bba80dc91245318feb0ad1d879015a99.tar.xz
test: use pointers in denialofservice_tests/peer_discouragement
This is a non-functional change that replaces the `CNode` on-stack variables with `CNode` pointers. The reason for this is that it would allow us to add those `CNode`s to `CConnman::vNodes[]` which in turn would allow us to check that they are disconnected properly - a `CNode` object must be in `CConnman::vNodes[]` in order for its `fDisconnect` flag to be set. If we store pointers to the on-stack variables in `CConnman` then it would crash at the end, trying to `delete` them. Github-Pull: #21571 Rebased-From: 4d6e246fa46f2309e2998b542e4c104d73d29071
Diffstat (limited to 'build-aux')
0 files changed, 0 insertions, 0 deletions