]> git.bitcoin.ninja Git - rust-lightning/commit
Rename HTLC `onchain_value_satoshis` to `htlc_value_satoshis`
authorMatt Corallo <git@bluematt.me>
Thu, 19 May 2022 00:56:16 +0000 (00:56 +0000)
committerMatt Corallo <git@bluematt.me>
Thu, 26 May 2022 00:50:30 +0000 (00:50 +0000)
commit78c3080537a0ed54bc3b105790b046f938379a2f
treecd21deec604add7fd9e355d59501f31026b552b9
parenta847809b5a6eac7272ac01ed4da6264f2fa19a54
Rename HTLC `onchain_value_satoshis` to `htlc_value_satoshis`

In `HTLCUpdate` and `OnchainEvent` tracking, we store the HTLC
value (rounded down to whole satoshis). This is somewhat
confusingly referred to as the `onchain_value_satoshis` even though
it refers to the commitment transaction output value, not the value
available on chain (which may have been reduced by an
HTLC-Timeout/HTLC-Success transaction).
lightning/src/chain/channelmonitor.rs
lightning/src/ln/channelmanager.rs