Skip to content

Commit c52825d

Browse files
committed
Fix UpdateAddHTLC serialize vec capacity default
1 parent 3db5798 commit c52825d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ln/msgs.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -937,7 +937,7 @@ impl MsgDecodable for UpdateAddHTLC {
937937
}
938938
impl MsgEncodable for UpdateAddHTLC {
939939
fn encode(&self) -> Vec<u8> {
940-
let mut res = Vec::with_capacity(32+8+8+32+4+1+1366);
940+
let mut res = Vec::with_capacity(32+8+8+32+4+1366);
941941
res.extend_from_slice(&self.channel_id);
942942
res.extend_from_slice(&byte_utils::be64_to_array(self.htlc_id));
943943
res.extend_from_slice(&byte_utils::be64_to_array(self.amount_msat));

0 commit comments

Comments
 (0)