MCPcopy
hub / github.com/canopy-network/canopy / CheckBasic

Method CheckBasic

lib/consensus.go:469–479  ·  view source on GitHub ↗

VIEW CODE BELOW

()

Source from the content-addressed store, hash-verified

467// VIEW CODE BELOW
468
469func (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)
482func (x *View) Check(view *View, enforceHeights bool) ErrorI {

Callers 12

CheckMethod · 0.95
HandlePeerBlockMethod · 0.45
TestViewCheckBasicFunction · 0.45
AddTransactionsMethod · 0.45
CheckMethod · 0.45
CheckMethod · 0.45
messageFromTxJSONFunction · 0.45
CheckTxMethod · 0.45

Calls 1

ErrEmptyViewFunction · 0.85

Tested by 5

TestViewCheckBasicFunction · 0.36