()
| 1763 | } |
| 1764 | |
| 1765 | func (bc *BlockChain) update() { |
| 1766 | futureTimer := time.NewTicker(10 * time.Second) |
| 1767 | defer futureTimer.Stop() |
| 1768 | for { |
| 1769 | select { |
| 1770 | case <-futureTimer.C: |
| 1771 | bc.procFutureBlocks() |
| 1772 | bc.procUnknownAncestors() |
| 1773 | |
| 1774 | case <-bc.Quit: |
| 1775 | return |
| 1776 | } |
| 1777 | } |
| 1778 | } |
| 1779 | |
| 1780 | // BadBlocks returns a list of the last 'bad blocks' that the client has seen on the network |
| 1781 | func (bc *BlockChain) BadBlocks() []*types.Block { |
no test coverage detected