mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-03-10 09:20:04 +01:00
LegacyAddress, BitcoinSerializer, MessageSerializer, TransactionReceivedInBlockListener, ECKey, ChildKeyDerivationTest: fix repetitive words in comments
This commit is contained in:
parent
6cf2cb4211
commit
ece3943bab
6 changed files with 8 additions and 8 deletions
|
@ -161,7 +161,7 @@ public class LegacyAddress implements Address {
|
|||
* Construct a {@link LegacyAddress} from its base58 form.
|
||||
*
|
||||
* @param params
|
||||
* expected network this address is valid for, or null if if the network should be derived from the
|
||||
* expected network this address is valid for, or null if the network should be derived from the
|
||||
* base58
|
||||
* @param base58
|
||||
* base58-encoded textual form of the address
|
||||
|
|
|
@ -135,7 +135,7 @@ public class BitcoinSerializer extends MessageSerializer {
|
|||
}
|
||||
|
||||
/**
|
||||
* Writes message to to the output stream.
|
||||
* Writes message to the output stream.
|
||||
*/
|
||||
@Override
|
||||
public void serialize(String name, byte[] message, OutputStream out) throws IOException {
|
||||
|
@ -160,7 +160,7 @@ public class BitcoinSerializer extends MessageSerializer {
|
|||
}
|
||||
|
||||
/**
|
||||
* Writes message to to the output stream.
|
||||
* Writes message to the output stream.
|
||||
*/
|
||||
@Override
|
||||
public void serialize(Message message, OutputStream out) throws IOException {
|
||||
|
|
|
@ -106,7 +106,7 @@ public abstract class MessageSerializer {
|
|||
public abstract void seekPastMagicBytes(ByteBuffer in) throws BufferUnderflowException;
|
||||
|
||||
/**
|
||||
* Writes message to to the output stream.
|
||||
* Writes message to the output stream.
|
||||
*
|
||||
* @throws UnsupportedOperationException if this serializer/deserializer
|
||||
* does not support serialization. This can occur either because it's a dummy
|
||||
|
@ -116,7 +116,7 @@ public abstract class MessageSerializer {
|
|||
public abstract void serialize(String name, byte[] message, OutputStream out) throws IOException, UnsupportedOperationException;
|
||||
|
||||
/**
|
||||
* Writes message to to the output stream.
|
||||
* Writes message to the output stream.
|
||||
*
|
||||
* @throws UnsupportedOperationException if this serializer/deserializer
|
||||
* does not support serialization. This can occur either because it's a dummy
|
||||
|
|
|
@ -56,7 +56,7 @@ public interface TransactionReceivedInBlockListener {
|
|||
* compared to the relativity count of another transaction received inside the same block. It is used to establish
|
||||
* an ordering of transactions relative to one another.</p>
|
||||
*
|
||||
* <p>This method should return false if the given tx hash isn't known about, e.g. because the the transaction was
|
||||
* <p>This method should return false if the given tx hash isn't known about, e.g. because the transaction was
|
||||
* a Bloom false positive. If it was known about and stored, it should return true. The caller may need to know
|
||||
* this to calculate the effective FP rate.</p>
|
||||
*
|
||||
|
|
|
@ -1224,7 +1224,7 @@ public class ECKey implements EncryptableItem {
|
|||
}
|
||||
|
||||
/**
|
||||
* Returns the the encrypted private key bytes and initialisation vector for this ECKey, or null if the ECKey
|
||||
* Returns the encrypted private key bytes and initialisation vector for this ECKey, or null if the ECKey
|
||||
* is not encrypted.
|
||||
*/
|
||||
@Nullable
|
||||
|
|
|
@ -305,7 +305,7 @@ public class ChildKeyDerivationTest {
|
|||
assertEquals("Parent fingerprint of deserialized parentless private HD key is wrong",
|
||||
key.getParentFingerprint(), 0xbef5a2f9);
|
||||
|
||||
// These encodings are of the the root key of that hierarchy
|
||||
// These encodings are of the root key of that hierarchy
|
||||
assertEquals("Parent fingerprint of root node public HD key should be zero",
|
||||
DeterministicKey.deserializeB58("xpub661MyMwAqRbcFW31YEwpkMuc5THy2PSt5bDMsktWQcFF8syAmRUapSCGu8ED9W6oDMSgv6Zz8idoc4a6mr8BDzTJY47LJhkJ8UB7WEGuduB", MAINNET).getParentFingerprint(),
|
||||
0);
|
||||
|
|
Loading…
Add table
Reference in a new issue