novitski / bitcoinj

Automatically exported from code.google.com/p/bitcoinj
Apache License 2.0
0 stars 0 forks source link

.isCoinBase fails #420

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In bitcoinj 0.9, .isCoinBase fails regularly on coinbase txns.

I drilled it down to TransactionInput.isCoinBase() failing.

outpoint.getIndex() == NO_SEQUENCE yields false.

index = -1
NO_SEQUENCE = 4294967295

Is this a long/int mismatch? NO_SEQUENCE looks like an int value from the 
number of digits.

It should be noted that when the tx arrived, .isCoinBase did not fail. It was 
some minutes later (perhaps after an app restart) that caused the start of this 
issue. I suspect the protobuf representation not correctly representing the -1 
values.

Original issue reported on code.google.com by andreas....@gmail.com on 27 Jun 2013 at 10:48

GoogleCodeExporter commented 9 years ago
I suspect you are right.

Original comment by hearn@google.com on 27 Jun 2013 at 11:00

GoogleCodeExporter commented 9 years ago
This issue was closed by revision c4572696b1bf.

Original comment by hearn@google.com on 27 Jun 2013 at 12:01