Skip to content

Commit 641c6ab

Browse files
toadlyBroodlerustyrussell
authored andcommitted
stylesheet update and apply to BOLT 2,3
1 parent d600f07 commit 641c6ab

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

.copy-edit-stylesheet-checklist.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ temporarily included here for reference purposes.
99
- dangling, misplaced modifiers
1010
- consistent paragraph tense (e.g. past, present, future)
1111
- passive voice (e.g. avoid 'we')
12+
- use 'local/remote' terminology rather than 'us/them' or 'we/they'
1213
- exception: `Introduction` section
1314
- capitalization
1415
- table of contents

02-peer-protocol.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ across many distinct blockchains as well as have channels within multiple
110110
blockchains opened to the same peer (if it supports the target chains).
111111

112112
The `temporary_channel_id` is used to identify this channel until the
113-
funding transaction is established.
113+
funding transaction is established.
114114

115115
`funding_satoshis` is the amount the sender is putting into the
116116
channel. `push_msat` is an amount of initial funds that the sender is
@@ -119,21 +119,21 @@ threshold below which outputs should not be generated for this node's
119119
commitment or HTLC transactions (i.e. HTLCs below this amount plus
120120
HTLC transaction fees are not enforceable on-chain). This reflects the
121121
reality that tiny outputs are not considered standard transactions and
122-
will not propagate through the Bitcoin network. `channel_reserve_satoshis`
122+
will not propagate through the Bitcoin network. `channel_reserve_satoshis`
123123
is the minimum amount that the other node is to keep as a direct
124124
payment. `htlc_minimum_msat` indicates the smallest value HTLC this
125125
node will accept.
126126

127127
`max_htlc_value_in_flight_msat` is a cap on total value of outstanding
128128
HTLCs, which allows a node to limit its exposure to HTLCs; similarly,
129129
`max_accepted_htlcs` limits the number of outstanding HTLCs the other
130-
node can offer.
130+
node can offer.
131131

132132
`feerate_per_kw` indicates the initial fee rate by 1000-weight
133133
(i.e. 1/4 the more normally-used 'fee rate per kilobyte') that this
134134
side will pay for commitment and HTLC transactions, as described in
135135
[BOLT #3](03-transactions.md#fee-calculation) (this can be adjusted
136-
later with an `update_fee` message).
136+
later with an `update_fee` message).
137137

138138
`to_self_delay` is the number of blocks that the other node's to-self
139139
outputs must be delayed, using `OP_CHECKSEQUENCEVERIFY` delays; this
@@ -775,7 +775,7 @@ Invalid amounts are a clear protocol violation and indicate a breakdown.
775775

776776
If a node did not accept multiple HTLCs with the same payment hash, an
777777
attacker could probe to see if a node had an existing HTLC. This
778-
requirement, to deal with duplicates, leads us to use a separate
778+
requirement, to deal with duplicates, leads to the use of a separate
779779
identifier; its assumed a 64-bit counter never wraps.
780780

781781
Retransmissions of unacknowledged updates are explicitly allowed for

03-transactions.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ Thus, a simplified formula for *expected weight* is used, which assumes:
304304
* There are a small number of outputs (thus 1 byte to count them).
305305
* There are always both a `to_local` output and a `to_remote` output.
306306

307-
This gives us the following *expected weights* (details of the computation in [Appendix A](#appendix-a-expected-weights)):
307+
This yields the following *expected weights* (details of the computation in [Appendix A](#appendix-a-expected-weights)):
308308

309309
Commitment weight: 724 + 172 * num-untrimmed-htlc-outputs
310310
HTLC-timeout weight: 663
@@ -518,9 +518,9 @@ In binary, it's helpful to think of any index in terms of a *prefix*,
518518
followed by some trailing 0s. You can derive the secret for any
519519
index which matches this *prefix*.
520520

521-
For example, secret `0xFFFFFFFFFFF0` allows us to derive secrets for
522-
`0xFFFFFFFFFFF1` through `0xFFFFFFFFFFFF` inclusive. Secret `0xFFFFFFFFFF08`
523-
allows us to derive secrets `0xFFFFFFFFFF09` through `0xFFFFFFFFFF0F`
521+
For example, secret `0xFFFFFFFFFFF0` allows the secrets to be derived for
522+
`0xFFFFFFFFFFF1` through `0xFFFFFFFFFFFF`, inclusive; and secret `0xFFFFFFFFFF08`
523+
allows the secrets to be derive for `0xFFFFFFFFFF09` through `0xFFFFFFFFFF0F`,
524524
inclusive.
525525

526526
This is done using a slight generalization of `generate_from_seed` above:

0 commit comments

Comments
 (0)