Page MenuHomePhabricator

[avalanche] Return node statistics in the getavalanchepeerinfo RPC
AbandonedPublic

Authored by Fabien on Aug 4 2021, 15:19.

Details

Reviewers
deadalnix
Group Reviewers
Restricted Project
Maniphest Tasks
Restricted Maniphest Task
Summary

Note that this required a modification of the processor so the cs_peermanager lock is not hold when cs_vNodes is locked, which would cause a lock order inversion (and an effective deadlock) when calling the RPC.

Ref T1634.

Depends on D9839 and D9846.

Test Plan

With debug:

ninja all check-all

Diff Detail

Event Timeline

Fabien requested review of this revision.Aug 4 2021, 15:19
deadalnix requested changes to this revision.Aug 4 2021, 21:45
deadalnix added a subscriber: deadalnix.
deadalnix added inline comments.
src/avalanche/processor.cpp
717

This is clearly not workable, we want to make sure this happens BEFORE the message is sent.

This revision now requires changes to proceed.Aug 4 2021, 21:45