mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-15 12:51:00 +02:00
net: handle nodesignals in CConnman
This commit is contained in:
parent
b1a5f43208
commit
aaf018e3b7
4 changed files with 31 additions and 19 deletions
|
|
@ -348,7 +348,8 @@ void InitializeNode(NodeId nodeid, const CNode *pnode) {
|
|||
state.address = pnode->addr;
|
||||
}
|
||||
|
||||
void FinalizeNode(NodeId nodeid) {
|
||||
void FinalizeNode(NodeId nodeid, bool& fUpdateConnectionTime) {
|
||||
fUpdateConnectionTime = false;
|
||||
LOCK(cs_main);
|
||||
CNodeState *state = State(nodeid);
|
||||
|
||||
|
|
@ -356,7 +357,7 @@ void FinalizeNode(NodeId nodeid) {
|
|||
nSyncStarted--;
|
||||
|
||||
if (state->nMisbehavior == 0 && state->fCurrentlyConnected) {
|
||||
AddressCurrentlyConnected(state->address);
|
||||
fUpdateConnectionTime = true;
|
||||
}
|
||||
|
||||
BOOST_FOREACH(const QueuedBlock& entry, state->vBlocksInFlight) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue