From ueno at nayuta.co Tue May 15 14:54:08 2018 From: ueno at nayuta.co (Hiroshi Ueno) Date: Tue, 15 May 2018 23:54:08 +0900 Subject: [Lightning-dev] Receiving via unpublished channels In-Reply-To: References: <5f9fd03c-6753-65a2-3f25-7556bede9a42@nayuta.co> <7f12f7b3-7002-b963-a04f-f2bbfe049429@nayuta.co> Message-ID: Hello ZmnSCPxj, > Payee has incentive to give accurate information about the channel. I understand. Thank you very much. Regards, nayuta-ueno On 2018/05/15 23:23, ZmnSCPxj wrote: > Good morning nayuto-ueno, > >> `r` field doesn't contain signature like `channel_update`. >> >> Do c-lightning check something in the `r` field from payee's invoice? >> > > No. Invoice has signature for whole invoice. Of course, only payee signature (fee of this channel is fee from the peer of the payee, e.g. hub). > > Payee has incentive to give accurate information about the channel. Otherwise payment may fail if the channel fees or CLTV-delta, is not same as wanted by the peer of the payee. So only payee signature should be enough; if payee gives bad information about this channel, payee loses on getting paid. > > Regards, > ZmnSCPxj >