]> git.bitcoin.ninja Git - rust-lightning/commit
Move `Rout{ingFees,eHint{,Hop}}` to `lightning-types`
authorMatt Corallo <git@bluematt.me>
Fri, 9 Aug 2024 00:29:25 +0000 (00:29 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 13 Aug 2024 12:54:59 +0000 (12:54 +0000)
commitb97d742f91fdb9cee8ecccb10f1fef3edb5c4600
tree59ecfca0ace419a649d1b55adc3b8f8f4855dd22
parent4624caf5a20b0329160e872259911a57eb451634
Move `Rout{ingFees,eHint{,Hop}}` to `lightning-types`

`lightning-invoice` currently has a dependency on the entire
`lightning` crate just because it wants to use some of the useful
types from it. This is obviously backwards and leads to some
awkwardness like the BOLT 11 invoice signing API in the `lightning`
crate taking a `[u5]` rather than a `Bolt11Invoice`.

This takes one more step, moving the routing types
`lightning-invoice` uses into `lightning-types`.
lightning-types/src/lib.rs
lightning-types/src/routing.rs [new file with mode: 0644]
lightning/src/routing/gossip.rs
lightning/src/routing/router.rs