mirror of
https://github.com/QuilibriumNetwork/ceremonyclient.git
synced 2026-02-21 10:27:26 +08:00
check store directly, don't print debug
This commit is contained in:
parent
366ee8ecfd
commit
f7961697e5
@ -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")
|
||||
|
||||
@ -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 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user