Skip to content

Commit 9ca8891

Browse files
fixup! Add a sample module FilesystemPersister.
1 parent 58b3258 commit 9ca8891

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lightning-persister/src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,11 @@ mod tests {
152152
extern crate bitcoin;
153153
use crate::FilesystemPersister;
154154
use bitcoin::blockdata::block::{Block, BlockHeader};
155+
use bitcoin::hashes::hex::FromHex;
156+
use bitcoin::Txid;
155157
use DiskWriteable;
156158
use Error;
159+
use lightning::chain::transaction::OutPoint;
157160
use lightning::{check_closed_broadcast, check_added_monitors};
158161
use lightning::ln::features::InitFeatures;
159162
use lightning::ln::functional_test_utils::*;
@@ -163,18 +166,15 @@ mod tests {
163166
use lightning::util::ser::Writer;
164167
use lightning::util::test_utils;
165168
use std::fs;
169+
use std::io;
166170
#[cfg(not(target_os = "windows"))]
167171
use {
168-
bitcoin::hashes::hex::FromHex,
169172
bitcoin::hashes::sha256::Hash as Sha256,
170173
bitcoin::hashes::Hash,
171-
bitcoin::Txid,
172174
lightning::{unwrap_send_err, get_payment_preimage_hash},
173-
lightning::chain::transaction::OutPoint,
174175
lightning::ln::channelmanager::{PaymentSendFailure, PaymentPreimage, PaymentHash},
175176
lightning::routing::router::get_route,
176177
lightning::util::errors::APIError,
177-
std::io,
178178
};
179179
#[cfg(target_os = "windows")]
180180
use {

0 commit comments

Comments
 (0)