Browse Source

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>
nifty/pset-pre
Rusty Russell 5 years ago
committed by Christian Decker
parent
commit
e0517a1022
  1. 7
      lightningd/lightningd.c

7
lightningd/lightningd.c

@ -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`:
*/

Loading…
Cancel
Save