Skip to content
This repository has been archived by the owner on Oct 19, 2021. It is now read-only.

receive channel_update before detect mining #1627

Open
nayuta-ueno opened this issue Oct 24, 2019 · 0 comments
Open

receive channel_update before detect mining #1627

nayuta-ueno opened this issue Oct 24, 2019 · 0 comments

Comments

@nayuta-ueno
Copy link
Contributor

nayuta-ueno commented Oct 24, 2019

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になると起きやすい。

nayuta-ueno added a commit to nayuta-ueno/ptarmigan that referenced this issue Oct 24, 2019
save all channel_update
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant