code: func NewBroadcaster(cfg *Config) *Broadcaster {
  	b := &Broadcaster{
  		cfg:           *cfg,
  		broadcastReqs: make(chan *broadcastReq),
  		transactions:  make(map[chainhash.Hash]*wire.MsgTx),
  		quit:          make(chan struct{}),
  	}
  
  	return b
  }
docs: // NewBroadcaster creates a new Broadcaster backed by the given config.