Export writes the active chain to the given writer.
(w io.Writer)
| 584 | |
| 585 | // Export writes the active chain to the given writer. |
| 586 | func (bc *BlockChain) Export(w io.Writer) error { |
| 587 | return bc.ExportN(w, uint64(0), bc.CurrentBlock().NumberU64()) |
| 588 | } |
| 589 | |
| 590 | // ExportN writes a subset of the active chain to the given writer. |
| 591 | func (bc *BlockChain) ExportN(w io.Writer, first uint64, last uint64) error { |
no test coverage detected