Fix #255 distance reading discarded state
- Fixed the
pallet-distance
issue whereCurrentPoolIndex
was unset during the first evaluation period, which would cause errors if theinherent_data_provider
was correctly implemented. - Fixed #255 (closed) by removing all the
expect
calls from the implementation. Errors will now propagate using theinherent_data_provider
error mechanism without crashing the node or being shadowed by default values.
Edited by Benjamin Gallois