| 69 | } |
| 70 | |
| 71 | type BlockPool struct { |
| 72 | lock sync.RWMutex |
| 73 | HistoryLen uint32 |
| 74 | |
| 75 | server *Server |
| 76 | chainStore *ChainStore |
| 77 | candidateBlocks map[uint32]*CandidateInfo // indexed by blockNum |
| 78 | } |
| 79 | |
| 80 | func newBlockPool(server *Server, historyLen uint32, store *ChainStore) (*BlockPool, error) { |
| 81 | pool := &BlockPool{ |
nothing calls this directly
no outgoing calls
no test coverage detected