Skip to content

Commit

Permalink
Move the trie key format to H(domain || tenantid || eventid) (#163)
Browse files Browse the repository at this point in the history
* Move the trie key format to H(domain || tenantid || eventid)

re: AB#9419

---------

Co-authored-by: jgough <[email protected]>
  • Loading branch information
honourfish and jgough authored May 3, 2024
1 parent c7455a6 commit 71beb07
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mmrtesting/testgenerator.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ type AddLeafArgs struct {
Id uint64
AppIndex []byte
Value []byte
TenantId string
}

type LeafGenerator func(tenantIdentity string, base, i uint64) AddLeafArgs
Expand Down Expand Up @@ -92,6 +93,7 @@ func (g *TestGenerator) GenerateNumberedLeafBatch(tenantIdentity string, base, c
Id: args.Id,
AppIndex: args.AppIndex,
Value: h.Sum(nil),
TenantId: tenantIdentity,
}
})
}
Expand Down

0 comments on commit 71beb07

Please sign in to comment.