mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-02-19 05:35:49 +00:00
Add javadocs to GetUTXOsMessage and add the service mask required for the feature.
This commit is contained in:
parent
59c1f23931
commit
b984124ce2
@ -22,8 +22,17 @@ import java.io.IOException;
|
|||||||
import java.io.OutputStream;
|
import java.io.OutputStream;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This command is supported only by <a href="http://github.com/bitcoinxt/bitcoinxt">Bitcoin XT</a> nodes, which
|
||||||
|
* advertise themselves using the second service bit flag. It requests a query of the UTXO set keyed by a set of
|
||||||
|
* outpoints (i.e. tx hash and output index). The result contains a bitmap of spentness flags, and the contents of
|
||||||
|
* the associated outputs if they were found. The results aren't authenticated by anything, so the peer could lie,
|
||||||
|
* or a man in the middle could swap out its answer for something else.
|
||||||
|
*/
|
||||||
public class GetUTXOsMessage extends Message {
|
public class GetUTXOsMessage extends Message {
|
||||||
public static final int MIN_PROTOCOL_VERSION = 70002;
|
public static final int MIN_PROTOCOL_VERSION = 70002;
|
||||||
|
/** Bitmask of service flags required for a node to support this command (0x3) */
|
||||||
|
public static final int SERVICE_FLAGS_REQUIRED = 3;
|
||||||
|
|
||||||
private boolean includeMempool;
|
private boolean includeMempool;
|
||||||
private ImmutableList<TransactionOutPoint> outPoints;
|
private ImmutableList<TransactionOutPoint> outPoints;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user