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:
Rusty Russell 2020-05-15 11:03:07 +09:30 committed by Christian Decker
parent 9845eb41a9
commit e0517a1022

View File

@ -106,9 +106,10 @@ static struct lightningd *new_lightningd(const tal_t *ctx)
* the entire subtree rooted at that node to be freed.
*
* 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
* `struct bitcoin_tx_input`; they are allocated off the `struct
* bitcoind_tx`, so freeing the `struct bitcoind_tx` frees them all.
* For example, a `struct lightningd` has a pointer to a `log_book`
* which is allocated off the `struct lightnintd`, and has its own
* internal members allocated off `log_book`: freeing `struct
* lightningd` frees them all.
*
* In this case, freeing `ctx` will free `ld`:
*/