// RemoveAddress removes an address from the filter.
RemoveAddress removes an address from the filter.
// RemoveAddress removes an address from the filter .
func (f *txFilter) RemoveAddress(addr bchutil.Address) {
	switch a := addr.(type) {
	case *bchutil.AddressPubKeyHash:
		delete(f.pubKeyHashes, *a.Hash160())
	case *bchutil.AddressScriptHash:
		delete(f.scriptHashes, *a.Hash160())
	case *bchutil.AddressPubKey:
		pubkeyBytes := a.ScriptAddress()
		switch len(pubkeyBytes) {
		case 33: 
			var compressedPubkey [33]byte
			copy(compressedPubkey[:], pubkeyBytes)
			delete(f.compressedPubKeys, compressedPubkey)
		case 65: 
			var uncompressedPubkey [65]byte
			copy(uncompressedPubkey[:], pubkeyBytes)
			delete(f.uncompressedPubKeys, uncompressedPubkey)
		}
	default:
		addrStr := addr.EncodeAddress()
		log.Infof("Unknown address type: %v", addrStr)
		delete(f.fallbacks, addrStr)
	}
}
func ( f * txFilter ) RemoveAddress ( addr bchutil . Address ) { switch a := addr . ( type ) { case * bchutil . AddressPubKeyHash : delete ( f . pubKeyHashes , * a . Hash160 ( ) ) case * bchutil . AddressScriptHash : delete ( f . scriptHashes , * a . Hash160 ( ) ) case * bchutil . AddressPubKey : pubkeyBytes := a . ScriptAddress ( ) switch len ( pubkeyBytes ) { case 33 : var compressedPubkey [ 33 ] byte copy ( compressedPubkey [ : ] , pubkeyBytes ) delete ( f . compressedPubKeys , compressedPubkey ) case 65 : var uncompressedPubkey [ 65 ] byte copy ( uncompressedPubkey [ : ] , pubkeyBytes ) delete ( f . uncompressedPubKeys , uncompressedPubkey ) } default : addrStr := addr . EncodeAddress ( ) log . Infof ( " " , addrStr ) delete ( f . fallbacks , addrStr ) } }
RemoveAddress removes an address from the filter.
RemoveAddress removes an address from the filter .
// Compressed // Uncompressed // A new address type must have been added.  Use encoded // payment address string as a fallback until a fast path // is added.