Skip to content

Commit

Permalink
proof: fix universe courier termination condition for grouped assets
Browse files Browse the repository at this point in the history
In this commit, we update the termination condition to account for the
fact that grouped assets have a distinct witness from non-grouped
assets.

Without this, we'll fail to fetch the proof files for grouped assets.
  • Loading branch information
Roasbeef committed Oct 5, 2023
1 parent dd1350d commit 3d6a46d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion proof/courier.go
Original file line number Diff line number Diff line change
Expand Up @@ -1071,7 +1071,8 @@ func (c *UniverseRpcCourier) ReceiveProof(ctx context.Context,

// Break if we've reached the genesis point (the asset is the
// genesis asset).
if transitionProof.Asset.HasGenesisWitness() {
if transitionProof.Asset.HasGenesisWitness() ||
transitionProof.Asset.HasGenesisWitnessForGroup() {
break
}

Expand Down

0 comments on commit 3d6a46d

Please sign in to comment.