Skip to content

Commit 02a049a

Browse files
committed
Update event handler for sled
1 parent da92a5d commit 02a049a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/event.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ use lightning::util::events as ldk_events;
1616
use lightning::util::persist::KVStorePersister;
1717
use lightning::util::ser::{Readable, ReadableArgs, Writeable, Writer};
1818

19-
use bdk::database::MemoryDatabase;
20-
2119
use bitcoin::secp256k1::Secp256k1;
2220
use rand::{thread_rng, Rng};
2321
use std::collections::{hash_map, VecDeque};
@@ -135,7 +133,7 @@ impl Writeable for EventQueueSerWrapper {
135133
}
136134

137135
pub(crate) struct LdkLiteEventHandler {
138-
chain_access: Arc<LdkLiteChainAccess<MemoryDatabase>>,
136+
chain_access: Arc<LdkLiteChainAccess<bdk::sled::Tree>>,
139137
event_queue: Arc<LdkLiteEventQueue<FilesystemPersister>>,
140138
channel_manager: Arc<ChannelManager>,
141139
network_graph: Arc<NetworkGraph>,
@@ -148,7 +146,7 @@ pub(crate) struct LdkLiteEventHandler {
148146

149147
impl LdkLiteEventHandler {
150148
pub fn new(
151-
chain_access: Arc<LdkLiteChainAccess<MemoryDatabase>>,
149+
chain_access: Arc<LdkLiteChainAccess<bdk::sled::Tree>>,
152150
event_queue: Arc<LdkLiteEventQueue<FilesystemPersister>>,
153151
channel_manager: Arc<ChannelManager>, network_graph: Arc<NetworkGraph>,
154152
keys_manager: Arc<KeysManager>, inbound_payments: Arc<PaymentInfoStorage>,

0 commit comments

Comments
 (0)