Skip to content

Commit cd13364

Browse files
authored
Merge pull request #650 from TheBlueMatt/2020-06-fix-build
Fix silent merge conflict between bcd65be and 940d7ac
2 parents 0133739 + 4ed148a commit cd13364

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

lightning/src/ln/channel.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -184,9 +184,9 @@ enum HTLCUpdateAwaitingACK {
184184
/// move on to ShutdownComplete, at which point most calls into this channel are disallowed.
185185
enum ChannelState {
186186
/// Implies we have (or are prepared to) send our open_channel/accept_channel message
187-
OurInitSent = (1 << 0),
187+
OurInitSent = 1 << 0,
188188
/// Implies we have received their open_channel/accept_channel message
189-
TheirInitSent = (1 << 1),
189+
TheirInitSent = 1 << 1,
190190
/// We have sent funding_created and are awaiting a funding_signed to advance to FundingSent.
191191
/// Note that this is nonsense for an inbound channel as we immediately generate funding_signed
192192
/// upon receipt of funding_created, so simply skip this state.
@@ -197,35 +197,35 @@ enum ChannelState {
197197
FundingSent = 8,
198198
/// Flag which can be set on FundingSent to indicate they sent us a funding_locked message.
199199
/// Once both TheirFundingLocked and OurFundingLocked are set, state moves on to ChannelFunded.
200-
TheirFundingLocked = (1 << 4),
200+
TheirFundingLocked = 1 << 4,
201201
/// Flag which can be set on FundingSent to indicate we sent them a funding_locked message.
202202
/// Once both TheirFundingLocked and OurFundingLocked are set, state moves on to ChannelFunded.
203-
OurFundingLocked = (1 << 5),
203+
OurFundingLocked = 1 << 5,
204204
ChannelFunded = 64,
205205
/// Flag which is set on ChannelFunded and FundingSent indicating remote side is considered
206206
/// "disconnected" and no updates are allowed until after we've done a channel_reestablish
207207
/// dance.
208-
PeerDisconnected = (1 << 7),
208+
PeerDisconnected = 1 << 7,
209209
/// Flag which is set on ChannelFunded, FundingCreated, and FundingSent indicating the user has
210210
/// told us they failed to update our ChannelMonitor somewhere and we should pause sending any
211211
/// outbound messages until they've managed to do so.
212-
MonitorUpdateFailed = (1 << 8),
212+
MonitorUpdateFailed = 1 << 8,
213213
/// Flag which implies that we have sent a commitment_signed but are awaiting the responding
214214
/// revoke_and_ack message. During this time period, we can't generate new commitment_signed
215215
/// messages as then we will be unable to determine which HTLCs they included in their
216216
/// revoke_and_ack implicit ACK, so instead we have to hold them away temporarily to be sent
217217
/// later.
218218
/// Flag is set on ChannelFunded.
219-
AwaitingRemoteRevoke = (1 << 9),
219+
AwaitingRemoteRevoke = 1 << 9,
220220
/// Flag which is set on ChannelFunded or FundingSent after receiving a shutdown message from
221221
/// the remote end. If set, they may not add any new HTLCs to the channel, and we are expected
222222
/// to respond with our own shutdown message when possible.
223-
RemoteShutdownSent = (1 << 10),
223+
RemoteShutdownSent = 1 << 10,
224224
/// Flag which is set on ChannelFunded or FundingSent after sending a shutdown message. At this
225225
/// point, we may not add any new HTLCs to the channel.
226226
/// TODO: Investigate some kind of timeout mechanism by which point the remote end must provide
227227
/// us their shutdown.
228-
LocalShutdownSent = (1 << 11),
228+
LocalShutdownSent = 1 << 11,
229229
/// We've successfully negotiated a closing_signed dance. At this point ChannelManager is about
230230
/// to drop us, but we store this anyway.
231231
ShutdownComplete = 4096,

lightning/src/ln/functional_tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1566,7 +1566,7 @@ fn test_fee_spike_violation_fails_htlc() {
15661566
macro_rules! get_route_and_payment_hash {
15671567
($recv_value: expr) => {{
15681568
let (payment_preimage, payment_hash) = get_payment_preimage_hash!(nodes[1]);
1569-
let net_graph_msg_handler = &nodes[0].net_graph_msg_handler;
1569+
let net_graph_msg_handler = &nodes[0].net_graph_msg_handler.network_graph.read().unwrap();
15701570
let route = get_route(&nodes[0].node.get_our_node_id(), net_graph_msg_handler, &nodes.last().unwrap().node.get_our_node_id(), None, &Vec::new(), $recv_value, TEST_FINAL_CLTV, &logger).unwrap();
15711571
(route, payment_hash, payment_preimage)
15721572
}}

0 commit comments

Comments
 (0)