nayutaco/ptarmigan

receive channel_update before detect mining

Opened this issue · 0 comments

Receiving channel_update before ptarmd detect mining funding_tx skip saving to DB because ptarmd don't have short_channel_id yet.

ptarmdがfunding transactionがマイニングされたのを検出する前にchannel_updateを受信すると、自分がshort_channel_idを取得する前なので、相手からのchannel_updateだと認識できず破棄してしまう。
minimum_depthが1より大きい場合には発生しにくいが、testnet/regtestの場合はptarmdのminimum_depthを1にしているためfundeeになると起きやすい。