• Matthew Slipper's avatar
    op-node: Fix panic after closing P2P (#13106) · 51a036d2
    Matthew Slipper authored
    When the op-node is closed, it also closes the P2P node. To prevent future usage, `n.p2pNode` is set to `nil`. However, the AsyncGossiper can still sometimes send gossip messages to the `OpNode` struct after close. Since `n.p2pNode` is `nil` at this point, the node would panic. This PR updates the `OpNode` implementation to check for this case. Access is protected via a mutex to prevent concurrency problems.
    51a036d2
Name
Last commit
Last update
..
benchmarks Loading commit data...
bindings Loading commit data...
chaincfg Loading commit data...
cmd Loading commit data...
flags Loading commit data...
metrics Loading commit data...
node Loading commit data...
p2p Loading commit data...
params Loading commit data...
rollup Loading commit data...
version Loading commit data...
withdrawals Loading commit data...
.gitignore Loading commit data...
LICENSE Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
service.go Loading commit data...