mirror of
https://github.com/sparrowwallet/drongo.git
synced 2024-12-26 01:56:44 +00:00
fix for clear witness
This commit is contained in:
parent
8bc4e3b3dc
commit
5cd203d366
1 changed files with 2 additions and 1 deletions
|
@ -101,9 +101,10 @@ public class TransactionInput extends ChildMessage {
|
|||
}
|
||||
|
||||
public void setWitness(TransactionWitness witness) {
|
||||
int newLength = witness != null ? witness.getLength() : 0;
|
||||
int existingLength = getWitness() != null ? getWitness().getLength() : 0;
|
||||
if(getParent() != null) {
|
||||
getParent().adjustLength(witness.getLength() - existingLength);
|
||||
getParent().adjustLength(newLength - existingLength);
|
||||
}
|
||||
|
||||
this.witness = witness;
|
||||
|
|
Loading…
Reference in a new issue