VIEW CODE BELOW
()
| 467 | // VIEW CODE BELOW |
| 468 | |
| 469 | func (x *View) CheckBasic() (err ErrorI) { |
| 470 | // check if the view is empty |
| 471 | if x == nil { |
| 472 | // exit with empty error |
| 473 | return ErrEmptyView() |
| 474 | } |
| 475 | // round and phase are not further checked, |
| 476 | // because peers may be sending valid messages |
| 477 | // asynchronously from different views |
| 478 | return |
| 479 | } |
| 480 | |
| 481 | // Check() checks the validity of the view and optionally enforce *heights* (plugin height and committee height) |
| 482 | func (x *View) Check(view *View, enforceHeights bool) ErrorI { |