diff --git a/core/src/main/java/org/bitcoinj/core/BaseMessage.java b/core/src/main/java/org/bitcoinj/core/BaseMessage.java index 7d9f5b2752c..90404eca9e5 100644 --- a/core/src/main/java/org/bitcoinj/core/BaseMessage.java +++ b/core/src/main/java/org/bitcoinj/core/BaseMessage.java @@ -53,7 +53,7 @@ public final byte[] serialize() { } /** - * Serializes this message to the provided stream. If you just want the raw bytes use bitcoinSerialize(). + * Serializes this message to the provided stream. If you just want the raw bytes use {@link #serialize()}. */ protected abstract void bitcoinSerializeToStream(OutputStream stream) throws IOException; diff --git a/core/src/main/java/org/bitcoinj/core/BloomFilter.java b/core/src/main/java/org/bitcoinj/core/BloomFilter.java index e156b99532a..7eac137f234 100644 --- a/core/src/main/java/org/bitcoinj/core/BloomFilter.java +++ b/core/src/main/java/org/bitcoinj/core/BloomFilter.java @@ -168,7 +168,7 @@ public String toString() { } /** - * Serializes this message to the provided stream. If you just want the raw bytes use bitcoinSerialize(). + * Serializes this message to the provided stream. If you just want the raw bytes use {@link #serialize()}. */ @Override protected void bitcoinSerializeToStream(OutputStream stream) throws IOException { diff --git a/core/src/main/java/org/bitcoinj/wallet/Wallet.java b/core/src/main/java/org/bitcoinj/wallet/Wallet.java index e72b1b1bf5d..42558d3384f 100644 --- a/core/src/main/java/org/bitcoinj/wallet/Wallet.java +++ b/core/src/main/java/org/bitcoinj/wallet/Wallet.java @@ -5350,7 +5350,7 @@ private FeeCalculation calculateFee(SendRequest req, Coin value, boolean needAtL private void addSuppliedInputs(Transaction tx, List originalInputs) { for (TransactionInput input : originalInputs) - tx.addInput(TransactionInput.read(ByteBuffer.wrap(input.bitcoinSerialize()), tx)); + tx.addInput(TransactionInput.read(ByteBuffer.wrap(input.serialize()), tx)); } private Coin estimateFees(Transaction tx, CoinSelection coinSelection, Coin requestedFeePerKb, boolean ensureMinRequiredFee) { diff --git a/core/src/test/java/org/bitcoinj/core/FullBlockTestGenerator.java b/core/src/test/java/org/bitcoinj/core/FullBlockTestGenerator.java index b6866ffad13..2d3f2c0c352 100644 --- a/core/src/test/java/org/bitcoinj/core/FullBlockTestGenerator.java +++ b/core/src/test/java/org/bitcoinj/core/FullBlockTestGenerator.java @@ -1234,7 +1234,7 @@ public boolean add(Rule element) { // This check fails because it was created for "retain mode" and the likely encoding is not "optimal". // We since removed this capability retain the original encoding, but could not rewrite this test data. // checkState(stream.size() == b64.getMessageSize()); - // checkState(Arrays.equals(stream.toByteArray(), b64.bitcoinSerialize())); + // checkState(Arrays.equals(stream.toByteArray(), b64.serialize())); // checkState(b64.getOptimalEncodingMessageSize() == b64Original.block.getMessageSize()); } blocks.add(new BlockAndValidity(b64, true, false, b64.getHash(), chainHeadHeight + 19, "b64"));