pinax-network / substreams

Substreams built by Pinax
Apache License 2.0
5 stars 2 forks source link

Added new block format support for `eosmechanics` #35

Open chamorin opened 2 months ago

chamorin commented 2 months ago

I'm still missing the code to handle pending_schedule since it's no longer there in the new block format. Because of that:

// If there is no pending schedule, then there is no schedule change
if pending_schedule.is_empty() {
    return Ok(Default::default());
}

will always return empty for map_schedule_change

YaroShkvorets commented 2 months ago

LGTM

YaroShkvorets commented 2 months ago

Actually no, it doesn't produce any schedule changes at all now. Need to find a way a better way to detect schedule change.

YaroShkvorets commented 2 months ago

@DenisCarriere when you have time can you look into it?

chamorin commented 1 month ago

I added a check for pending_schedule, so if it's the new block format it will not take pending_schedule into account. If it's the new block format it will only rely on active_schedule