Skip to content

Commit

Permalink
Update psetv2/input.go
Browse files Browse the repository at this point in the history
Co-authored-by: Pietralberto Mazza <[email protected]>
  • Loading branch information
louisinger and altafan authored Nov 16, 2023
1 parent 27b4e08 commit e786c4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion psetv2/input.go
Original file line number Diff line number Diff line change
Expand Up @@ -1288,7 +1288,7 @@ func (i *Input) deserialize(buf *bytes.Buffer) error {
}
i.TapInternalKey = kp.Value
case InputTapMerkleRoot:
if i.TapMerkleRoot != nil {
if len(i.TapMerkleRoot) > 0 {
return ErrInDuplicatedField("taproot merkle root")
}
if len(kp.Value) != 32 {
Expand Down

0 comments on commit e786c4d

Please sign in to comment.