check-bolt: check that comments in code match the specs.

And fix the mistakes!

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2016-05-02 15:58:56 +09:30
parent 7bfbee136e
commit 03a538ca02
8 changed files with 261 additions and 10 deletions

View File

@@ -971,7 +971,7 @@ void peer_calculate_close_fee(struct peer *peer)
/* BOLT #2:
* The sender MUST set `close_fee` lower than or equal to the
* fee of the final commitment transaction and MUST set
* fee of the final commitment transaction, and MUST set
* `close_fee` to an even number of satoshis.
*/
maxfee = commit_tx_fee(peer->us.commit->tx, peer->anchor.satoshis);