blockwatch-cc/tzgo

Clarifying Index field for SnapShotIndex

Closed this issue · 0 comments

I'm trying to get the snapshot at the Base cycle that determines rights for some Cycle, and the Index should help me calculate the level for the snapshot at the Base cycle. However, the implementation attempts to grab the index for Cycle rather than Base, which is what I'm expecting if I understand this comment correctly

the index inside base where snapshot happened

Wondering if we should be querying chains/main/blocks/<BLOCK ID>/context/selected_snapshot?cycle=<CYCLE> for <CYCLE>=Base instead?

Correct me if my understanding is off, and if this is the actual intention - how useful would this Index be?

Edit: Just learned about how the snapshot for the Base cycle is randomly selected. Closing this!