]> git.bitcoin.ninja Git - rust-lightning/commit
[bindings] Make Transaction::data *mut instead of *const
authorMatt Corallo <git@bluematt.me>
Fri, 9 Oct 2020 01:25:25 +0000 (21:25 -0400)
committerMatt Corallo <git@bluematt.me>
Mon, 23 Nov 2020 16:08:34 +0000 (11:08 -0500)
commit78b4598ff6144d83fef941f86394c185dc30c82c
treebf87a3341dd49f62c304e7551f260327efebd1c5
parent90b668e426ab0a9867458369c9b4739e77f3596d
[bindings] Make Transaction::data *mut instead of *const

When the only reference to the transaction bytes is via
Transaction::data, my understanding of the C const rules is that
it would then be invalid to write to it. While its unlikely this
would ever pose an issue, its not hard to simply make it *mut, so
we do that here.
lightning-c-bindings/src/c_types/mod.rs