Hi,

I am playing with the segwit branch.

I see in  bip141 a segwit serialized tx has a 0x00 marker and a 0x01
flag to identify it is a segwit tx.

Let's say I have an incomplete tx (ie a tx with 0 inputs).
That tx is not a valid bitcoin tx you can broadcast, but still a
"valid" bitcoinj tx you can later on "complete" and broadcast.
I want to serialize the incomplete tx and then deserialize it..

During deserialization, the new Tranaction.parse() assumes 0x00 to be
the segwit tx marker (as opposed to "no inputs yet") and
deserialization throws an exception.

I am not sure this is just a bitcoinj related issue, other bitcoin
frameworks may have the same issue.

This is not a "what would happen if someone..." question, I found this
problem trying to make my code work with segwit.

Any thoughts?

-- 
Oscar Guindzberg

-- 
You received this message because you are subscribed to the Google Groups 
"bitcoinj" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to