Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions src/payment/forwarding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,13 @@ use lightning::impl_writeable_tlv_based;
use lightning::ln::types::ChannelId;
use lightning::util::ser::{Readable, Writeable, Writer};

use super::forwarding_store::ForwardingStore;
use super::PageToken;
use crate::config::{Config, ForwardedPaymentTrackingMode};
use crate::error::Error;
use crate::ffi::{maybe_deref, maybe_wrap};
use crate::hex_utils;
use crate::runtime::Runtime;
use crate::UserChannelId;

use super::forwarding_store::ForwardingStore;
use super::PageToken;
use crate::{hex_utils, UserChannelId};

fn parse_forwarding_id(id: &str) -> Option<[u8; 32]> {
hex_utils::to_vec(id)?.try_into().ok()
Expand Down
3 changes: 1 addition & 2 deletions src/payment/forwarding_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ use crate::data_store::{
DataStore, DataStorePage, KeepAllEntries, KeepNoEntries, StorableObject, StorableObjectId,
StorableObjectUpdate, UpdatableObject,
};
use crate::hex_utils;
use crate::io::{
CHANNEL_FORWARDING_STATS_PERSISTENCE_SECONDARY_NAMESPACE,
CHANNEL_PAIR_FORWARDING_STATS_PERSISTENCE_SECONDARY_NAMESPACE,
Expand All @@ -38,7 +37,7 @@ use crate::logger::{log_debug, log_error, Logger};
use crate::types::{
ChannelForwardingStatsStore, ChannelPairForwardingStatsStore, DynStore, ForwardedPaymentStore,
};
use crate::{Error, UserChannelId};
use crate::{hex_utils, Error, UserChannelId};

pub(crate) const FORWARDED_PAYMENT_AGGREGATION_BUCKET_SIZE_SECS: u64 = 60 * 60;

Expand Down
Loading