BaseMessage: remove deprecated method getHash()

It was never fully implemented anyways.
This commit is contained in:
Andreas Schildbach 2023-04-16 23:05:10 +02:00
parent 5eb67285db
commit 2ead9f7c57

View file

@ -16,7 +16,6 @@
package org.bitcoinj.core; package org.bitcoinj.core;
import org.bitcoinj.base.Sha256Hash;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
@ -64,12 +63,6 @@ public abstract class BaseMessage implements Message {
*/ */
protected abstract void bitcoinSerializeToStream(OutputStream stream) throws IOException; protected abstract void bitcoinSerializeToStream(OutputStream stream) throws IOException;
/** @deprecated use {@link Transaction#getTxId()}, {@link Block#getHash()}, {@link FilteredBlock#getHash()} or {@link TransactionOutPoint#hash()} */
@Deprecated
public Sha256Hash getHash() {
throw new UnsupportedOperationException();
}
/** /**
* Return the size of the serialized message. Note that if the message was deserialized from a payload, this * Return the size of the serialized message. Note that if the message was deserialized from a payload, this
* size can differ from the size of the original payload. * size can differ from the size of the original payload.