Skip to content

Commit cc20763

Browse files
committed
tapdb: set universe commitment flag when parsing batch from db
1 parent d978b4f commit cc20763

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

tapdb/asset_minting.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1266,8 +1266,9 @@ func marshalMintingBatch(ctx context.Context, q PendingAssetStore,
12661266
},
12671267
PubKey: batchKey,
12681268
},
1269-
HeightHint: uint32(dbBatch.HeightHint),
1270-
CreationTime: dbBatch.CreationTimeUnix.UTC(),
1269+
HeightHint: uint32(dbBatch.HeightHint),
1270+
CreationTime: dbBatch.CreationTimeUnix.UTC(),
1271+
UniverseCommitments: dbBatch.UniverseCommitments,
12711272
}
12721273

12731274
batchState, err := tapgarden.NewBatchState(uint8(dbBatch.BatchState))

tapdb/asset_minting_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ func assertBatchEqual(t *testing.T, a, b *tapgarden.MintingBatch) {
9393
t, &a.GenesisPacket.FundedPsbt, &b.GenesisPacket.FundedPsbt,
9494
)
9595
require.Equal(t, a.RootAssetCommitment, b.RootAssetCommitment)
96+
require.Equal(t, a.UniverseCommitments, b.UniverseCommitments)
9697
}
9798

9899
func assertSeedlingBatchLen(t *testing.T, batches []*tapgarden.MintingBatch,

0 commit comments

Comments
 (0)