Prevent grid daemon from exiting on unexpected msg
This change alters the grid daemon such that when it encounters an
EventIoError of "InvalidMessage", it logs and ignores it.  This change
will keep the daemon resilient to message type additions in future
sawtooth or splinter/scabbard versions.
@@ -188,6 +188,9 @@ impl<Conn: EventConnection + 'static> EventProcessor<Conn> {
loop {
match connection.recv() {
Ok(commit_event) => handle_message(commit_event, &event_handlers)?,
+ Err(EventIoError::InvalidMessage(msg)) => {
+ warn!("{}; ignoring...", msg);
+ }
Err(err) => {
error!("Failed to receive events; aborting: {}", err);
break;
