Closed Stebalien closed 3 years ago
Seems reasonable. Is the problem here that we're calling e.peerLedger.CancelWant without taking the lock on the ledger?
Yes. On the happy path we just read the map so we only need a read lock. On the sad path, we need to take the lock.
We should have better tests here, but I'm not sure how to go about that. We basically need a fuzzer.