mirror of
https://github.com/QuilibriumNetwork/ceremonyclient.git
synced 2026-02-21 10:27:26 +08:00
overcome vertex tree issue
This commit is contained in:
parent
a1bf14673e
commit
a07a647515
@ -441,11 +441,16 @@ func (s *streamManager) walk(
|
||||
|
||||
if isLeaf(lnode) && isLeaf(rnode) {
|
||||
if !bytes.Equal(lnode.Commitment, rnode.Commitment) {
|
||||
s.logger.Info("leaves mismatch commitments, sending", pathString)
|
||||
s.sendLeafData(
|
||||
path,
|
||||
metadataOnly,
|
||||
)
|
||||
// conditional is a kludge, m5 only
|
||||
if bytes.Compare(lnode.Commitment, rnode.Commitment) < 0 {
|
||||
s.logger.Info("leaves mismatch commitments, sending", pathString)
|
||||
s.sendLeafData(
|
||||
path,
|
||||
metadataOnly,
|
||||
)
|
||||
} else {
|
||||
s.logger.Info("leaves mismatch commitments, receiving", pathString)
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user