stratumn / go-core

Stratumn's core utilities to create decentralized applications and networks
Apache License 2.0
0 stars 0 forks source link

validations: validate out degree #447

Closed t-bast closed 6 years ago

t-bast commented 6 years ago

Adding out degree validation in the refs validator. For all cases where a consensus algorithm runs (Tendermint, Kayak, etc) it will be enough to validate here and any store can be used underneath (even if it doesn't have built-in support like postgresstore).

Later we will provide more configuration hooks at the store level so that we can bypass the validations done in the store (like postgresstore's outDegree tables) if it has been validated upstream (at the consensus layer).


This change is Reviewable