File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,6 @@ use crate::chain::transaction::{OutPoint, TransactionData};
39
39
use crate::chain::BestBlock;
40
40
use crate::events::bump_transaction::BASE_INPUT_WEIGHT;
41
41
use crate::events::{ClosureReason, Event};
42
- use crate::ln::chan_utils;
43
42
#[cfg(splicing)]
44
43
use crate::ln::chan_utils::FUNDING_TRANSACTION_WITNESS_WEIGHT;
45
44
use crate::ln::chan_utils::{
@@ -72,6 +71,7 @@ use crate::ln::onion_utils::{
72
71
};
73
72
use crate::ln::script::{self, ShutdownScript};
74
73
use crate::ln::types::ChannelId;
74
+ use crate::ln::{chan_utils, LN_MAX_MSG_LEN};
75
75
use crate::routing::gossip::NodeId;
76
76
use crate::sign::ecdsa::EcdsaChannelSigner;
77
77
use crate::sign::tx_builder::{SpecTxBuilder, TxBuilder};
@@ -10686,7 +10686,7 @@ where
10686
10686
shared_input_txid: None,
10687
10687
};
10688
10688
let message_len = MESSAGE_TEMPLATE.serialized_length() + tx.serialized_length();
10689
- if message_len > u16::MAX as usize {
10689
+ if message_len > LN_MAX_MSG_LEN {
10690
10690
return Err(APIError::APIMisuseError {
10691
10691
err: format!("Funding input's prevtx is too large for tx_add_input"),
10692
10692
});
You can’t perform that action at this time.
0 commit comments