Closed
Description
The lastRelevant tries to get the latest period relevant to the specified proposal value, the code is:
go-algorand/agreement/proposalStore.go
Lines 370 to 382 in 3077900
It's possible the result period got from the function has nothing to do with the parameter pv.
shouldn't it be updated as follows?
for per := range store.Relevant {
if (per > p) && (store.Relevant[per] == pv) {
p = per
}
}
return