mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-22 00:24:19 +01:00
committed by
Rusty Russell
parent
b287f2f007
commit
73ea6d0038
2
Makefile
2
Makefile
@@ -9,7 +9,7 @@ CCANDIR := ccan
|
|||||||
|
|
||||||
# Where we keep the BOLT RFCs
|
# Where we keep the BOLT RFCs
|
||||||
BOLTDIR := ../lightning-rfc/
|
BOLTDIR := ../lightning-rfc/
|
||||||
BOLTVERSION := 21e3688e843f82267b3970cda69fa93158dc9517
|
BOLTVERSION := 4b62d26af93a07166d6a9de2cb5eff80849d9c19
|
||||||
|
|
||||||
-include config.vars
|
-include config.vars
|
||||||
|
|
||||||
|
|||||||
@@ -440,7 +440,6 @@ static u8 *funder_channel(struct state *state,
|
|||||||
/* BOLT #2:
|
/* BOLT #2:
|
||||||
*
|
*
|
||||||
* The receiver:
|
* The receiver:
|
||||||
*...
|
|
||||||
* - if `minimum_depth` is unreasonably large:
|
* - if `minimum_depth` is unreasonably large:
|
||||||
* - MAY reject the channel.
|
* - MAY reject the channel.
|
||||||
*/
|
*/
|
||||||
@@ -704,10 +703,9 @@ static u8 *fundee_channel(struct state *state, const u8 *open_channel_msg)
|
|||||||
|
|
||||||
/* BOLT #2:
|
/* BOLT #2:
|
||||||
*
|
*
|
||||||
* The receiver:
|
* The receiving node MUST fail the channel if:
|
||||||
* - if the `chain_hash` value, within the `open_channel`, message is
|
* - the `chain_hash` value is set to a hash of a chain
|
||||||
* set to a hash of a chain that is unknown to the receiver:
|
* that is unknown to the receiver.
|
||||||
* - MUST reject the channel.
|
|
||||||
*/
|
*/
|
||||||
if (!bitcoin_blkid_eq(&chain_hash,
|
if (!bitcoin_blkid_eq(&chain_hash,
|
||||||
&state->chainparams->genesis_blockhash)) {
|
&state->chainparams->genesis_blockhash)) {
|
||||||
@@ -733,6 +731,7 @@ static u8 *fundee_channel(struct state *state, const u8 *open_channel_msg)
|
|||||||
/* BOLT #2:
|
/* BOLT #2:
|
||||||
*
|
*
|
||||||
* The receiving node MUST fail the channel if:
|
* The receiving node MUST fail the channel if:
|
||||||
|
* ...
|
||||||
* - `push_msat` is greater than `funding_satoshis` * 1000.
|
* - `push_msat` is greater than `funding_satoshis` * 1000.
|
||||||
*/
|
*/
|
||||||
if (state->push_msat > state->funding_satoshis * 1000) {
|
if (state->push_msat > state->funding_satoshis * 1000) {
|
||||||
|
|||||||
Reference in New Issue
Block a user