LoadMaxBlockSize() gets the max block size from the state
()
| 342 | |
| 343 | // LoadMaxBlockSize() gets the max block size from the state |
| 344 | func (c *Controller) LoadMaxBlockSize() int { |
| 345 | // load the maximum block size from the nested chain FSM |
| 346 | params, _ := c.FSM.GetParamsCons() |
| 347 | // if the parameters are empty |
| 348 | if params == nil { |
| 349 | // return 0 as the 'max' |
| 350 | return 0 |
| 351 | } |
| 352 | // return the max block size as set by the governance param |
| 353 | return int(params.BlockSize) |
| 354 | } |
| 355 | |
| 356 | // LoadLastCommitTime() gets a timestamp from the most recent Quorum Block |
| 357 | func (c *Controller) LoadLastCommitTime(height uint64) time.Time { |
no test coverage detected