cannon: Prevent deadlock on pre-image reads
Reading a FileChannel that does not have a writer blocks indefinitely. This occurs in cannon whenever the pre-image oracle server shuts down prematurely. We add a new io.ReadWriter that can detect when a FileChannel would otherwise block indefinitely.
Showing
op-preimage/filepoller.go
0 → 100644
Please register or sign in to comment