(chain *core.BlockChain, bs []*types.Block)
| 213 | } |
| 214 | |
| 215 | func hasAllBlocks(chain *core.BlockChain, bs []*types.Block) bool { |
| 216 | for _, b := range bs { |
| 217 | if !chain.HasBlock(b.Hash(), b.NumberU64()) { |
| 218 | return false |
| 219 | } |
| 220 | } |
| 221 | |
| 222 | return true |
| 223 | } |
| 224 | |
| 225 | // ImportChain imports a blockchain from a local file. |
| 226 | func (api *PrivateAdminAPI) ImportChain(file string) (bool, error) { |
no test coverage detected