2023-06-20 13:26:25 +00:00
|
|
|
# Nimbus
|
2024-02-01 21:27:48 +00:00
|
|
|
# Copyright (c) 2023-2024 Status Research & Development GmbH
|
2023-06-20 13:26:25 +00:00
|
|
|
# Licensed under either of
|
|
|
|
# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0)
|
|
|
|
# * MIT license ([LICENSE-MIT](LICENSE-MIT) or
|
|
|
|
# http://opensource.org/licenses/MIT)
|
|
|
|
# at your option. This file may not be copied, modified, or
|
|
|
|
# distributed except according to those terms.
|
|
|
|
|
|
|
|
## Aristo (aka Patricia) DB records merge test
|
|
|
|
|
|
|
|
import
|
2023-08-22 18:44:54 +00:00
|
|
|
std/[algorithm, hashes, sequtils, sets, strutils, tables],
|
2023-06-20 13:26:25 +00:00
|
|
|
eth/common,
|
2023-08-22 18:44:54 +00:00
|
|
|
results,
|
2023-06-20 13:26:25 +00:00
|
|
|
unittest2,
|
2023-09-13 02:32:38 +00:00
|
|
|
stew/endians2,
|
2023-06-20 13:26:25 +00:00
|
|
|
../../nimbus/sync/protocol,
|
2023-08-22 18:44:54 +00:00
|
|
|
../../nimbus/db/aristo/[
|
2024-02-29 21:10:24 +00:00
|
|
|
aristo_blobify,
|
2023-08-22 18:44:54 +00:00
|
|
|
aristo_debug,
|
|
|
|
aristo_desc,
|
2023-08-25 22:53:59 +00:00
|
|
|
aristo_desc/desc_backend,
|
2024-02-22 08:24:58 +00:00
|
|
|
aristo_get,
|
2023-08-25 22:53:59 +00:00
|
|
|
aristo_init/memory_db,
|
|
|
|
aristo_init/rocks_db,
|
2024-02-22 08:24:58 +00:00
|
|
|
aristo_layers,
|
2024-02-29 21:10:24 +00:00
|
|
|
aristo_merge,
|
2023-08-22 18:44:54 +00:00
|
|
|
aristo_persistent,
|
2024-02-29 21:10:24 +00:00
|
|
|
aristo_tx,
|
2023-08-22 18:44:54 +00:00
|
|
|
aristo_vid],
|
2023-10-11 19:09:11 +00:00
|
|
|
../replay/xcheck,
|
2023-06-20 13:26:25 +00:00
|
|
|
./test_helpers
|
|
|
|
|
2023-08-22 18:44:54 +00:00
|
|
|
const
|
|
|
|
BlindHash = EmptyBlob.hash
|
|
|
|
|
2023-06-20 13:26:25 +00:00
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
# Private helpers
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
|
2023-08-22 18:44:54 +00:00
|
|
|
func hash(filter: FilterRef): Hash =
|
|
|
|
## Unique hash/filter -- cannot use de/blobify as the expressions
|
|
|
|
## `filter.blobify` and `filter.blobify.value.deblobify.value.blobify` are
|
|
|
|
## not necessarily the same binaries due to unsorted tables.
|
|
|
|
##
|
|
|
|
var h = BlindHash
|
|
|
|
if not filter.isNil:
|
2023-11-08 12:18:32 +00:00
|
|
|
h = h !& filter.src.hash
|
|
|
|
h = h !& filter.trg.hash
|
2023-08-22 18:44:54 +00:00
|
|
|
|
|
|
|
for w in filter.vGen.vidReorg:
|
|
|
|
h = h !& w.uint64.hash
|
|
|
|
|
|
|
|
for w in filter.sTab.keys.toSeq.mapIt(it.uint64).sorted.mapIt(it.VertexID):
|
|
|
|
let data = filter.sTab.getOrVoid(w).blobify.get(otherwise = EmptyBlob)
|
|
|
|
h = h !& (w.uint64.toBytesBE.toSeq & data).hash
|
|
|
|
|
|
|
|
for w in filter.kMap.keys.toSeq.mapIt(it.uint64).sorted.mapIt(it.VertexID):
|
2023-11-08 12:18:32 +00:00
|
|
|
let data = @(filter.kMap.getOrVoid(w))
|
2023-08-22 18:44:54 +00:00
|
|
|
h = h !& (w.uint64.toBytesBE.toSeq & data).hash
|
|
|
|
|
|
|
|
!$h
|
|
|
|
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
# Private functions
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
|
2023-06-20 13:26:25 +00:00
|
|
|
proc verify(
|
2023-08-18 19:46:55 +00:00
|
|
|
ly: LayerRef; # Database layer
|
2024-02-01 21:27:48 +00:00
|
|
|
be: BackendRef; # Backend
|
2023-06-20 13:26:25 +00:00
|
|
|
noisy: bool;
|
|
|
|
): bool =
|
|
|
|
|
2024-02-01 21:27:48 +00:00
|
|
|
proc verifyImpl[T](noisy: bool; ly: LayerRef; be: T): bool =
|
|
|
|
## ..
|
2023-06-20 13:26:25 +00:00
|
|
|
let
|
2024-02-01 21:27:48 +00:00
|
|
|
beSTab = be.walkVtx.toSeq.mapIt((it[0],it[1])).toTable
|
|
|
|
beKMap = be.walkKey.toSeq.mapIt((it[0],it[1])).toTable
|
2023-09-05 13:57:20 +00:00
|
|
|
|
2024-02-01 21:27:48 +00:00
|
|
|
for vid in beSTab.keys.toSeq.mapIt(it.uint64).sorted.mapIt(it.VertexID):
|
|
|
|
let
|
|
|
|
nVtx = ly.delta.sTab.getOrVoid vid
|
|
|
|
mVtx = beSTab.getOrVoid vid
|
2023-06-20 13:26:25 +00:00
|
|
|
|
2024-02-01 21:27:48 +00:00
|
|
|
xCheck (nVtx != VertexRef(nil))
|
|
|
|
xCheck (mVtx != VertexRef(nil))
|
|
|
|
xCheck nVtx == mVtx:
|
|
|
|
noisy.say "***", "verify",
|
|
|
|
" beType=", be.typeof,
|
|
|
|
" vid=", vid.pp,
|
|
|
|
" nVtx=", nVtx.pp,
|
|
|
|
" mVtx=", mVtx.pp
|
2023-06-20 13:26:25 +00:00
|
|
|
|
2024-02-22 08:24:58 +00:00
|
|
|
xCheck beSTab.len == ly.delta.sTab.len
|
|
|
|
xCheck beKMap.len == ly.delta.kMap.len:
|
|
|
|
let
|
|
|
|
a = ly.delta.kMap.keys.toSeq.toHashSet
|
|
|
|
b = beKMap.keys.toSeq.toHashSet
|
|
|
|
noisy.say "***", "verify",
|
|
|
|
" delta=", (a -+- b).pp
|
2024-02-01 21:27:48 +00:00
|
|
|
|
|
|
|
true
|
|
|
|
|
|
|
|
case be.kind:
|
|
|
|
of BackendMemory:
|
|
|
|
noisy.verifyImpl(ly, be.MemBackendRef)
|
|
|
|
of BackendRocksDB:
|
|
|
|
noisy.verifyImpl(ly, be.RdbBackendRef)
|
|
|
|
else:
|
|
|
|
raiseAssert "Oops, unsupported backend " & $be.kind
|
2023-06-20 13:26:25 +00:00
|
|
|
|
2023-08-22 18:44:54 +00:00
|
|
|
|
2024-02-01 21:27:48 +00:00
|
|
|
proc verifyFilters(
|
|
|
|
db: AristoDbRef;
|
2023-08-25 22:53:59 +00:00
|
|
|
tab: Table[QueueID,Hash];
|
2023-08-22 18:44:54 +00:00
|
|
|
noisy: bool;
|
|
|
|
): bool =
|
2023-09-05 13:57:20 +00:00
|
|
|
|
2024-02-01 21:27:48 +00:00
|
|
|
proc verifyImpl[T](noisy: bool; tab: Table[QueueID,Hash]; be: T): bool =
|
|
|
|
## Compare stored filters against registered ones
|
|
|
|
var n = 0
|
|
|
|
for (fid,filter) in walkFilBe(be):
|
|
|
|
let
|
|
|
|
filterHash = filter.hash
|
|
|
|
registered = tab.getOrDefault(fid, BlindHash)
|
2023-08-22 18:44:54 +00:00
|
|
|
|
2024-02-01 21:27:48 +00:00
|
|
|
xCheck (registered != BlindHash)
|
|
|
|
xCheck registered == filterHash:
|
|
|
|
noisy.say "***", "verifyFiltersImpl",
|
|
|
|
" n=", n+1,
|
|
|
|
" fid=", fid.pp,
|
|
|
|
" filterHash=", filterHash.int.toHex,
|
|
|
|
" registered=", registered.int.toHex
|
2023-08-22 18:44:54 +00:00
|
|
|
|
2024-02-01 21:27:48 +00:00
|
|
|
n.inc
|
|
|
|
|
|
|
|
xCheck n == tab.len
|
|
|
|
true
|
2023-08-22 18:44:54 +00:00
|
|
|
|
|
|
|
## Wrapper
|
2023-09-15 15:23:53 +00:00
|
|
|
let be = db.backend
|
|
|
|
case be.kind:
|
2023-08-22 18:44:54 +00:00
|
|
|
of BackendMemory:
|
2024-02-01 21:27:48 +00:00
|
|
|
noisy.verifyImpl(tab, be.MemBackendRef)
|
2023-08-22 18:44:54 +00:00
|
|
|
of BackendRocksDB:
|
2024-02-01 21:27:48 +00:00
|
|
|
noisy.verifyImpl(tab, be.RdbBackendRef)
|
2023-08-22 18:44:54 +00:00
|
|
|
else:
|
2024-02-01 21:27:48 +00:00
|
|
|
raiseAssert "Oops, unsupported backend " & $be.kind
|
2023-08-22 18:44:54 +00:00
|
|
|
|
2024-02-22 08:24:58 +00:00
|
|
|
|
|
|
|
proc verifyKeys(
|
|
|
|
db: AristoDbRef;
|
|
|
|
noisy: bool;
|
|
|
|
): bool =
|
|
|
|
|
|
|
|
proc verifyImpl[T](noisy: bool; db: AristoDbRef): bool =
|
|
|
|
## Check for zero keys
|
|
|
|
var zeroKeys: seq[VertexID]
|
|
|
|
for (vid,vtx) in T.walkPairs(db):
|
|
|
|
if vtx.isValid and not db.getKey(vid).isValid:
|
|
|
|
zeroKeys.add vid
|
|
|
|
|
|
|
|
xCheck zeroKeys == EmptyVidSeq:
|
|
|
|
noisy.say "***", "verifyKeys(1)",
|
|
|
|
"\n zeroKeys=", zeroKeys.pp,
|
|
|
|
#"\n db\n ", db.pp(backendOk=true),
|
|
|
|
""
|
|
|
|
true
|
|
|
|
|
|
|
|
## Wrapper
|
|
|
|
let be = db.backend
|
|
|
|
case be.kind:
|
|
|
|
of BackendVoid:
|
|
|
|
verifyImpl[VoidBackendRef](noisy, db)
|
|
|
|
of BackendMemory:
|
|
|
|
verifyImpl[MemBackendRef](noisy, db)
|
|
|
|
of BackendRocksDB:
|
|
|
|
verifyImpl[RdbBackendRef](noisy, db)
|
|
|
|
|
|
|
|
# -----------
|
|
|
|
|
|
|
|
proc collectFilter(
|
|
|
|
db: AristoDbRef;
|
|
|
|
filter: FilterRef;
|
|
|
|
tab: var Table[QueueID,Hash];
|
|
|
|
noisy: bool;
|
|
|
|
): bool =
|
|
|
|
## Store filter on permanent BE and register digest
|
|
|
|
if not filter.isNil:
|
|
|
|
let
|
|
|
|
fid = QueueID(7 * (tab.len + 1)) # just some number
|
|
|
|
be = db.backend
|
|
|
|
tx = be.putBegFn()
|
|
|
|
|
|
|
|
be.putFilFn(tx, @[(fid,filter)])
|
|
|
|
let rc = be.putEndFn tx
|
|
|
|
xCheckRc rc.error == 0
|
|
|
|
|
|
|
|
tab[fid] = filter.hash
|
|
|
|
|
|
|
|
true
|
|
|
|
|
|
|
|
proc mergeData(
|
|
|
|
db: AristoDbRef;
|
|
|
|
rootKey: Hash256;
|
|
|
|
rootVid: VertexID;
|
|
|
|
proof: openArray[SnapProof];
|
|
|
|
leafs: openArray[LeafTiePayload];
|
|
|
|
noisy: bool;
|
|
|
|
): bool =
|
|
|
|
## Simplified loop body of `test_mergeProofAndKvpList()`
|
|
|
|
if 0 < proof.len:
|
|
|
|
let root = block:
|
|
|
|
let rc = db.merge(rootKey, rootVid)
|
|
|
|
xCheckRc rc.error == 0
|
|
|
|
rc.value
|
|
|
|
|
|
|
|
let nMerged = block:
|
|
|
|
let rc = db.merge(proof, root) # , noisy=noisy)
|
|
|
|
xCheckRc rc.error == 0
|
|
|
|
rc.value
|
|
|
|
|
|
|
|
let merged = db.mergeList(leafs, noisy=noisy)
|
|
|
|
xCheck merged.error in {AristoError(0), MergeLeafPathCachedAlready}
|
|
|
|
|
|
|
|
block:
|
|
|
|
let rc = db.hashify(noisy = noisy)
|
|
|
|
xCheckRc rc.error == (0,0):
|
|
|
|
noisy.say "***", "dataMerge (8)",
|
|
|
|
" nProof=", proof.len,
|
|
|
|
" nLeafs=", leafs.len,
|
|
|
|
" error=", rc.error,
|
|
|
|
#"\n db\n ", db.pp(backendOk=true),
|
|
|
|
""
|
|
|
|
block:
|
|
|
|
xCheck db.verifyKeys(noisy):
|
|
|
|
noisy.say "***", "dataMerge (9)",
|
|
|
|
" nProof=", proof.len,
|
|
|
|
" nLeafs=", leafs.len,
|
|
|
|
#"\n db\n ", db.pp(backendOk=true),
|
|
|
|
""
|
|
|
|
true
|
|
|
|
|
2023-06-20 13:26:25 +00:00
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
# Public test function
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
|
2023-09-05 13:57:20 +00:00
|
|
|
proc testBackendConsistency*(
|
2023-06-20 13:26:25 +00:00
|
|
|
noisy: bool;
|
|
|
|
list: openArray[ProofTrieData]; # Test data
|
2024-02-01 21:27:48 +00:00
|
|
|
rdbPath = ""; # Rocks DB storage directory
|
2023-06-20 13:26:25 +00:00
|
|
|
resetDb = false;
|
|
|
|
): bool =
|
|
|
|
## Import accounts
|
|
|
|
var
|
2023-11-08 12:18:32 +00:00
|
|
|
filTab: Table[QueueID,Hash] # Filter register
|
2023-07-04 18:24:03 +00:00
|
|
|
ndb = AristoDbRef() # Reference cache
|
|
|
|
mdb = AristoDbRef() # Memory backend database
|
|
|
|
rdb = AristoDbRef() # Rocks DB backend database
|
2023-11-08 12:18:32 +00:00
|
|
|
rootKey = Hash256() # Root key
|
2023-06-20 13:26:25 +00:00
|
|
|
count = 0
|
|
|
|
|
|
|
|
defer:
|
|
|
|
rdb.finish(flush=true)
|
|
|
|
|
|
|
|
for n,w in list:
|
2024-02-21 16:04:59 +00:00
|
|
|
if w.root != rootKey or resetDb:
|
2023-06-20 13:26:25 +00:00
|
|
|
rootKey = w.root
|
|
|
|
count = 0
|
2023-09-15 15:23:53 +00:00
|
|
|
ndb = AristoDbRef.init()
|
|
|
|
mdb = AristoDbRef.init MemBackendRef
|
2023-09-05 13:57:20 +00:00
|
|
|
|
2024-02-01 21:27:48 +00:00
|
|
|
if not rdb.backend.isNil: # ignore bootstrap
|
|
|
|
let verifyFiltersOk = rdb.verifyFilters(filTab, noisy)
|
|
|
|
xCheck verifyFiltersOk
|
|
|
|
filTab.clear
|
|
|
|
rdb.finish(flush=true)
|
|
|
|
if 0 < rdbPath.len:
|
2023-09-15 15:23:53 +00:00
|
|
|
let rc = AristoDbRef.init(RdbBackendRef, rdbPath)
|
2023-09-05 13:57:20 +00:00
|
|
|
xCheckRc rc.error == 0
|
2023-06-20 13:26:25 +00:00
|
|
|
rdb = rc.value
|
2024-02-01 21:27:48 +00:00
|
|
|
else:
|
|
|
|
rdb = AristoDbRef.init MemBackendRef # fake `rdb` database
|
2023-09-05 13:57:20 +00:00
|
|
|
|
2024-02-01 21:27:48 +00:00
|
|
|
# Disable automated filter management, still allow filter table access
|
|
|
|
# for low level read/write testing.
|
|
|
|
rdb.backend.filters = QidSchedRef(nil)
|
2023-06-20 13:26:25 +00:00
|
|
|
count.inc
|
|
|
|
|
2023-09-05 13:57:20 +00:00
|
|
|
xCheck ndb.backend.isNil
|
|
|
|
xCheck not mdb.backend.isNil
|
2023-06-20 13:26:25 +00:00
|
|
|
|
|
|
|
when true and false:
|
2024-02-01 21:27:48 +00:00
|
|
|
noisy.say "***", "beCon(1) <", n, "/", list.len-1, ">",
|
|
|
|
" groups=", count,
|
|
|
|
"\n ndb\n ", ndb.pp(backendOk = true),
|
|
|
|
"\n -------------",
|
|
|
|
"\n mdb\n ", mdb.pp(backendOk = true),
|
2024-02-22 08:24:58 +00:00
|
|
|
#"\n -------------",
|
|
|
|
#"\n rdb\n ", rdb.pp(backendOk = true),
|
2024-02-01 21:27:48 +00:00
|
|
|
"\n -------------"
|
2023-06-20 13:26:25 +00:00
|
|
|
|
|
|
|
block:
|
|
|
|
let
|
|
|
|
rootVid = VertexID(1)
|
2024-02-01 21:27:48 +00:00
|
|
|
leafs = w.kvpLst.mapRootVid rootVid # for merging it into main trie
|
|
|
|
|
|
|
|
let ndbOk = ndb.mergeData(rootKey, rootVid, w.proof, leafs, noisy=false)
|
|
|
|
xCheck ndbOk
|
|
|
|
|
|
|
|
let mdbOk = mdb.mergeData(rootKey, rootVid, w.proof, leafs, noisy=false)
|
|
|
|
xCheck mdbOk
|
|
|
|
|
|
|
|
let rdbOk = rdb.mergeData(rootKey, rootVid, w.proof, leafs, noisy=false)
|
|
|
|
xCheck rdbOk
|
2023-06-20 13:26:25 +00:00
|
|
|
|
|
|
|
when true and false:
|
2024-02-01 21:27:48 +00:00
|
|
|
noisy.say "***", "beCon(2) <", n, "/", list.len-1, ">",
|
|
|
|
" groups=", count,
|
|
|
|
"\n ndb\n ", ndb.pp(backendOk = true),
|
|
|
|
"\n -------------",
|
|
|
|
"\n mdb\n ", mdb.pp(backendOk = true),
|
|
|
|
#"\n -------------",
|
|
|
|
#"\n rdb\n ", rdb.pp(backendOk = true),
|
|
|
|
"\n -------------"
|
2023-06-20 13:26:25 +00:00
|
|
|
|
|
|
|
var
|
2024-02-01 21:27:48 +00:00
|
|
|
mdbPreSave = ""
|
|
|
|
rdbPreSave = ""
|
|
|
|
when true and false:
|
2024-02-22 08:24:58 +00:00
|
|
|
mdbPreSave = mdb.pp() # backendOk = true)
|
|
|
|
rdbPreSave = rdb.pp() # backendOk = true)
|
2023-08-22 18:44:54 +00:00
|
|
|
|
|
|
|
# Provide filter, store filter on permanent BE, and register filter digest
|
|
|
|
block:
|
2023-12-12 17:47:41 +00:00
|
|
|
let rc = mdb.stow(persistent=false, chunkedMpt=true)
|
2023-09-15 15:23:53 +00:00
|
|
|
xCheckRc rc.error == 0
|
2023-08-22 18:44:54 +00:00
|
|
|
let collectFilterOk = rdb.collectFilter(mdb.roFilter, filTab, noisy)
|
2023-09-05 13:57:20 +00:00
|
|
|
xCheck collectFilterOk
|
2023-09-13 02:32:38 +00:00
|
|
|
|
2023-06-20 13:26:25 +00:00
|
|
|
# Store onto backend database
|
2023-07-04 18:24:03 +00:00
|
|
|
block:
|
2023-06-20 13:26:25 +00:00
|
|
|
#noisy.say "***", "db-dump\n ", mdb.pp
|
2023-12-12 17:47:41 +00:00
|
|
|
let rc = mdb.stow(persistent=true, chunkedMpt=true)
|
2023-09-15 15:23:53 +00:00
|
|
|
xCheckRc rc.error == 0
|
2024-02-01 21:27:48 +00:00
|
|
|
block:
|
2023-12-12 17:47:41 +00:00
|
|
|
let rc = rdb.stow(persistent=true, chunkedMpt=true)
|
2023-09-15 15:23:53 +00:00
|
|
|
xCheckRc rc.error == 0
|
2023-06-20 13:26:25 +00:00
|
|
|
|
2023-09-05 13:57:20 +00:00
|
|
|
block:
|
2024-02-22 08:24:58 +00:00
|
|
|
ndb.top.final.pPrf.clear # let it look like mdb/rdb
|
|
|
|
xCheck mdb.pPrf.len == 0
|
|
|
|
xCheck rdb.pPrf.len == 0
|
|
|
|
|
2024-02-01 21:27:48 +00:00
|
|
|
let mdbVerifyOk = ndb.top.verify(mdb.backend, noisy)
|
2023-09-05 13:57:20 +00:00
|
|
|
xCheck mdbVerifyOk:
|
2024-02-22 08:24:58 +00:00
|
|
|
when true: # and false:
|
2023-09-05 13:57:20 +00:00
|
|
|
noisy.say "***", "beCon(4) <", n, "/", list.len-1, ">",
|
|
|
|
" groups=", count,
|
2024-02-01 21:27:48 +00:00
|
|
|
"\n ndb\n ", ndb.pp(backendOk = true),
|
2024-02-22 08:24:58 +00:00
|
|
|
"\n -------------",
|
|
|
|
"\n mdb pre-stow\n ", mdbPreSave,
|
2023-09-05 13:57:20 +00:00
|
|
|
"\n -------------",
|
2024-02-01 21:27:48 +00:00
|
|
|
"\n mdb\n ", mdb.pp(backendOk = true),
|
2023-09-05 13:57:20 +00:00
|
|
|
"\n -------------"
|
2023-06-20 13:26:25 +00:00
|
|
|
|
2024-02-01 21:27:48 +00:00
|
|
|
let rdbVerifyOk = ndb.top.verify(rdb.backend, noisy)
|
2023-09-05 13:57:20 +00:00
|
|
|
xCheck rdbVerifyOk:
|
2023-06-20 13:26:25 +00:00
|
|
|
when true and false:
|
2024-02-01 21:27:48 +00:00
|
|
|
noisy.say "***", "beCon(5) <", n, "/", list.len-1, ">",
|
2023-06-20 13:26:25 +00:00
|
|
|
" groups=", count,
|
2024-02-01 21:27:48 +00:00
|
|
|
"\n ndb\n ", ndb.pp(backendOk = true),
|
2023-06-20 13:26:25 +00:00
|
|
|
"\n -------------",
|
2024-02-01 21:27:48 +00:00
|
|
|
"\n rdb pre-stow\n ", rdbPreSave,
|
2023-06-20 13:26:25 +00:00
|
|
|
"\n -------------",
|
2024-02-01 21:27:48 +00:00
|
|
|
"\n rdb\n ", rdb.pp(backendOk = true),
|
2023-06-20 13:26:25 +00:00
|
|
|
#"\n -------------",
|
2024-02-01 21:27:48 +00:00
|
|
|
#"\n mdb\n ", mdb.pp(backendOk = true),
|
2023-06-20 13:26:25 +00:00
|
|
|
"\n -------------"
|
|
|
|
|
|
|
|
when true and false:
|
|
|
|
noisy.say "***", "beCon(9) <", n, "/", list.len-1, ">", " groups=", count
|
|
|
|
|
2023-08-22 18:44:54 +00:00
|
|
|
# Finally ...
|
|
|
|
block:
|
|
|
|
let verifyFiltersOk = rdb.verifyFilters(filTab, noisy)
|
2023-09-05 13:57:20 +00:00
|
|
|
xCheck verifyFiltersOk
|
2023-08-22 18:44:54 +00:00
|
|
|
|
2023-06-20 13:26:25 +00:00
|
|
|
true
|
|
|
|
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
# End
|
|
|
|
# ------------------------------------------------------------------------------
|