@@ -184,9 +184,9 @@ enum HTLCUpdateAwaitingACK {
184
184
/// move on to ShutdownComplete, at which point most calls into this channel are disallowed.
185
185
enum ChannelState {
186
186
/// Implies we have (or are prepared to) send our open_channel/accept_channel message
187
- OurInitSent = ( 1 << 0 ) ,
187
+ OurInitSent = 1 << 0 ,
188
188
/// Implies we have received their open_channel/accept_channel message
189
- TheirInitSent = ( 1 << 1 ) ,
189
+ TheirInitSent = 1 << 1 ,
190
190
/// We have sent funding_created and are awaiting a funding_signed to advance to FundingSent.
191
191
/// Note that this is nonsense for an inbound channel as we immediately generate funding_signed
192
192
/// upon receipt of funding_created, so simply skip this state.
@@ -197,35 +197,35 @@ enum ChannelState {
197
197
FundingSent = 8 ,
198
198
/// Flag which can be set on FundingSent to indicate they sent us a funding_locked message.
199
199
/// Once both TheirFundingLocked and OurFundingLocked are set, state moves on to ChannelFunded.
200
- TheirFundingLocked = ( 1 << 4 ) ,
200
+ TheirFundingLocked = 1 << 4 ,
201
201
/// Flag which can be set on FundingSent to indicate we sent them a funding_locked message.
202
202
/// Once both TheirFundingLocked and OurFundingLocked are set, state moves on to ChannelFunded.
203
- OurFundingLocked = ( 1 << 5 ) ,
203
+ OurFundingLocked = 1 << 5 ,
204
204
ChannelFunded = 64 ,
205
205
/// Flag which is set on ChannelFunded and FundingSent indicating remote side is considered
206
206
/// "disconnected" and no updates are allowed until after we've done a channel_reestablish
207
207
/// dance.
208
- PeerDisconnected = ( 1 << 7 ) ,
208
+ PeerDisconnected = 1 << 7 ,
209
209
/// Flag which is set on ChannelFunded, FundingCreated, and FundingSent indicating the user has
210
210
/// told us they failed to update our ChannelMonitor somewhere and we should pause sending any
211
211
/// outbound messages until they've managed to do so.
212
- MonitorUpdateFailed = ( 1 << 8 ) ,
212
+ MonitorUpdateFailed = 1 << 8 ,
213
213
/// Flag which implies that we have sent a commitment_signed but are awaiting the responding
214
214
/// revoke_and_ack message. During this time period, we can't generate new commitment_signed
215
215
/// messages as then we will be unable to determine which HTLCs they included in their
216
216
/// revoke_and_ack implicit ACK, so instead we have to hold them away temporarily to be sent
217
217
/// later.
218
218
/// Flag is set on ChannelFunded.
219
- AwaitingRemoteRevoke = ( 1 << 9 ) ,
219
+ AwaitingRemoteRevoke = 1 << 9 ,
220
220
/// Flag which is set on ChannelFunded or FundingSent after receiving a shutdown message from
221
221
/// the remote end. If set, they may not add any new HTLCs to the channel, and we are expected
222
222
/// to respond with our own shutdown message when possible.
223
- RemoteShutdownSent = ( 1 << 10 ) ,
223
+ RemoteShutdownSent = 1 << 10 ,
224
224
/// Flag which is set on ChannelFunded or FundingSent after sending a shutdown message. At this
225
225
/// point, we may not add any new HTLCs to the channel.
226
226
/// TODO: Investigate some kind of timeout mechanism by which point the remote end must provide
227
227
/// us their shutdown.
228
- LocalShutdownSent = ( 1 << 11 ) ,
228
+ LocalShutdownSent = 1 << 11 ,
229
229
/// We've successfully negotiated a closing_signed dance. At this point ChannelManager is about
230
230
/// to drop us, but we store this anyway.
231
231
ShutdownComplete = 4096 ,
0 commit comments