Skip to content

Commit cd3e5cc

Browse files
committed
universe: rename Archive.MintingLeaves to FetchLeaves
Renamed method to better reflect its broader usage. It now applies to both issuance proof leaves and transfer proof leaves.
1 parent 1af522d commit cd3e5cc

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

rpcserver.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5389,7 +5389,7 @@ func (r *rpcServer) AssetLeaves(ctx context.Context,
53895389
return nil, err
53905390
}
53915391

5392-
assetLeaves, err := r.cfg.UniverseArchive.MintingLeaves(ctx, universeID)
5392+
assetLeaves, err := r.cfg.UniverseArchive.FetchLeaves(ctx, universeID)
53935393
if err != nil {
53945394
return nil, err
53955395
}

universe/archive.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -696,17 +696,17 @@ func (a *Archive) UniverseLeafKeys(ctx context.Context,
696696
return a.cfg.Multiverse.UniverseLeafKeys(ctx, q)
697697
}
698698

699-
// MintingLeaves returns the set of minting leaves known for the specified base
700-
// universe.
701-
func (a *Archive) MintingLeaves(ctx context.Context,
699+
// FetchLeaves returns the set of leaves which correspond to the given universe
700+
// identifier.
701+
func (a *Archive) FetchLeaves(ctx context.Context,
702702
id Identifier) ([]Leaf, error) {
703703

704-
log.Debugf("Retrieving all leaves for Universe: id=%v",
704+
log.Debugf("Retrieving all leaves for universe (id=%v)",
705705
id.StringForLog())
706706

707707
return withUni(
708-
a, id, func(baseUni BaseBackend) ([]Leaf, error) {
709-
return baseUni.MintingLeaves(ctx)
708+
a, id, func(uni BaseBackend) ([]Leaf, error) {
709+
return uni.MintingLeaves(ctx)
710710
},
711711
)
712712
}

0 commit comments

Comments
 (0)