Skip to content
This repository has been archived by the owner on Jan 6, 2025. It is now read-only.

Add different estimate rules for protocols w/ non-deterministic estimates #171

Open
naterush opened this issue Feb 23, 2018 · 1 comment

Comments

@naterush
Copy link
Contributor

naterush commented Feb 23, 2018

Issue

Currently, some protocols allow validators to make (random) decisions when creating a new estimate. For example, see here or here.

This limits how well we can test these protocols, as we can't assert very specific things as non-deterministic choices are made. Ideally, there would be deterministic versions of all of these rules.

Proposed Implementation

Add necessary functions so all estimate functions can be deterministic if we want. For example, we should be able to specify what outputs validators build off of in the concurrent schedule in a testing language (e.g. pick the greatest one), or which shards to build on (e.g. always just build on this one shard).

Organizing these rules in some file other than the view may make sense as well.

@djrtwo
Copy link
Contributor

djrtwo commented Mar 5, 2018 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants