@@ -450,10 +450,6 @@ pub struct ChannelReady {
450450 pub short_channel_id_alias : Option < u64 > ,
451451}
452452
453- /// A randomly chosen number that is used to identify inputs within an interactive transaction
454- /// construction.
455- pub type SerialId = u64 ;
456-
457453/// An `stfu` (quiescence) message to be sent by or received from the stfu initiator.
458454///
459455// TODO(splicing): Add spec link for `stfu`; still in draft, using from https://github.com/lightning/bolts/pull/1160
@@ -521,7 +517,7 @@ pub struct TxAddInput {
521517 pub channel_id : ChannelId ,
522518 /// A randomly chosen unique identifier for this input, which is even for initiators and odd for
523519 /// non-initiators.
524- pub serial_id : SerialId ,
520+ pub serial_id : u64 ,
525521 /// Serialized transaction that contains the output this input spends to verify that it is
526522 /// non-malleable. Omitted for shared input.
527523 pub prevtx : Option < Transaction > ,
@@ -542,7 +538,7 @@ pub struct TxAddOutput {
542538 pub channel_id : ChannelId ,
543539 /// A randomly chosen unique identifier for this output, which is even for initiators and odd for
544540 /// non-initiators.
545- pub serial_id : SerialId ,
541+ pub serial_id : u64 ,
546542 /// The satoshi value of the output
547543 pub sats : u64 ,
548544 /// The scriptPubKey for the output
@@ -557,7 +553,7 @@ pub struct TxRemoveInput {
557553 /// The channel ID
558554 pub channel_id : ChannelId ,
559555 /// The serial ID of the input to be removed
560- pub serial_id : SerialId ,
556+ pub serial_id : u64 ,
561557}
562558
563559/// A [`tx_remove_output`] message for removing an output during interactive transaction construction.
@@ -568,7 +564,7 @@ pub struct TxRemoveOutput {
568564 /// The channel ID
569565 pub channel_id : ChannelId ,
570566 /// The serial ID of the output to be removed
571- pub serial_id : SerialId ,
567+ pub serial_id : u64 ,
572568}
573569
574570/// [`A tx_complete`] message signalling the conclusion of a peer's transaction contributions during
@@ -2848,7 +2844,7 @@ impl Writeable for TxAddInput {
28482844impl LengthReadable for TxAddInput {
28492845 fn read_from_fixed_length_buffer < R : LengthLimitedRead > ( r : & mut R ) -> Result < Self , DecodeError > {
28502846 let channel_id: ChannelId = Readable :: read ( r) ?;
2851- let serial_id: SerialId = Readable :: read ( r) ?;
2847+ let serial_id: u64 = Readable :: read ( r) ?;
28522848
28532849 let prevtx_len: u16 = Readable :: read ( r) ?;
28542850 let prevtx = if prevtx_len > 0 {
0 commit comments