3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-02-15 19:55:51 +00:00

GetUTXOsMessage: serialize the includeMempool flag

This commit is contained in:
Mike Hearn 2015-07-09 00:35:42 +02:00
parent eab413c814
commit 748f7a53e0

View File

@ -85,7 +85,7 @@ public class GetUTXOsMessage extends Message {
@Override @Override
void bitcoinSerializeToStream(OutputStream stream) throws IOException { void bitcoinSerializeToStream(OutputStream stream) throws IOException {
stream.write(new byte[]{1}); // include mempool. stream.write(new byte[]{includeMempool ? (byte) 1 : 0}); // include mempool.
stream.write(new VarInt(outPoints.size()).encode()); stream.write(new VarInt(outPoints.size()).encode());
for (TransactionOutPoint outPoint : outPoints) { for (TransactionOutPoint outPoint : outPoints) {
outPoint.bitcoinSerializeToStream(stream); outPoint.bitcoinSerializeToStream(stream);