rust-lightning
rust-lightning copied to clipboard
A highly modular Bitcoin Lightning library written in Rust. It's rust-lightning, not Rusty's Lightning!
The naive issues with running before we have finished chain sync are not an issue - if we step the channel after the peer has broadcasted the peer has revoked...
In [`WatchedOutput::block_hash`](https://docs.rs/lightning/latest/lightning/chain/struct.WatchedOutput.html#structfield.block_hash) we return the "[f]irst block where the transaction output may have been spent." However, we only set this `Some` when we initially process the parent transaction: https://github.com/lightningdevkit/rust-lightning/blob/1fdb052afc0a7200f31c806a2c3e0932f1914170/lightning/src/chain/chainmonitor.rs#L319 but...
This could throw off our closing signed stuff, and its just confusing, and already forbidden, so we should just forbid it too. Spec says: ``` if no HTLCs remain in...
cc https://github.com/lightning/bolts/issues/964 but we need to update our shutdown sending/handling - we should accept a shutdown even if there's pending updates, and we also need to consider update_fail/update_fail_malformed and update_fee...
It's kind of confusing that we have different lower bounds for channel parameters, such as capacity. For example, while `ChannelHandshakeLimits::min_funding_satoshis` defaults to 0 and hence indicates that there is no...
It should be checking if `low == usize::MAX as u64` not `low == 0`. Should be harmless cause our uses of it shouldn't care about the value, only that its...
After handling #2706 locally, 44% of my allocations locally are from path building when using the MonitorUpdatingPersister! That's obviously nuts, and luckily we can cut this down with careful buffer...
We currently panic in spend_spendable_outputs if the script doesn't match, which is a bit strange given we tell users explicitly they should override the coop close scripts. Instead we should...
When receiving a payment through (a) channel(s) that was opened by the remote node, it is rightfully being [checked that the sender doesn't send so much funds that the channel...
These are returned in `PaymentClaimable` but we don't know if the payment will actually be claimed, would be nice to have this on the `PaymentClaimed` event as well so we...