mirror of
https://github.com/QuilibriumNetwork/ceremonyclient.git
synced 2026-02-21 10:27:26 +08:00
print debug info
This commit is contained in:
parent
ca1cd025f3
commit
b516c22db2
@ -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),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user