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;
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};
@@ -10678,7 +10678,7 @@ where
10678
10678
shared_input_txid: None,
10679
10679
};
10680
10680
let message_len = MESSAGE_TEMPLATE.serialized_length() + tx.serialized_length();
10681
- if message_len > u16::MAX as usize {
10681
+ if message_len > LN_MAX_MSG_LEN {
10682
10682
return Err(APIError::APIMisuseError {
10683
10683
err: format!("Funding input's prevtx is too large for tx_add_input"),
10684
10684
});
You can’t perform that action at this time.
0 commit comments