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:
parent
eab413c814
commit
748f7a53e0
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user