print debug info

This commit is contained in:
Cassandra Heart 2025-03-26 00:19:34 -05:00
parent ca1cd025f3
commit b516c22db2
No known key found for this signature in database
GPG Key ID: 6352152859385958

View File

@ -8,6 +8,7 @@ import (
"encoding/hex"
"fmt"
"math/big"
"os"
"runtime"
"slices"
"sort"
@ -467,6 +468,20 @@ func NewTokenExecutionEngine(
}
}
commit := e.hypergraph.Commit()
if len(commit) == 0 {
fmt.Println("no commit")
} else {
fmt.Printf("root commit %x\n", e.hypergraph.Commit()[0])
}
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, "")
}
os.Exit(0)
syncServer := qgrpc.NewServer(
grpc.MaxRecvMsgSize(e.engineConfig.SyncMessageLimits.MaxRecvMsgSize),
grpc.MaxSendMsgSize(e.engineConfig.SyncMessageLimits.MaxSendMsgSize),