mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-12-25 05:06:45 +00:00
fix tx hex area segwit marker
This commit is contained in:
parent
907062ffa0
commit
8e02f7103e
2 changed files with 3 additions and 3 deletions
2
drongo
2
drongo
|
@ -1 +1 @@
|
||||||
Subproject commit 9b117cd7f90caba5e280034dee5865a1a42d82c1
|
Subproject commit a56684240a1a9a44f96b2a57fd10799bb9f8a18a
|
|
@ -68,7 +68,7 @@ public class TransactionHexArea extends CodeArea {
|
||||||
//Version
|
//Version
|
||||||
cursor = addSegment(segments, cursor, 8, "version");
|
cursor = addSegment(segments, cursor, 8, "version");
|
||||||
|
|
||||||
if(transaction.hasWitnesses()) {
|
if(transaction.isSegwit()) {
|
||||||
//Segwit marker
|
//Segwit marker
|
||||||
cursor = addSegment(segments, cursor, 2, "segwit-marker");
|
cursor = addSegment(segments, cursor, 2, "segwit-marker");
|
||||||
//Segwit flag
|
//Segwit flag
|
||||||
|
@ -123,7 +123,7 @@ public class TransactionHexArea extends CodeArea {
|
||||||
cursor = addSegment(segments, cursor, 8, "locktime");
|
cursor = addSegment(segments, cursor, 8, "locktime");
|
||||||
|
|
||||||
if(cursor != getLength()) {
|
if(cursor != getLength()) {
|
||||||
//throw new IllegalStateException("Cursor position does not match transaction serialisation " + cursor + ": " + getLength());
|
throw new IllegalStateException("Cursor position does not match transaction serialisation " + cursor + ": " + getLength());
|
||||||
}
|
}
|
||||||
|
|
||||||
return segments;
|
return segments;
|
||||||
|
|
Loading…
Reference in a new issue