Skip to content

Commit

Permalink
trust: don't skip validation
Browse files Browse the repository at this point in the history
we will be switching away from nostr-sdk, so we shouldn't do this
  • Loading branch information
jb55 committed Dec 31, 2024
1 parent 5d664fb commit 79fb35e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -232,9 +232,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
let listener = TcpListener::bind(addr).await?;
info!("Listening on 0.0.0.0:3000");

// Since ndk-sdk will verify for us, we don't need to do it on the db side
let cfg = Config::new();
cfg.skip_validation(true);
let ndb = Ndb::new(".", &cfg).expect("ndb failed to open");
let keys = Keys::generate();
let timeout = get_env_timeout();
Expand Down
2 changes: 1 addition & 1 deletion src/render.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ use egui::{
Color32, FontFamily, FontId, Mesh, Rect, RichText, Rounding, Shape, TextureHandle, Vec2,
Visuals,
};
use tracing::{debug, error, warn};
use nostr::event::kind::Kind;
use nostr::types::{SingleLetterTag, Timestamp};
use nostr_sdk::async_utility::futures_util::StreamExt;
Expand All @@ -18,6 +17,7 @@ use nostrdb::{
};
use std::collections::{BTreeMap, BTreeSet};
use tokio::time::{timeout, Duration};
use tracing::{debug, error, warn};

const PURPLE: Color32 = Color32::from_rgb(0xcc, 0x43, 0xc5);

Expand Down

0 comments on commit 79fb35e

Please sign in to comment.