Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not call
node.GetChains()
if node is nil
In `NewSessionNodes`, the variable `node` can be `nil` if the node is unstaked between `sessionCtx` and `ctx`. In such a case, `node.GetChains()` causes a panic. This patch makes sure we don't call it if the `node` is `nil`. This is a regression from #1582.
- Loading branch information