Skip to content

Commit

Permalink
meta: keep the last version of the codegen
Browse files Browse the repository at this point in the history
Signed-off-by: Vincenzo Palazzo <[email protected]>
  • Loading branch information
vincenzopalazzo committed Mar 27, 2024
1 parent d4d30b4 commit f364246
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 40 deletions.
5 changes: 0 additions & 5 deletions specs/bolt1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ use crate::prelude::*;

#[derive(DecodeWire, EncodeWire, Debug, Clone)]
pub struct Error {
#[warn(dead_code)]
#[msg_type=17]
pub ty: u16,
pub channel_id: ChannelId,
Expand All @@ -18,7 +17,6 @@ pub struct Error {

#[derive(DecodeWire, EncodeWire, Debug, Clone)]
pub struct Init {
#[warn(dead_code)]
#[msg_type=16]
pub ty: u16,
pub globalfeatures: BitFlag,
Expand All @@ -28,7 +26,6 @@ pub struct Init {

#[derive(DecodeWire, EncodeWire, Debug, Clone)]
pub struct Ping {
#[warn(dead_code)]
#[msg_type=18]
pub ty: u16,
pub num_pong_bytes: u16,
Expand All @@ -37,15 +34,13 @@ pub struct Ping {

#[derive(DecodeWire, EncodeWire, Debug, Clone)]
pub struct Pong {
#[warn(dead_code)]
#[msg_type=19]
pub ty: u16,
pub ignored: BitFlag,
}

#[derive(DecodeWire, EncodeWire, Debug, Clone)]
pub struct Warning {
#[warn(dead_code)]
#[msg_type=1]
pub ty: u16,
pub channel_id: ChannelId,
Expand Down
26 changes: 0 additions & 26 deletions specs/bolt2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ use crate::prelude::*;

#[derive(DecodeWire, EncodeWire, Debug, Clone)]
pub struct AcceptChannel {
#[warn(dead_code)]
#[msg_type=33]
pub ty: u16,
pub temporary_channel_id: BitFlag,
Expand All @@ -31,7 +30,6 @@ pub struct AcceptChannel {

#[derive(DecodeWire, EncodeWire, Debug, Clone)]
pub struct AcceptChannel2 {
#[warn(dead_code)]
#[msg_type=65]
pub ty: u16,
pub temporary_channel_id: ChannelId,
Expand All @@ -54,7 +52,6 @@ pub struct AcceptChannel2 {

#[derive(DecodeWire, EncodeWire, Debug, Clone)]
pub struct ChannelReady {
#[warn(dead_code)]
#[msg_type=36]
pub ty: u16,
pub channel_id: ChannelId,
Expand All @@ -64,7 +61,6 @@ pub struct ChannelReady {

#[derive(DecodeWire, EncodeWire, Debug, Clone)]
pub struct ChannelReestablish {
#[warn(dead_code)]
#[msg_type=136]
pub ty: u16,
pub channel_id: ChannelId,
Expand All @@ -76,7 +72,6 @@ pub struct ChannelReestablish {

#[derive(DecodeWire, EncodeWire, Debug, Clone)]
pub struct ClosingSigned {
#[warn(dead_code)]
#[msg_type=39]
pub ty: u16,
pub channel_id: ChannelId,
Expand All @@ -87,7 +82,6 @@ pub struct ClosingSigned {

#[derive(DecodeWire, EncodeWire, Debug, Clone)]
pub struct CommitmentSigned {
#[warn(dead_code)]
#[msg_type=132]
pub ty: u16,
pub channel_id: ChannelId,
Expand All @@ -97,7 +91,6 @@ pub struct CommitmentSigned {

#[derive(DecodeWire, EncodeWire, Debug, Clone)]
pub struct FundingCreated {
#[warn(dead_code)]
#[msg_type=34]
pub ty: u16,
pub temporary_channel_id: BitFlag,
Expand All @@ -108,7 +101,6 @@ pub struct FundingCreated {

#[derive(DecodeWire, EncodeWire, Debug, Clone)]
pub struct FundingSigned {
#[warn(dead_code)]
#[msg_type=35]
pub ty: u16,
pub channel_id: ChannelId,
Expand All @@ -117,7 +109,6 @@ pub struct FundingSigned {

#[derive(DecodeWire, EncodeWire, Debug, Clone)]
pub struct OpenChannel {
#[warn(dead_code)]
#[msg_type=32]
pub ty: u16,
pub chain_hash: ChainHash,
Expand All @@ -143,7 +134,6 @@ pub struct OpenChannel {

#[derive(DecodeWire, EncodeWire, Debug, Clone)]
pub struct OpenChannel2 {
#[warn(dead_code)]
#[msg_type=64]
pub ty: u16,
pub chain_hash: ChainHash,
Expand All @@ -170,7 +160,6 @@ pub struct OpenChannel2 {

#[derive(DecodeWire, EncodeWire, Debug, Clone)]
pub struct RevokeAndAck {
#[warn(dead_code)]
#[msg_type=133]
pub ty: u16,
pub channel_id: ChannelId,
Expand All @@ -180,7 +169,6 @@ pub struct RevokeAndAck {

#[derive(DecodeWire, EncodeWire, Debug, Clone)]
pub struct Shutdown {
#[warn(dead_code)]
#[msg_type=38]
pub ty: u16,
pub channel_id: ChannelId,
Expand All @@ -189,7 +177,6 @@ pub struct Shutdown {

#[derive(DecodeWire, EncodeWire, Debug, Clone)]
pub struct TxAbort {
#[warn(dead_code)]
#[msg_type=74]
pub ty: u16,
pub channel_id: ChannelId,
Expand All @@ -198,7 +185,6 @@ pub struct TxAbort {

#[derive(DecodeWire, EncodeWire, Debug, Clone)]
pub struct TxAckRbf {
#[warn(dead_code)]
#[msg_type=73]
pub ty: u16,
pub channel_id: ChannelId,
Expand All @@ -207,7 +193,6 @@ pub struct TxAckRbf {

#[derive(DecodeWire, EncodeWire, Debug, Clone)]
pub struct TxAddInput {
#[warn(dead_code)]
#[msg_type=66]
pub ty: u16,
pub channel_id: ChannelId,
Expand All @@ -219,7 +204,6 @@ pub struct TxAddInput {

#[derive(DecodeWire, EncodeWire, Debug, Clone)]
pub struct TxAddOutput {
#[warn(dead_code)]
#[msg_type=67]
pub ty: u16,
pub channel_id: ChannelId,
Expand All @@ -230,15 +214,13 @@ pub struct TxAddOutput {

#[derive(DecodeWire, EncodeWire, Debug, Clone)]
pub struct TxComplete {
#[warn(dead_code)]
#[msg_type=70]
pub ty: u16,
pub channel_id: ChannelId,
}

#[derive(DecodeWire, EncodeWire, Debug, Clone)]
pub struct TxInitRbf {
#[warn(dead_code)]
#[msg_type=72]
pub ty: u16,
pub channel_id: ChannelId,
Expand All @@ -249,7 +231,6 @@ pub struct TxInitRbf {

#[derive(DecodeWire, EncodeWire, Debug, Clone)]
pub struct TxRemoveInput {
#[warn(dead_code)]
#[msg_type=68]
pub ty: u16,
pub channel_id: ChannelId,
Expand All @@ -258,7 +239,6 @@ pub struct TxRemoveInput {

#[derive(DecodeWire, EncodeWire, Debug, Clone)]
pub struct TxRemoveOutput {
#[warn(dead_code)]
#[msg_type=69]
pub ty: u16,
pub channel_id: ChannelId,
Expand All @@ -267,7 +247,6 @@ pub struct TxRemoveOutput {

#[derive(DecodeWire, EncodeWire, Debug, Clone)]
pub struct TxSignatures {
#[warn(dead_code)]
#[msg_type=71]
pub ty: u16,
pub channel_id: ChannelId,
Expand All @@ -277,7 +256,6 @@ pub struct TxSignatures {

#[derive(DecodeWire, EncodeWire, Debug, Clone)]
pub struct UpdateAddHtlc {
#[warn(dead_code)]
#[msg_type=128]
pub ty: u16,
pub channel_id: ChannelId,
Expand All @@ -290,7 +268,6 @@ pub struct UpdateAddHtlc {

#[derive(DecodeWire, EncodeWire, Debug, Clone)]
pub struct UpdateFailHtlc {
#[warn(dead_code)]
#[msg_type=131]
pub ty: u16,
pub channel_id: ChannelId,
Expand All @@ -300,7 +277,6 @@ pub struct UpdateFailHtlc {

#[derive(DecodeWire, EncodeWire, Debug, Clone)]
pub struct UpdateFailMalformedHtlc {
#[warn(dead_code)]
#[msg_type=135]
pub ty: u16,
pub channel_id: ChannelId,
Expand All @@ -311,7 +287,6 @@ pub struct UpdateFailMalformedHtlc {

#[derive(DecodeWire, EncodeWire, Debug, Clone)]
pub struct UpdateFee {
#[warn(dead_code)]
#[msg_type=134]
pub ty: u16,
pub channel_id: ChannelId,
Expand All @@ -320,7 +295,6 @@ pub struct UpdateFee {

#[derive(DecodeWire, EncodeWire, Debug, Clone)]
pub struct UpdateFulfillHtlc {
#[warn(dead_code)]
#[msg_type=130]
pub ty: u16,
pub channel_id: ChannelId,
Expand Down
9 changes: 0 additions & 9 deletions specs/bolt7.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ use crate::prelude::*;

#[derive(DecodeWire, EncodeWire, Debug, Clone)]
pub struct AnnouncementSignatures {
#[warn(dead_code)]
#[msg_type=259]
pub ty: u16,
pub channel_id: ChannelId,
Expand All @@ -20,7 +19,6 @@ pub struct AnnouncementSignatures {

#[derive(DecodeWire, EncodeWire, Debug, Clone)]
pub struct ChannelAnnouncement {
#[warn(dead_code)]
#[msg_type=256]
pub ty: u16,
pub node_signature_1: Signature,
Expand All @@ -38,7 +36,6 @@ pub struct ChannelAnnouncement {

#[derive(DecodeWire, EncodeWire, Debug, Clone)]
pub struct ChannelUpdate {
#[warn(dead_code)]
#[msg_type=258]
pub ty: u16,
pub signature: Signature,
Expand All @@ -56,7 +53,6 @@ pub struct ChannelUpdate {

#[derive(DecodeWire, EncodeWire, Debug, Clone)]
pub struct GossipTimestampFilter {
#[warn(dead_code)]
#[msg_type=265]
pub ty: u16,
pub chain_hash: ChainHash,
Expand All @@ -66,7 +62,6 @@ pub struct GossipTimestampFilter {

#[derive(DecodeWire, EncodeWire, Debug, Clone)]
pub struct NodeAnnouncement {
#[warn(dead_code)]
#[msg_type=257]
pub ty: u16,
pub signature: Signature,
Expand All @@ -80,7 +75,6 @@ pub struct NodeAnnouncement {

#[derive(DecodeWire, EncodeWire, Debug, Clone)]
pub struct QueryChannelRange {
#[warn(dead_code)]
#[msg_type=263]
pub ty: u16,
pub chain_hash: ChainHash,
Expand All @@ -91,7 +85,6 @@ pub struct QueryChannelRange {

#[derive(DecodeWire, EncodeWire, Debug, Clone)]
pub struct QueryShortChannelIds {
#[warn(dead_code)]
#[msg_type=261]
pub ty: u16,
pub chain_hash: ChainHash,
Expand All @@ -101,7 +94,6 @@ pub struct QueryShortChannelIds {

#[derive(DecodeWire, EncodeWire, Debug, Clone)]
pub struct ReplyChannelRange {
#[warn(dead_code)]
#[msg_type=264]
pub ty: u16,
pub chain_hash: ChainHash,
Expand All @@ -114,7 +106,6 @@ pub struct ReplyChannelRange {

#[derive(DecodeWire, EncodeWire, Debug, Clone)]
pub struct ReplyShortChannelIdsEnd {
#[warn(dead_code)]
#[msg_type=262]
pub ty: u16,
pub chain_hash: ChainHash,
Expand Down

0 comments on commit f364246

Please sign in to comment.