This change defaults to setting an empty vec for the meta field on WakuMessage when doing serialisation/deserialisation if none is present. This change is needed because currently we're experiencing a bug where if a message is being constructed like this:
let waku_message = WakuMessage::new(
buff,
content_topic,
2,
Utc::now().timestamp() as usize,
Vec::new(),
true,
);
on being received, the message will fall into the Unrecognized enum variant while performing this validity check:
This change defaults to setting an empty vec for the
meta
field onWakuMessage
when doing serialisation/deserialisation if none is present. This change is needed because currently we're experiencing a bug where if a message is being constructed like this:on being received, the message will fall into the
Unrecognized
enum variant while performing this validity check: