Skip to content

Commit 116ac96

Browse files
committed
universe: rename BaseBackend.MintingKeys to FetchKeys
Renamed method to better reflect its broader usage. It now applies to both issuance proof leaves and transfer proof leaves.
1 parent fc253e2 commit 116ac96

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

tapdb/universe.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1026,8 +1026,8 @@ func mintingKeys(ctx context.Context, dbTx BaseUniverseStore,
10261026
return leafKeys, nil
10271027
}
10281028

1029-
// MintingKeys returns all the keys inserted in the universe.
1030-
func (b *BaseUniverseTree) MintingKeys(ctx context.Context,
1029+
// FetchKeys retrieves all keys from the universe tree.
1030+
func (b *BaseUniverseTree) FetchKeys(ctx context.Context,
10311031
q universe.UniverseLeafKeysQuery) ([]universe.LeafKey, error) {
10321032

10331033
var leafKeys []universe.LeafKey

tapdb/universe_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ func TestUniverseIssuanceProofs(t *testing.T) {
363363

364364
// Next, we'll query for all the available keys, this should match the
365365
// number of insertions we just did.
366-
mintingKeys, err := baseUniverse.MintingKeys(
366+
mintingKeys, err := baseUniverse.FetchKeys(
367367
ctx, universe.UniverseLeafKeysQuery{},
368368
)
369369
require.NoError(t, err)
@@ -435,7 +435,7 @@ func TestUniverseIssuanceProofs(t *testing.T) {
435435
_, err = baseUniverse.DeleteUniverse(ctx)
436436
require.NoError(t, err)
437437

438-
mintingKeys, err = baseUniverse.MintingKeys(
438+
mintingKeys, err = baseUniverse.FetchKeys(
439439
ctx, universe.UniverseLeafKeysQuery{},
440440
)
441441
require.NoError(t, err)

universe/interface.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -423,8 +423,8 @@ type BaseBackend interface {
423423
FetchIssuanceProof(ctx context.Context,
424424
key LeafKey) ([]*Proof, error)
425425

426-
// MintingKeys returns all the keys inserted in the universe.
427-
MintingKeys(ctx context.Context,
426+
// FetchKeys retrieves all keys from the universe tree.
427+
FetchKeys(ctx context.Context,
428428
q UniverseLeafKeysQuery) ([]LeafKey, error)
429429

430430
// FetchLeaves retrieves all leaves from the universe tree.

0 commit comments

Comments
 (0)