sphinx-key: commit mutations

This commit is contained in:
irriden
2023-09-12 23:55:32 +00:00
parent 8e45596eeb
commit 98fa95fb2a

View File

@@ -15,7 +15,7 @@ use sphinx_signer::kvv::{CloudKVVStore, FsKVVStore};
use sphinx_signer::lightning_signer::persist::Persist; use sphinx_signer::lightning_signer::persist::Persist;
use sphinx_signer::root::VlsHandlerError; use sphinx_signer::root::VlsHandlerError;
use sphinx_signer::sphinx_glyph as glyph; use sphinx_signer::sphinx_glyph as glyph;
use sphinx_signer::{self, RootHandler}; use sphinx_signer::{self, Handler, RootHandler};
use std::sync::mpsc; use std::sync::mpsc;
use std::sync::Arc; use std::sync::Arc;
use std::thread; use std::thread;
@@ -190,6 +190,7 @@ pub fn make_event_loop(
msgs = Some((vls_b, lss_b)); msgs = Some((vls_b, lss_b));
} }
expected_sequence = Some(sequence + 1); expected_sequence = Some(sequence + 1);
root_handler.commit();
} }
Err(e) => match e { Err(e) => match e {
VlsHandlerError::BadSequence(current, expected) => unsafe { VlsHandlerError::BadSequence(current, expected) => unsafe {