InsertHeaderChain attempts to insert the given header chain in to the local chain, possibly creating a reorg. If an error is returned, it will return the index number of the failing header as well an error describing what went wrong.
(chain []*types.Header, checkFreq int)
| 168 | // chain, possibly creating a reorg. If an error is returned, it will return the |
| 169 | // index number of the failing header as well an error describing what went wrong. |
| 170 | InsertHeaderChain(chain []*types.Header, checkFreq int) (int, error) |
| 171 | |
| 172 | // State returns a new mutable state(public) based on the current HEAD block. |
| 173 | // just for test. |
no outgoing calls
no test coverage detected