code: func (c *Client) RescanEndHeight(startBlock *chainhash.Hash,
  	addresses []btcutil.Address, outpoints []*wire.OutPoint,
  	endBlock *chainhash.Hash) error {
  
  	return c.RescanEndBlockAsync(startBlock, addresses, outpoints,
  		endBlock).Receive()
  }
docs: // RescanEndHeight rescans the block chain starting from the provided starting
  // block up to the provided ending block for transactions that pay to the
  // passed addresses and transactions which spend the passed outpoints.
  //
  // The notifications of found transactions are delivered to the notification
  // handlers associated with client and this call will not return until the
  // rescan has completed.  Calling this function has no effect if there are no
  // notification handlers and will result in an error if the client is configured
  // to run in HTTP POST mode.
  //
  // The notifications delivered as a result of this call will be via one of
  // OnRedeemingTx (for transactions which spend from the one of the
  // passed outpoints), OnRecvTx (for transactions that receive funds
  // to one of the passed addresses), and OnRescanProgress (for rescan progress
  // updates).
  //
  // See Rescan to also perform a rescan through current end of the longest chain.
  //
  // NOTE: This is a btcd extension and requires a websocket connection.
  //
  // NOTE: Deprecated. Use RescanBlocks instead.