Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
blockservice: fix panic when closing an offline blockservice
blockservice is explicitely tolerent to having a nil exchange. The constructor even logs that as running an offline blockservice. Everything is except close, which panics. It is confusing for consumers to only have to call close based on if it's online or offline. They could also instead call close directly on the exchange (then we could remove blockservice's Close method). Anyway here is as a simple fix, add a nil check.
- Loading branch information