mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
doc: lightningd comment refers to obsolete bitcoin_tx.
It's now a wrapper for wally_tx, so update example. Reported-by: @niftynei Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Christian Decker
parent
9845eb41a9
commit
e0517a1022
@@ -106,9 +106,10 @@ static struct lightningd *new_lightningd(const tal_t *ctx)
|
|||||||
* the entire subtree rooted at that node to be freed.
|
* the entire subtree rooted at that node to be freed.
|
||||||
*
|
*
|
||||||
* It's incredibly useful for grouping object lifetimes, as we'll see.
|
* It's incredibly useful for grouping object lifetimes, as we'll see.
|
||||||
* For example, a `struct bitcoin_tx` has a pointer to an array of
|
* For example, a `struct lightningd` has a pointer to a `log_book`
|
||||||
* `struct bitcoin_tx_input`; they are allocated off the `struct
|
* which is allocated off the `struct lightnintd`, and has its own
|
||||||
* bitcoind_tx`, so freeing the `struct bitcoind_tx` frees them all.
|
* internal members allocated off `log_book`: freeing `struct
|
||||||
|
* lightningd` frees them all.
|
||||||
*
|
*
|
||||||
* In this case, freeing `ctx` will free `ld`:
|
* In this case, freeing `ctx` will free `ld`:
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user