mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-01-18 21:32:35 +01:00
Block: remove obsolete constructor that takes a parent
This commit is contained in:
parent
dedf478c66
commit
bfb840bbfd
@ -154,22 +154,6 @@ public class Block extends Message {
|
||||
super(params, payload);
|
||||
}
|
||||
|
||||
/**
|
||||
* Construct a block object from the Bitcoin wire format. Used in the case of a block
|
||||
* contained within another message (i.e. for AuxPoW header).
|
||||
*
|
||||
* @param params NetworkParameters object.
|
||||
* @param payload Bitcoin protocol formatted byte array containing message content.
|
||||
* @param parent The message element which contains this block, maybe null for no parent.
|
||||
* @param serializer the serializer to use for this block.
|
||||
* @throws ProtocolException
|
||||
*/
|
||||
public Block(NetworkParameters params, ByteBuffer payload, int offset, @Nullable Message parent, MessageSerializer serializer)
|
||||
throws ProtocolException {
|
||||
// TODO: Keep the parent
|
||||
super(params, payload, serializer);
|
||||
}
|
||||
|
||||
/**
|
||||
* Construct a block initialized with all the given fields.
|
||||
* @param params Which network the block is for.
|
||||
|
Loading…
Reference in New Issue
Block a user