check store directly, don't print debug

This commit is contained in:
Cassandra Heart 2025-03-27 01:04:17 -05:00
parent 366ee8ecfd
commit f7961697e5
No known key found for this signature in database
GPG Key ID: 6352152859385958
2 changed files with 9 additions and 7 deletions

View File

@ -466,14 +466,11 @@ func NewTokenExecutionEngine(
if len(rebuildSet) != 0 {
fmt.Printf("missing entries, but skipping rebuild, len: %d\n", len(rebuildSet))
// e.rebuildMissingSetForHypergraph(rebuildSet)
} else {
fmt.Println("no missing entries")
}
}
for k, v := range e.hypergraph.GetVertexAdds() {
fmt.Printf("printing debug data for shard key: %x %x\n", k.L1[:], k.L2[:])
qcrypto.DebugNode(v.GetTree().SetType, v.GetTree().PhaseType, k, v.GetTree().Root, 0, "")
}
commit := e.hypergraph.Commit()
if len(commit) == 0 {
fmt.Println("no commit")

View File

@ -420,8 +420,13 @@ func (set *IdSet) GetSize() *big.Int {
}
func (set *IdSet) Has(key [64]byte) bool {
_, ok := set.atoms[key]
return ok
_, err := set.tree.Store.GetNodeByKey(
set.tree.SetType,
set.tree.PhaseType,
set.tree.ShardKey,
key[:],
)
return err == nil
}
func (set *IdSet) GetTree() *crypto.LazyVectorCommitmentTree {