Rusty Russell
86ecc6a058
onchaind: move wallet pubkey and private keys into globals.
As we start handling HTLCs, we need access to these from the
"wait_for_resolved" loop.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
7 years ago
Rusty Russell
2259faf3a9
onchaind: move feerate grinding into its own function.
We'll want to use this for htlc_success txs as well.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
7 years ago
Rusty Russell
561a73328b
onchaind: move keyset, feerate and dustlimit into global vars.
As we start handling HTLCs, we need access to these from the
"wait_for_resolved" loop.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
7 years ago
Rusty Russell
ef28b6112c
status: use common status codes for all the failures.
This change is really to allow us to have a --dev-fail-on-subdaemon-fail option
so we can handle failures from subdaemons generically.
It also neatens handling so we can have an explicit callback for "peer
did something wrong" (which matters if we want to close the channel in
that case).
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
8 years ago
Christian Decker
4b59c4f857
fix: Do not assume size_t == u64
This was causing some compilation trouble on 32bit systems, see #256 .
Reported-by: @shsmith
Signed-off-by: Christian Decker <decker.christian@gmail.com>
8 years ago
Rusty Russell
bbed5e3411
Rename subdaemons, move them into top level.
We leave the *build* results in lightningd/ for ease of in-place testing though.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
8 years ago