Christian Decker
f5147f27c9
gossip: Added message for unsuccessful connection attempts
Signed-off-by: Christian Decker <decker.christian@gmail.com>
7 years ago
Ronald van der Meer
6a9f40f7cc
Different states explained
7 years ago
rvandermeer
4c0f7dbd04
Spelling corrections ( #824 )
* Small spelling fixes, and clarity for 'iff'
[ Squashed commit --RR ]
7 years ago
ZmnSCPxj
8f5584d7d6
peer_control: Correct roundoff of remote-side msatoshi.
Fixes : #818
7 years ago
practicalswift
7e8f1945f2
Adjust tests to new log text
7 years ago
practicalswift
689db5b7c1
Onboarding: Make log output texts friendlier to new users
7 years ago
Christian Decker
92ce3d5e8d
opts: Declare --port to be an early arg
There is an interaction between --ipaddr and --port, namely that the
default port is used when parsing --ipaddr if --port comes after the
--ipaddr, and --port is used if it comes before it. Adding a port to
--ipaddr still trumps everything else, but this way we correctly set
port in the address.
Reported-by: Wladimir J. van der Laan @laanwj
Signed-off-by: Christian Decker <decker.christian@gmail.com>
7 years ago
Ephraim Raj
a095a59083
Allow pong when in CHANNELD_AWAITING_LOCKIN
Right now it allows ping but not pong.
If A sends a ping expecting a pong to B during CHANNELD_AWAITING_LOCKIN,
It would result in
`STATUS_FAIL_PEER_BAD: WIRE_PONG (19) before funding locked`
resulting in a unilateral channel close by A.
7 years ago
Luca Vaccaro
af26c91a2c
Add litecoin testnet support
7 years ago
practicalswift
9f47c0431a
Fix typos
7 years ago
luca vaccaro
d36fa33c9b
Explain table vars ( #792 )
* Database Table vars
Explain Database Table vars and bip32_max_index variable.
7 years ago
ZmnSCPxj
d03ca59f80
jsonrpc: Report standard JSON-RPC 2.0 error codes.
7 years ago
ZmnSCPxj
e1d17e92e0
jsonrpc: Implement command_fail_detailed.
7 years ago
ZmnSCPxj
551dfedc4a
jsonrpc: Internal: Support changing the error code internally.
7 years ago
ZmnSCPxj
b2133e969f
jsonrpc: Trivial compliance with JSON-RPC Error Object.
7 years ago
ZmnSCPxj
8c527f3931
common/json: Implement json_add_snum for signed numbers.
7 years ago
Christian Decker
1da27c51c2
gossip: Remove annoying nonlocal_gossip_broadcast_done status
Reported-by: @RvMP
Signed-off-by: Christian Decker <decker.christian@gmail.com>
7 years ago
Christian Decker
a7a6b4646a
json-rpc: Remove alarming debug statement
People keep on stumbling over this, since it's rather alarming.
Signed-off-by: Christian Decker <decker.christian@gmail.com>
7 years ago
Christian Decker
3d2ef44064
gossipd: Do not report bind failures for IPv4
7 years ago
Christian Decker
8bf9f28a79
doc: Specify that pruned nodes do not work currently
7 years ago
Christian Decker
45c935ddba
pytest: Have the db_query helper work on a copy of the DB
Signed-off-by: Christian Decker <decker.christian@gmail.com>
7 years ago
Rusty Russell
24ba5d6250
channeld: don't spam with all our attempts to commit.
Reported-by: @jb55
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
7 years ago
Ronald van der Meer
8e087c1d71
clarified lightning-cli help dev-setfees description
7 years ago
Ronald van der Meer
fa992ecaab
clarified --lightning-dir syntax on help
7 years ago
William Casarin
5b4a62d822
doc: some sqlite db info for HACKING
Signed-off-by: William Casarin <jb55@jb55.com>
7 years ago
Christian Decker
6cfc0a6275
fixup! masterd: Disable a channel when channeld fails
7 years ago
Christian Decker
2e5047f74b
pytest: Fix test_pay_disconnect
We are now too quick in disabling the channel for us to attempt a
payment. We need to separate into getroute and sendpay to trigger this
now.
Signed-off-by: Christian Decker <decker.christian@gmail.com>
7 years ago
Christian Decker
dafd000c2a
pytest: Check that we disable on closing and permfail.
Signed-off-by: Christian Decker <decker.christian@gmail.com>
7 years ago
Christian Decker
e463386d75
masterd: Disable a channel when channeld fails
Signed-off-by: Christian Decker <decker.christian@gmail.com>
7 years ago
Christian Decker
007c349dec
gossip: Implement handler for enabling and disabling channels
Signed-off-by: Christian Decker <decker.christian@gmail.com>
7 years ago
Christian Decker
c6ae4b521f
gossip: Add message to enable and disable a channel
Signed-off-by: Christian Decker <decker.christian@gmail.com>
7 years ago
Christian Decker
d14969ce77
masterd: Peer has to know which direction an eventual channel is
Signed-off-by: Christian Decker <decker.christian@gmail.com>
7 years ago
Christian Decker
4f4b0e9bba
channeld: Tell gossipd when we get a shutdown message from a peer
Disabling the channel and enqueing the update for broadcast so we
don't get forwarding requests from remote peers, and we don't try to
ourselves.
Signed-off-by: Christian Decker <decker.christian@gmail.com>
7 years ago
Christian Decker
6320142c34
channeld: Send disabling channel_update on shutdown
Sends a disable channel_update before issuing the shutdown message,
gossipd will also take care to update others and not use for future
routes.
Signed-off-by: Christian Decker <decker.christian@gmail.com>
7 years ago
William Casarin
8aee38162c
doc: Nix{,OS} build instructions
Signed-off-by: William Casarin <jb55@jb55.com>
7 years ago
practicalswift
17aaa1d235
Fix lightning typos
7 years ago
practicalswift
3e40a48332
Add lightning spell check
7 years ago
practicalswift
2c17546cbd
Onboarding: Make "lightning-cli" (without arguments) output the equivalent of "lightning-cli --help; lightning-cli help"
New users invoking lightning-cli are likely interested in what RPC
commands they can invoke via the command.
7 years ago
Rusty Russell
bab3b1a16b
wallet: get first blocknum from any channels.
The previous tests didn't make sense anyway, but I think they were trying
to exclude onchain channels.
We delete completely forgotten channels anyway now, so we don't need
such testing.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
7 years ago
Rusty Russell
661950e402
wallet: fix logic for finding first block.
Over 20 years a professional C programmer, still can't count from zero!
Fixes : #709
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
7 years ago
Rusty Russell
e66bd25b5c
test_lightningd.py: test lockin while we're not running.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
7 years ago
Rusty Russell
9f9c34002e
chain_topology: log block height, not just hash.
Saves me a lookup.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
7 years ago
Rusty Russell
e9328217ff
peer_control: better logging when we don't tell peer about locked funding.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
7 years ago
Rusty Russell
c42fa4404a
connect: succeed if we connect to peer and it *doesn't* go back to gossipd.
The JSON connect command wouldn't terminate if peer reconnected
in a state CHANNELD_AWAITING_LOCKIN or above.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
7 years ago
practicalswift
b91556283b
Onboarding: Adjust log level for common non-fatal peer state condition from info to debug
7 years ago
practicalswift
3a8220d630
Warn instead of crash when extract_feerate(...) fails
Fixes : #722
7 years ago
practicalswift
0557467dfa
Adjust log level for feerate warnings
This condition seems to be triggered quite common on testnet, so no
need for warning floods unless we're running in debug mode :-)
7 years ago
Christian Decker
7b0d806d71
pytest: Check that we forget irrevocably settled channels
Signed-off-by: Christian Decker <decker.christian@gmail.com>
7 years ago
Christian Decker
9588c961bb
wallet: Forget channels that are irrevocably settled on-chain
Signed-off-by: Christian Decker <decker.christian@gmail.com>
7 years ago
Rusty Russell
f03dbde354
test_lightningd.py: Test 0-msatoshi pay
Based-on-patch-by: ZmnSCPxj <ZmnSCPxj@protonmail.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
7 years ago