]> git.bitcoin.ninja Git - rust-lightning/commit
Make `Score : Writeable` in c_bindings and impl on `LockedScore`
authorMatt Corallo <git@bluematt.me>
Mon, 22 Nov 2021 03:27:17 +0000 (03:27 +0000)
committerMatt Corallo <git@bluematt.me>
Wed, 24 Nov 2021 19:08:12 +0000 (19:08 +0000)
commita173ded03f84193f8da14301e81fdec419c5e441
tree32bb56b9676899751bd624a7488d738614a2a852
parent016eb96fc7170bdbab238292d3cc9338c2a66eb9
Make `Score : Writeable` in c_bindings and impl on `LockedScore`

Ultimately we likely need to wrap the locked `Score` in a struct
that exposes writeable somehow, but because all traits have to be
fully concretized for C bindings we'll still need `Writeable` on
all `Score` in order to expose `Writeable` on the locked score.
Otherwise, we'll only have a `LockedScore` with a `Score` visible
that only has the `Score` methods, never the original type.
lightning-invoice/src/payment.rs
lightning/src/routing/router.rs
lightning/src/routing/scoring.rs