All checks were successful
ci / test (pull_request) Successful in 4m8s
Queue a chat send locally when the peer's v3 onion is unreachable and retry it with exponential backoff (30s doubling, capped at 30 min, 8 attempts then terminal Failed). Still peer-to-peer: no server, no store-and-forward relay, no new frame prefix — every attempt is a fresh Noise IK handshake. - src/outbox.rs: Outbox + Deliverer + ArtiDeliverer, pure backoff_secs(), is_permanent_send_error(), background worker (15s scan). - store: `outbox` table (no body column — the body is read from the joined messages row, under that row's existing AEAD + AAD), append_message_id(), queue/due/pending/mark_* helpers, reset_sending_outbox(), wipe. - Node::send() returns Result<OutboxStatus, String> (Sent/Queued) instead of Err on transport failure; protocol errors still fail immediately and are never queued. - Retry triggers: timer, unlock/foreground (spawn_flush_all), and "that peer was just seen" (handshake or connect_onion -> spawn_flush_friend). - File transfer and payment/rcp frames stay fail-closed. - docs/PROTOCOL.md + docs/THREAT_MODEL.md: replace the no-queue statements; add the seizure/cadence delta to the threat model. src/tui.rs gets one forced arm change (Ok(()) -> Ok(_)); UI surfacing is child card t_d9a5b065.
22 lines
385 B
Rust
22 lines
385 B
Rust
pub mod backup;
|
|
pub mod dispatch;
|
|
pub mod file;
|
|
pub mod frame;
|
|
pub mod hs;
|
|
pub mod loc;
|
|
pub mod node;
|
|
pub mod outbox;
|
|
pub mod pay;
|
|
pub mod profile;
|
|
pub mod qr;
|
|
pub mod ratelimit;
|
|
pub mod sanitize;
|
|
pub mod session;
|
|
mod store;
|
|
pub mod tui;
|
|
pub mod wallet;
|
|
|
|
pub use store::{
|
|
Friend, FriendProfile, Message, Payment, PaymentWrite, SelfIdentity, Store,
|
|
resolve_store_passphrase,
|
|
};
|