orbs-network / orbs-network-go

Orbs node virtual chain core reference implementation in Go
MIT License
48 stars 12 forks source link

A couple of missing checks for mgmt file provider #1582

Closed noambergIL closed 4 years ago

noambergIL commented 4 years ago

when management file is parsed it should be checked for simple rules : Historic response (timestamp given): start <= end <= current

Latest response (no timestamp given): start <= end = current

In Committess check that weight is not 0

(will fail if first time of node, but will also keep working in regular node)