Closed rob-solana closed 5 years ago
Sounds pretty error prone. Maybe we can clone the child, squash in the parent, and then mem::swap
the Arc.
this issue is a tracker for me to go back and add the check that used to be there...
I agree that we play fast and loose with Arc
@rob-solana is this issue still relevant?
yes, @carllin was chasing Friday
sg, thanks. There's been no update here in months so the issue looked stale.
Problem
multiple threads may access a live bank during a merge_parents in the current, linear PoH, though they really shouldn't, we won't catch them
Proposed Solution
to maybe catch them, assert!(accounts.locks.is_empty()) at the start of merge_parents