mirror of
https://github.com/QuilibriumNetwork/ceremonyclient.git
synced 2026-02-21 18:37:26 +08:00
resolve rebuild progress bug
This commit is contained in:
parent
2093606896
commit
ca1cd025f3
@ -68,6 +68,13 @@ func TestLoadHypergraphFallback(t *testing.T) {
|
||||
for k, a := range clientLoad.GetVertexAdds() {
|
||||
assert.Equal(t, len(crypto.ConvertAllPreloadedLeaves(string(application.VertexAtomType), string(application.AddsPhaseType), k, clientHypergraphStore, a.GetTree().Root, []int{})), 100000)
|
||||
}
|
||||
|
||||
fmt.Println("Should not reattempt")
|
||||
|
||||
serverLoad, err = serverHypergraphStore.LoadHypergraph()
|
||||
assert.NoError(t, err)
|
||||
clientLoad, err = clientHypergraphStore.LoadHypergraph()
|
||||
assert.NoError(t, err)
|
||||
}
|
||||
|
||||
func TestHypergraphSyncServer(t *testing.T) {
|
||||
|
||||
@ -779,7 +779,7 @@ func (p *PebbleHypergraphStore) LoadHypergraph() (
|
||||
}
|
||||
id := vert.GetID()
|
||||
if existingTree != nil {
|
||||
if v, _ := existingTree.Get(id[:]); v == nil {
|
||||
if v, _ := existingTree.Get(id[:]); v != nil {
|
||||
continue
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user