This sends a getavaproofs message upon connection of an avalanche outbound peer or manually added peer with avalanche enabled.
Depends on D11533.
Differential D11549
[avalanche] Request compact proofs from our avalanche outbound peers Fabien on Jun 1 2022, 09:14. Authored by
Details
This sends a getavaproofs message upon connection of an avalanche outbound peer or manually added peer with avalanche enabled. Depends on D11533. ninja all check-all
Diff Detail
Event Timeline
Comment Actions I'm not app at all with ho this is going. I told you what the question was. This is half the work. Either this was thread safe and making things atomic is useless, or it wasn't and then, what about the other fields hat aren't guarded b a mutex? Why didn't thread sanitizer detect it? Do we really need to wait month or untill something break before making sure that the design make sense? Comment Actions I answered the question in D11545 but updated this diff, this is confusing. There is no race on this because it's always accessed from the same thread. Core tends to put lock requirements on these variables even when not required btw, because they are likely to be used from other threads at some point (see relevant discussion). |