You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Rusty Russell
16d5015d56
lightningd: fix shutdown with unconfirmed channel.
We free the peers explicitly, but we don't free the unconfirmed channel:
the result is that it gets freed twice.
The workaround is to free the unconfirmed channel explicitly, but really
the peer should be tal_link'ed as it's basically a reference counted
structure.
1.974911451 lightningd(17906):INFO: 03b4bca72572889d4b44cd0f194f73d54972af367e1917579283122ee10fa05f54 chan #1: Owning subdaemon lightning_openingd died (62464)
1.980118094 lightningd(17906):BROKEN: FATAL SIGNAL 6
1.980150447 lightningd(17906):BROKEN: backtrace: common/daemon.c:42 (crashdump) 0x432ba0
1.980161268 lightningd(17906):BROKEN: backtrace: (null):0 ((null)) 0x7faeb18ff4af
1.980167045 lightningd(17906):BROKEN: backtrace: (null):0 ((null)) 0x7faeb18ff428
1.980171271 lightningd(17906):BROKEN: backtrace: (null):0 ((null)) 0x7faeb1901029
1.980175847 lightningd(17906):BROKEN: backtrace: ccan/ccan/tal/tal.c:98 (call_error) 0x47543e
1.980181814 lightningd(17906):BROKEN: backtrace: ccan/ccan/tal/tal.c:170 (check_bounds) 0x4755fb
1.980188065 lightningd(17906):BROKEN: backtrace: ccan/ccan/tal/tal.c:180 (to_tal_hdr) 0x475649
1.980193756 lightningd(17906):BROKEN: backtrace: ccan/ccan/tal/tal.c:504 (tal_free) 0x47600d
1.980199402 lightningd(17906):BROKEN: backtrace: lightningd/peer_control.c:118 (delete_peer) 0x423990
1.980205498 lightningd(17906):BROKEN: backtrace: lightningd/opening_control.c:574 (destroy_uncommitted_channel) 0x419df3
1.980212380 lightningd(17906):BROKEN: backtrace: ccan/ccan/tal/tal.c:240 (notify) 0x4757b0
1.980218052 lightningd(17906):BROKEN: backtrace: ccan/ccan/tal/tal.c:400 (del_tree) 0x475c61
1.980223398 lightningd(17906):BROKEN: backtrace: ccan/ccan/tal/tal.c:511 (tal_free) 0x476093
1.980229174 lightningd(17906):BROKEN: backtrace: lightningd/opening_control.c:549 (opening_channel_errmsg) 0x419d1a
1.980236227 lightningd(17906):BROKEN: backtrace: lightningd/subd.c:590 (destroy_subd) 0x42cf43
1.980242348 lightningd(17906):BROKEN: backtrace: ccan/ccan/tal/tal.c:240 (notify) 0x4757b0
1.980247771 lightningd(17906):BROKEN: backtrace: ccan/ccan/tal/tal.c:400 (del_tree) 0x475c61
1.980252814 lightningd(17906):BROKEN: backtrace: ccan/ccan/tal/tal.c:410 (del_tree) 0x475cb1
1.980258356 lightningd(17906):BROKEN: backtrace: ccan/ccan/tal/tal.c:410 (del_tree) 0x475cb1
1.980263311 lightningd(17906):BROKEN: backtrace: ccan/ccan/tal/tal.c:511 (tal_free) 0x476093
1.980269189 lightningd(17906):BROKEN: backtrace: lightningd/lightningd.c:412 (main) 0x4144ed
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
|
7 years ago |
.. |
test
|
openingd: ensure that initial channel can cover fees and reserve.
|
7 years ago |
.gitignore
|
handshaked: remove.
|
7 years ago |
Makefile
|
common/daemon: common routines for all daemons.
|
7 years ago |
bitcoind.c
|
Support debugging with lldb
|
7 years ago |
bitcoind.h
|
Add --bitcoin-rpcport option to pass to bitcoin-rpc
|
7 years ago |
build_utxos.c
|
Remove include in file foo.c that is already included in foo.h
|
7 years ago |
build_utxos.h
|
build_utxos: fix weight calculation, and make more accurate.
|
7 years ago |
chaintopology.c
|
topo: Remove in-memory txs from the block struct
|
7 years ago |
chaintopology.h
|
topo: Remove in-memory txs from the block struct
|
7 years ago |
channel.c
|
lightningd: --dev-no-reconnect needs to always suppress reconnection.
|
7 years ago |
channel.h
|
wallet: Add msatoshi_to_us_min and msatoshi_to_us_max statistics for channels.
|
7 years ago |
channel_control.c
|
lightningd: re-allow closing negotiation when CLOSINGD_COMPLETE
|
7 years ago |
channel_control.h
|
channeld: don't do explicit state update.
|
7 years ago |
channel_state.h
|
channel_states: fold all the ONCHAIND states into one.
|
7 years ago |
closing_control.c
|
lightningd: re-allow closing negotiation when CLOSINGD_COMPLETE
|
7 years ago |
closing_control.h
|
lightningd: re-allow closing negotiation when CLOSINGD_COMPLETE
|
7 years ago |
connect_control.c
|
Reduce variable scopes
|
7 years ago |
connect_control.h
|
lightningd/peer_control: reorder, move more functions out.
|
7 years ago |
dev_ping.c
|
lightningd/json: Move json helpers specific for lightningd to new module.
|
7 years ago |
gossip_control.c
|
gossipd: finish startup before master prints that it's ready.
|
7 years ago |
gossip_control.h
|
gossip: Add function to notify gossipd about an outpoint spend
|
7 years ago |
gossip_msg.c
|
change spaces to tabs, align function parameters
|
7 years ago |
gossip_msg.h
|
jsonrpc: Return the channel capacity for listchannels
|
7 years ago |
hsm_control.c
|
utils: remove tal_tmpctx altogether, use global.
|
7 years ago |
hsm_control.h
|
lightningd/hsm_control: use a simple fd for HSM.
|
8 years ago |
htlc_end.c
|
Remove unused parameter ptr in corrupt(const void *ptr, ...)
|
7 years ago |
htlc_end.h
|
htlc: keep channel pointer, not peer pointer.
|
7 years ago |
invoice.c
|
bolt11: allow multiple fallback addresses.
|
7 years ago |
invoice.h
|
invoices: Extensive reorganization of invoice system.
|
7 years ago |
json.c
|
pay: Also record how much we actually ended up sending.
|
7 years ago |
json.h
|
Use expected LIGHTNING_DIR_FILE_H define
|
7 years ago |
jsonrpc.c
|
Reduce variable scopes
|
7 years ago |
jsonrpc.h
|
lightningd/json: Move json helpers specific for lightningd to new module.
|
7 years ago |
jsonrpc_errors.h
|
Use expected LIGHTNING_DIR_FILE_H define
|
7 years ago |
lightningd.c
|
lightningd: fix shutdown with unconfirmed channel.
|
7 years ago |
lightningd.h
|
json_fundchannel: fix release vs connect/nongossip race.
|
7 years ago |
log.c
|
common/daemon: common routines for all daemons.
|
7 years ago |
log.h
|
common/daemon: common routines for all daemons.
|
7 years ago |
log_status.c
|
tools/generate-wire.py: remove length argument from fromwire_ routines.
|
7 years ago |
log_status.h
|
status: add multiple levels of logging.
|
7 years ago |
memdump.c
|
memdump: fix overzealous assertions from b857b2e8438ad86f6c69c40ec3e4db3ab6a4542a
|
7 years ago |
netaddress.c
|
lightningd: remove ltmp context now we have tmpctx.
|
7 years ago |
netaddress.h
|
wireaddr: add ip[:port] parsing
|
7 years ago |
onchain_control.c
|
txwatch: Switch to passing only txid into the depth callbacks
|
7 years ago |
onchain_control.h
|
txwatch: remove unused callback arg, hide struct definitions.
|
7 years ago |
opening_control.c
|
json_fundchannel: fix release vs connect/nongossip race.
|
7 years ago |
opening_control.h
|
json_fundchannel: fix release vs connect/nongossip race.
|
7 years ago |
opt_time.c
|
Remove unused functions not covered by unit tests
|
7 years ago |
opt_time.h
|
Remove unused functions not covered by unit tests
|
7 years ago |
options.c
|
common/json_escaped: new type which explicitly notes a string is already JSON.
|
7 years ago |
options.h
|
lightningd: --deprecated-api option to turn off deprecated APIs.
|
7 years ago |
pay.c
|
wallet, payalgo: Save detail of payment failures for later reporting. (#1345)
|
7 years ago |
pay.h
|
pay: Let `sendpay` modify the recorded `msatoshi` of payments.
|
7 years ago |
payalgo.c
|
payalgo: Describe `maxdelay` argument of `pay`.
|
7 years ago |
payalgo.h
|
payalgo: New file for pay command.
|
7 years ago |
peer_control.c
|
lightningd: re-allow closing negotiation when CLOSINGD_COMPLETE
|
7 years ago |
peer_control.h
|
lightningd: --dev-no-reconnect needs to always suppress reconnection.
|
7 years ago |
peer_htlcs.c
|
wallet: Add msatoshi_to_us_min and msatoshi_to_us_max statistics for channels.
|
7 years ago |
peer_htlcs.h
|
lightningd/peer_control: reorder, move more functions out.
|
7 years ago |
subd.c
|
lightningd/subd.h: Add missing wire/wire.h.
|
7 years ago |
subd.h
|
lightningd/subd.h: Add missing wire/wire.h.
|
7 years ago |
watch.c
|
topo: Remove in-memory txs from the block struct
|
7 years ago |
watch.h
|
topo: Remove in-memory txs from the block struct
|
7 years ago |