@@ -154,7 +154,7 @@ enum ChannelState {
154
154
AwaitingRemoteRevoke = ( 1 << 7 ) ,
155
155
}
156
156
157
- // TODO: We should refactor this to be a Inbound/OutboundChannel until initial setup handshaking
157
+ // TODO: We should refactor this to be an Inbound/OutboundChannel until initial setup handshaking
158
158
// has been completed, and then turn into a Channel to get compiler-time enforcement of things like
159
159
// calling get_channel_id() before we're set up or things like get_outbound_funding_signed on an
160
160
// inbound channel.
@@ -897,7 +897,7 @@ impl Channel {
897
897
}
898
898
899
899
/// Handles a funding_signed message from the remote end.
900
- /// If this call is successfull , broadcast the funding transaction (and not before!)
900
+ /// If this call is successful , broadcast the funding transaction (and not before!)
901
901
pub fn funding_signed ( & mut self , msg : & msgs:: FundingSigned ) -> Result < ( ) , HandleError > {
902
902
if !self . channel_outbound {
903
903
return Err ( HandleError { err : "Received funding_signed for an inbound channel?" , msg : None } ) ;
@@ -933,7 +933,7 @@ impl Channel {
933
933
}
934
934
935
935
//TODO: Note that this must be a duplicate of the previous commitment point they sent us,
936
- //as otherwise we will have a commitment transaction that they cant revoke (well, kinda,
936
+ //as otherwise we will have a commitment transaction that they can't revoke (well, kinda,
937
937
//they can by sending two revoke_and_acks back-to-back, but not really). This appears to be
938
938
//a protocol oversight, but I assume I'm just missing something.
939
939
if self . their_cur_commitment_point != msg. next_per_commitment_point {
@@ -1333,7 +1333,7 @@ impl Channel {
1333
1333
self . funding_tx_confirmed_in = header. bitcoin_hash ( ) ;
1334
1334
1335
1335
//TODO: Note that this must be a duplicate of the previous commitment point they sent us,
1336
- //as otherwise we will have a commitment transaction that they cant revoke (well, kinda,
1336
+ //as otherwise we will have a commitment transaction that they can't revoke (well, kinda,
1337
1337
//they can by sending two revoke_and_acks back-to-back, but not really). This appears to be
1338
1338
//a protocol oversight, but I assume I'm just missing something.
1339
1339
let next_per_commitment_secret = match self . build_local_commitment_secret ( self . cur_local_commitment_transaction_number ) {
@@ -1466,7 +1466,7 @@ impl Channel {
1466
1466
/// Panics if called at some time other than immediately after initial handshake, if called twice,
1467
1467
/// or if called on an inbound channel.
1468
1468
/// Note that channel_id changes during this call!
1469
- /// Do NOT broadcast the funding transaction until after a successfull funding_signed call!
1469
+ /// Do NOT broadcast the funding transaction until after a successful funding_signed call!
1470
1470
pub fn get_outbound_funding_created ( & mut self , funding_txid : Sha256dHash , funding_output_index : u16 ) -> Result < msgs:: FundingCreated , HandleError > {
1471
1471
if !self . channel_outbound {
1472
1472
panic ! ( "Tried to create outbound funding_created message on an inbound channel!" ) ;
@@ -1694,7 +1694,7 @@ mod tests {
1694
1694
chan. local_keys . payment_base_key = SecretKey :: from_slice ( & secp_ctx, & hex_bytes ( "1111111111111111111111111111111111111111111111111111111111111111" ) . unwrap ( ) [ ..] ) . unwrap ( ) ;
1695
1695
chan. local_keys . delayed_payment_base_key = SecretKey :: from_slice ( & secp_ctx, & hex_bytes ( "3333333333333333333333333333333333333333333333333333333333333333" ) . unwrap ( ) [ ..] ) . unwrap ( ) ;
1696
1696
chan. local_keys . htlc_base_key = SecretKey :: from_slice ( & secp_ctx, & hex_bytes ( "1111111111111111111111111111111111111111111111111111111111111111" ) . unwrap ( ) [ ..] ) . unwrap ( ) ;
1697
- // chan.local_keys.commitment_seed isnt derived in the test vectors :(
1697
+ // chan.local_keys.commitment_seed isn't derived in the test vectors :(
1698
1698
1699
1699
chan. channel_monitor . set_funding_info ( Sha256dHash :: from_hex ( "8984484a580b825b9972d7adb15050b3ab624ccd731946b3eeddb92f4e7ef6be" ) . unwrap ( ) , 0 ) ;
1700
1700
0 commit comments