diff --git a/rpcserver.go b/rpcserver.go index 3b22ee13c..2f3c43142 100644 --- a/rpcserver.go +++ b/rpcserver.go @@ -2657,7 +2657,7 @@ func (r *rpcServer) AssetLeafKeys(ctx context.Context, // TODO(roasbeef): tell above if was tring or not, then would set // below diff - leafKeys, err := r.cfg.BaseUniverse.MintingKeys(ctx, universeID) + leafKeys, err := r.cfg.BaseUniverse.UniverseLeafKeys(ctx, universeID) if err != nil { return nil, err } diff --git a/universe/base.go b/universe/base.go index c9f9ec429..745ec3a09 100644 --- a/universe/base.go +++ b/universe/base.go @@ -393,9 +393,9 @@ func (a *MintingArchive) FetchIssuanceProof(ctx context.Context, id Identifier, return a.cfg.Multiverse.FetchProofLeaf(ctx, id, key) } -// MintingKeys returns the set of minting keys known for the specified base +// UniverseLeafKeys returns the set of leaf keys known for the specified // universe identifier. -func (a *MintingArchive) MintingKeys(ctx context.Context, +func (a *MintingArchive) UniverseLeafKeys(ctx context.Context, id Identifier) ([]LeafKey, error) { log.Debugf("Retrieving all keys for Universe: id=%v", id.StringForLog()) diff --git a/universe/interface.go b/universe/interface.go index e9135ea3e..ebe560e5e 100644 --- a/universe/interface.go +++ b/universe/interface.go @@ -467,8 +467,8 @@ type DiffEngine interface { // RootNodes returns the set of root nodes for all known universes. RootNodes(ctx context.Context) ([]BaseRoot, error) - // MintingKeys returns all the keys inserted in the universe. - MintingKeys(ctx context.Context, id Identifier) ([]LeafKey, error) + // UniverseLeafKeys returns all the keys inserted in the universe. + UniverseLeafKeys(ctx context.Context, id Identifier) ([]LeafKey, error) // FetchIssuanceProof attempts to fetch an issuance proof for the // target base leaf based on the universe identifier (assetID/groupKey). diff --git a/universe/syncer.go b/universe/syncer.go index dcf45f5e3..c988833cf 100644 --- a/universe/syncer.go +++ b/universe/syncer.go @@ -167,11 +167,11 @@ func (s *SimpleSyncer) syncRoot(ctx context.Context, remoteRoot BaseRoot, // Otherwise, we'll need to perform a diff operation to find the set of // keys we need to fetch. - remoteUniKeys, err := diffEngine.MintingKeys(ctx, uniID) + remoteUniKeys, err := diffEngine.UniverseLeafKeys(ctx, uniID) if err != nil { return err } - localUniKeys, err := s.cfg.LocalDiffEngine.MintingKeys(ctx, uniID) + localUniKeys, err := s.cfg.LocalDiffEngine.UniverseLeafKeys(ctx, uniID) if err != nil { return err } diff --git a/universe_rpc_diff.go b/universe_rpc_diff.go index 9721168fe..6df361233 100644 --- a/universe_rpc_diff.go +++ b/universe_rpc_diff.go @@ -107,8 +107,8 @@ func (r *RpcUniverseDiff) RootNode(ctx context.Context, return unmarshalUniverseRoot(universeRoot.AssetRoot) } -// MintingKeys returns all the keys inserted in the universe. -func (r *RpcUniverseDiff) MintingKeys(ctx context.Context, +// UniverseLeafKeys returns all the keys inserted in the universe. +func (r *RpcUniverseDiff) UniverseLeafKeys(ctx context.Context, id universe.Identifier) ([]universe.LeafKey, error) { assetKeys, err := r.conn.AssetLeafKeys(ctx, marshalUniID(id))