Browse Source

bitcoind: trivial cleanups.

Remove commented-out code, and unnecessary tmpctx.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ppa-0.6.1
Rusty Russell 7 years ago
parent
commit
bbdab02e1b
  1. 16
      lightningd/bitcoind.c

16
lightningd/bitcoind.c

@ -570,14 +570,6 @@ static void process_getblock(struct bitcoin_cli *bcli)
go->cb = cb;
/* Now get the raw tx output. */
bitcoind_gettxout(bcli->bitcoind, &txid, go->outnum, process_get_output, go);
/*
start_bitcoin_cli(bcli->bitcoind, NULL,
process_gettxout, true, process_get_output, go,
"gettxout",
take(type_to_string(go, struct bitcoin_txid, &txid)),
take(tal_fmt(go, "%u", go->outnum)),
NULL);
*/
}
static void process_getblockhash_for_txout(struct bitcoin_cli *bcli)
@ -670,16 +662,12 @@ void bitcoind_gettxout(struct bitcoind *bitcoind,
void *arg),
void *arg)
{
tal_t *tmpctx = tal_tmpctx(bitcoind);
start_bitcoin_cli(bitcoind, NULL,
process_gettxout, true, cb, arg,
"gettxout",
take(type_to_string(tmpctx, struct bitcoin_txid, txid)),
take(tal_fmt(tmpctx, "%u", outnum)),
take(type_to_string(NULL, struct bitcoin_txid, txid)),
take(tal_fmt(NULL, "%u", outnum)),
NULL);
tal_free(tmpctx);
}
static void destroy_bitcoind(struct bitcoind *bitcoind)

Loading…
Cancel
Save