hsjoberg / blixt-wallet

Bitcoin Lightning Wallet with focus on usability and user experience
https://blixtwallet.github.io
MIT License
383 stars 68 forks source link

htlc() has an expiry that's too soon #337

Open deafboy opened 3 years ago

deafboy commented 3 years ago

This happens during invoice payment using a freshly opened channel. Initiator: Blixit Wallet testnet 0.2.3 Peer: LND 0.13.0-beta

Blixit log: Couldn't attach a text log due to https://github.com/hsjoberg/blixt-wallet/issues/336 AFU_n8pmQPG-6TtUsv3LRw_small DM3MBwOCSpK8Wt1PN9fgOg_small

LND log:

2021-06-26 16:07:18.012 [ERR] HSWC: ChannelLink(1488601:333:0): htlc(d37e0e976c7a380dbb472edbf6e3cb7a0f6b33c04314cff743a2a06e5cc78b68) has an expiry that's too soon: outgoing_expiry=2006438, best_height=2006447
2021-06-26 16:07:18.013 [ERR] HSWC: ChannelLink(1570046:91:0): htlc(d37e0e976c7a380dbb472edbf6e3cb7a0f6b33c04314cff743a2a06e5cc78b68) has an expiry that's too soon: outgoing_expiry=2006438, best_height=2006447
2021-06-26 16:07:18.013 [ERR] HSWC: ChannelLink(1571580:40:0): htlc(d37e0e976c7a380dbb472edbf6e3cb7a0f6b33c04314cff743a2a06e5cc78b68) has an expiry that's too soon: outgoing_expiry=2006438, best_height=2006447
2021-06-26 16:07:18.014 [ERR] HSWC: ChannelLink(1805711:13:0): htlc(d37e0e976c7a380dbb472edbf6e3cb7a0f6b33c04314cff743a2a06e5cc78b68) has an expiry that's too soon: outgoing_expiry=2006438, best_height=2006447
2021-06-26 16:07:18.014 [ERR] HSWC: ChannelLink(1414899:88:0): htlc(d37e0e976c7a380dbb472edbf6e3cb7a0f6b33c04314cff743a2a06e5cc78b68) has an expiry that's too soon: outgoing_expiry=2006438, best_height=2006447
2021-06-26 16:07:18.015 [ERR] HSWC: ChannelLink(1480310:137:0): htlc(d37e0e976c7a380dbb472edbf6e3cb7a0f6b33c04314cff743a2a06e5cc78b68) has an expiry that's too soon: outgoing_expiry=2006438, best_height=2006447
2021-06-26 16:07:18.015 [ERR] HSWC: ChannelLink(1415186:56:0): htlc(d37e0e976c7a380dbb472edbf6e3cb7a0f6b33c04314cff743a2a06e5cc78b68) has an expiry that's too soon: outgoing_expiry=2006438, best_height=2006447
2021-06-26 16:07:18.016 [ERR] HSWC: ChannelLink(1480100:98:0): htlc(d37e0e976c7a380dbb472edbf6e3cb7a0f6b33c04314cff743a2a06e5cc78b68) has an expiry that's too soon: outgoing_expiry=2006438, best_height=2006447
2021-06-26 16:07:18.017 [ERR] HSWC: ChannelLink(1806307:29:0): htlc(d37e0e976c7a380dbb472edbf6e3cb7a0f6b33c04314cff743a2a06e5cc78b68) has an expiry that's too soon: outgoing_expiry=2006438, best_height=2006447
2021-06-26 16:07:18.017 [ERR] HSWC: ChannelLink(1414813:68:1): htlc(d37e0e976c7a380dbb472edbf6e3cb7a0f6b33c04314cff743a2a06e5cc78b68) has an expiry that's too soon: outgoing_expiry=2006438, best_height=2006447
2021-06-26 16:07:18.018 [ERR] HSWC: ChannelLink(1414683:116:0): htlc(d37e0e976c7a380dbb472edbf6e3cb7a0f6b33c04314cff743a2a06e5cc78b68) has an expiry that's too soon: outgoing_expiry=2006438, best_height=2006447
2021-06-26 16:07:18.018 [ERR] HSWC: ChannelLink(1805422:50:0): htlc(d37e0e976c7a380dbb472edbf6e3cb7a0f6b33c04314cff743a2a06e5cc78b68) has an expiry that's too soon: outgoing_expiry=2006438, best_height=2006447
2021-06-26 16:07:18.019 [ERR] HSWC: ChannelLink(1569355:74:0): htlc(d37e0e976c7a380dbb472edbf6e3cb7a0f6b33c04314cff743a2a06e5cc78b68) has an expiry that's too soon: outgoing_expiry=2006438, best_height=2006447
2021-06-26 16:07:18.020 [ERR] HSWC: ChannelLink(1489793:41:0): htlc(d37e0e976c7a380dbb472edbf6e3cb7a0f6b33c04314cff743a2a06e5cc78b68) has an expiry that's too soon: outgoing_expiry=2006438, best_height=2006447
2021-06-26 16:07:18.020 [ERR] HSWC: ChannelLink(1415004:179:0): htlc(d37e0e976c7a380dbb472edbf6e3cb7a0f6b33c04314cff743a2a06e5cc78b68) has an expiry that's too soon: outgoing_expiry=2006438, best_height=2006447
2021-06-26 16:07:18.021 [ERR] HSWC: ChannelLink(1414744:77:1): htlc(d37e0e976c7a380dbb472edbf6e3cb7a0f6b33c04314cff743a2a06e5cc78b68) has an expiry that's too soon: outgoing_expiry=2006438, best_height=2006447
2021-06-26 16:07:18.044 [ERR] HSWC: ExpiryTooSoon(update=(lnwire.ChannelUpdate) {
 Signature: (lnwire.Sig) (len=64 cap=64) {
  00000000  31 dd 8a 3c 42 64 b3 cc  24 37 f4 e7 53 10 2b 28  |1..<Bd..$7..S.+(|
  00000010  a3 96 c4 ca 54 2c d5 dc  45 36 80 ca 0d 7c 4e 9e  |....T,..E6...|N.|
  00000020  69 32 69 a0 02 d7 a5 f9  01 d2 03 d7 13 72 8a e9  |i2i..........r..|
  00000030  1a 6d a4 23 99 80 c6 0c  cb 12 94 69 91 4e 84 9b  |.m.#.......i.N..|
 },
 ChainHash: (chainhash.Hash) (len=32 cap=32) 000000000933ea01ad0ee984209779baaec3ced90fa3f408719526f8d77f4943,
 ShortChannelID: (lnwire.ShortChannelID) 1480310:137:0,
 Timestamp: (uint32) 1624674844,
 MessageFlags: (lnwire.ChanUpdateMsgFlags) 00000001,
 ChannelFlags: (lnwire.ChanUpdateChanFlags) 00000000,
 TimeLockDelta: (uint16) 144,
 HtlcMinimumMsat: (lnwire.MilliSatoshi) 1000 mSAT,
 BaseFee: (uint32) 1,
 FeeRate: (uint32) 1000,
 HtlcMaximumMsat: (lnwire.MilliSatoshi) 16609443000 mSAT,
 ExtraOpaqueData: (lnwire.ExtraOpaqueData) {
 }
}

2021-06-26 16:07:18.044 [ERR] HSWC: Unhandled error while reforwarding htlc settle/fail over htlcswitch: ExpiryTooSoon(update=(lnwire.ChannelUpdate) {
 Signature: (lnwire.Sig) (len=64 cap=64) {
  00000000  31 dd 8a 3c 42 64 b3 cc  24 37 f4 e7 53 10 2b 28  |1..<Bd..$7..S.+(|
  00000010  a3 96 c4 ca 54 2c d5 dc  45 36 80 ca 0d 7c 4e 9e  |....T,..E6...|N.|
  00000020  69 32 69 a0 02 d7 a5 f9  01 d2 03 d7 13 72 8a e9  |i2i..........r..|
  00000030  1a 6d a4 23 99 80 c6 0c  cb 12 94 69 91 4e 84 9b  |.m.#.......i.N..|
 },
 ChainHash: (chainhash.Hash) (len=32 cap=32) 000000000933ea01ad0ee984209779baaec3ced90fa3f408719526f8d77f4943,
 ShortChannelID: (lnwire.ShortChannelID) 1480310:137:0,
 Timestamp: (uint32) 1624674844,
 MessageFlags: (lnwire.ChanUpdateMsgFlags) 00000001,
 ChannelFlags: (lnwire.ChanUpdateChanFlags) 00000000,
 TimeLockDelta: (uint16) 144,
 HtlcMinimumMsat: (lnwire.MilliSatoshi) 1000 mSAT,
 BaseFee: (uint32) 1,
 FeeRate: (uint32) 1000,
 HtlcMaximumMsat: (lnwire.MilliSatoshi) 16609443000 mSAT,
 ExtraOpaqueData: (lnwire.ExtraOpaqueData) {
 }
}

Maybe related to https://github.com/lightningnetwork/lnd/issues/5421

deafboy commented 3 years ago

The channel is operational in both directions now, as expected.