@@ -20,6 +20,7 @@ import (
20
20
)
21
21
22
22
var accountsDone atomic.Uint64
23
+ var totalAccounts int
23
24
var trieCheckers chan struct {}
24
25
25
26
type dbs struct {
@@ -115,6 +116,8 @@ func checkTrieEquality(dbs *dbs, zkRoot, mptRoot common.Hash, label string, leaf
115
116
116
117
if len (mptLeafs ) != len (zkLeafs ) {
117
118
panic (fmt .Sprintf ("%s MPT and ZK trie leaf count mismatch: MPT: %d, ZK: %d" , label , len (mptLeafs ), len (zkLeafs )))
119
+ } else if top {
120
+ totalAccounts = len (mptLeafs )
118
121
}
119
122
120
123
for index , zkKv := range zkLeafs {
@@ -157,12 +160,12 @@ func checkAccountEquality(label string, dbs *dbs, zkAccountBytes, mptAccountByte
157
160
158
161
checkTrieEquality (dbs , zkRoot , mptRoot , label , checkStorageEquality , false , paranoid )
159
162
accountsDone .Add (1 )
160
- fmt .Println ("Accounts done:" , accountsDone .Load ())
163
+ fmt .Println ("Accounts done:" , accountsDone .Load (), "/" , totalAccounts )
161
164
trieCheckers <- struct {}{}
162
165
}()
163
166
} else {
164
167
accountsDone .Add (1 )
165
- fmt .Println ("Accounts done:" , accountsDone .Load ())
168
+ fmt .Println ("Accounts done:" , accountsDone .Load (), "/" , totalAccounts )
166
169
}
167
170
}
168
171
0 commit comments