@Override protected void bitcoinSerializeToStream(OutputStream stream) throws IOException { stream.write(new byte[]{includeMempool ? (byte) 1 : 0}); // include mempool. stream.write(new VarInt(outPoints.size()).encode()); for (TransactionOutPoint outPoint : outPoints) { outPoint.bitcoinSerializeToStream(stream); } }
@Override protected void bitcoinSerializeToStream(OutputStream stream) throws IOException { stream.write(new byte[]{includeMempool ? (byte) 1 : 0}); // include mempool. stream.write(new VarInt(outPoints.size()).encode()); for (TransactionOutPoint outPoint : outPoints) { outPoint.bitcoinSerializeToStream(stream); } }
@Override protected void bitcoinSerializeToStream(OutputStream stream) throws IOException { stream.write(new byte[]{includeMempool ? (byte) 1 : 0}); // include mempool. stream.write(new VarInt(outPoints.size()).encode()); for (TransactionOutPoint outPoint : outPoints) { outPoint.bitcoinSerializeToStream(stream); } }
@Override protected void bitcoinSerializeToStream(OutputStream stream) throws IOException { stream.write(new byte[]{includeMempool ? (byte) 1 : 0}); // include mempool. stream.write(new VarInt(outPoints.size()).encode()); for (TransactionOutPoint outPoint : outPoints) { outPoint.bitcoinSerializeToStream(stream); } }