The current time of 500ms can be too low if for example the network conditions are poor.
This increases the timeout window to 10s which should be sufficient to cover any scenarios.
Coverage decreased (-0.1%) to 72.237% when pulling 5fadb5569db680e0423682661b8e1e2c4280a964 on hsjoberg:inv-timeout-increase into 5e09bd9b5d65e90c6ff07aa11b3b9d80d42afb86 on lightninglabs:master.
The current time of 500ms can be too low if for example the network conditions are poor. This increases the timeout window to 10s which should be sufficient to cover any scenarios.
This has been causing real issues with lnd (and bitcoind) where
SendCoins
and channel openings wouldn't get broadcasted. https://github.com/lightningnetwork/lnd/issues/5130 https://github.com/hsjoberg/blixt-wallet/issues/278@wpaulino I've removed your TODO-message which was directly related to this issue, if that's okay with you.
Cheers!