projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Correctly fail back blinded inbound fwd HTLCs when adding to a Channel
[rust-lightning]
/
lightning-persister
/
src
/
fs_store.rs
diff --git
a/lightning-persister/src/fs_store.rs
b/lightning-persister/src/fs_store.rs
index c665d8083cb194e2934263e6eef982585bb37b67..118cf9af7ba0e9554ca23514534007ca8c824e0a 100644
(file)
--- a/
lightning-persister/src/fs_store.rs
+++ b/
lightning-persister/src/fs_store.rs
@@
-369,7
+369,6
@@
mod tests {
use super::*;
use crate::test_utils::{do_read_write_remove_list_persist, do_test_store};
use super::*;
use crate::test_utils::{do_read_write_remove_list_persist, do_test_store};
- use bitcoin::hashes::hex::FromHex;
use bitcoin::Txid;
use lightning::chain::ChannelMonitorUpdateStatus;
use bitcoin::Txid;
use lightning::chain::ChannelMonitorUpdateStatus;
@@
-381,6
+380,7
@@
mod tests {
use lightning::util::test_utils;
use lightning::util::persist::read_channel_monitors;
use std::fs;
use lightning::util::test_utils;
use lightning::util::persist::read_channel_monitors;
use std::fs;
+ use std::str::FromStr;
#[cfg(target_os = "windows")]
use {
lightning::get_event_msg,
#[cfg(target_os = "windows")]
use {
lightning::get_event_msg,
@@
-466,7
+466,7
@@
mod tests {
fs::set_permissions(path, perms).unwrap();
let test_txo = OutPoint {
fs::set_permissions(path, perms).unwrap();
let test_txo = OutPoint {
- txid: Txid::from_
hex
("8984484a580b825b9972d7adb15050b3ab624ccd731946b3eeddb92f4e7ef6be").unwrap(),
+ txid: Txid::from_
str
("8984484a580b825b9972d7adb15050b3ab624ccd731946b3eeddb92f4e7ef6be").unwrap(),
index: 0
};
match store.persist_new_channel(test_txo, &added_monitors[0].1, update_id.2) {
index: 0
};
match store.persist_new_channel(test_txo, &added_monitors[0].1, update_id.2) {
@@
-503,7
+503,7
@@
mod tests {
let store = FilesystemStore::new(":<>/".into());
let test_txo = OutPoint {
let store = FilesystemStore::new(":<>/".into());
let test_txo = OutPoint {
- txid: Txid::from_
hex
("8984484a580b825b9972d7adb15050b3ab624ccd731946b3eeddb92f4e7ef6be").unwrap(),
+ txid: Txid::from_
str
("8984484a580b825b9972d7adb15050b3ab624ccd731946b3eeddb92f4e7ef6be").unwrap(),
index: 0
};
match store.persist_new_channel(test_txo, &added_monitors[0].1, update_id.2) {
index: 0
};
match store.persist_new_channel(test_txo, &added_monitors[0].1, update_id.2) {