Skip to content

Commit f5f9122

Browse files
committed
tapdb: fix incorrect root being inserted into cache
This fixes the issue that after a proof is pushed to the universe, the root is invalid because the wrong one was added to the cache.
1 parent be51ad0 commit f5f9122

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tapdb/multiverse.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -786,7 +786,7 @@ func (b *MultiverseStore) UpsertProofLeaf(ctx context.Context,
786786
b.syncerCache.addOrReplace(universe.Root{
787787
ID: id,
788788
AssetName: leaf.Asset.Tag,
789-
Node: issuanceProof.MultiverseRoot,
789+
Node: issuanceProof.UniverseRoot,
790790
})
791791

792792
// Notify subscribers about the new proof leaf, now that we're sure we

0 commit comments

Comments
 (0)