Skip to content

Commit

Permalink
always include payloads for global registers (empty owner)
Browse files Browse the repository at this point in the history
  • Loading branch information
turbolent committed May 17, 2024
1 parent f7cdcc4 commit a82f463
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions cmd/util/ledger/util/payload_file.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,9 +249,15 @@ func includePayloadByOwners(payload *ledger.Payload, owners map[string]struct{})
return false, fmt.Errorf("can't get key from payload: %w", err)
}

owner := k.KeyParts[0].Value
owner := string(k.KeyParts[0].Value)

_, ok := owners[string(owner)]
// Always include payloads for global registers,
// i.e. with empty owner
if owner == "" {
return true, nil
}

_, ok := owners[owner]
return ok, nil
}

Expand Down

0 comments on commit a82f463

Please sign in to comment.