code: func (w *worker) pendingBlock() *types.Block {
  	// return a snapshot to avoid contention on currentMu mutex
  	w.snapshotMu.RLock()
  	defer w.snapshotMu.RUnlock()
  	return w.snapshotBlock
  }
docs: // pendingBlock returns pending block.