commit 3225bfe99df3d7d5822c4384f9f2c187fb11783f parent 0545571827bf64e06250f094d65775acd2a1165e Author: William Casarin <jb55@jb55.com> Date: Sun, 17 Dec 2023 13:33:09 -0800 config: add skip_validation option Diffstat:
M | src/config.rs | | | 12 | ++++++++++++ |
1 file changed, 12 insertions(+), 0 deletions(-)
diff --git a/src/config.rs b/src/config.rs @@ -27,6 +27,18 @@ impl Config { self } + pub fn skip_validation(&mut self, skip: bool) -> &mut Self { + let NDB_FLAG_SKIP_NOTE_VERIFY: i32 = (1 << 1); + + if skip { + self.config.flags |= NDB_FLAG_SKIP_NOTE_VERIFY + } else { + self.config.flags &= !NDB_FLAG_SKIP_NOTE_VERIFY + } + + self + } + pub fn set_ingester_threads(&mut self, threads: i32) -> &mut Self { self.config.ingester_threads = threads; self