Douglas Schilling Landgraf
cb1a4a5180
pylightning: make flake8 happy
...
Trivial changes to make the code pythonic
Signed-off-by: Douglas Schilling Landgraf <dougsland@gmail.com>
2018-02-16 12:55:04 +01:00
Christian Decker
e48a97ffd4
pylightning: Filter out None arguments in JSON-RPC calls
...
Passing them in doesn't hurt, but better to avoid ambivalences.
Suggested-by: @graphite
Signed-off-by: Christian Decker <decker.christian@gmail.com>
2018-02-15 23:56:38 +00:00
Christian Decker
0e40b9b08c
pylightning: Switch to dict-based params instead of positional
...
Signed-off-by: Christian Decker <decker.christian@gmail.com>
Co-authored-by: Guido Dassori @gdassori
2018-02-15 23:56:38 +00:00
Christian Decker
ed2fee8977
pylightning: Added explicit logger to log to
...
Signed-off-by: Christian Decker <decker.christian@gmail.com>
Co-authored-by: Guido Dassori @gdassori
2018-02-15 23:56:38 +00:00
Christian Decker
b2cec18a81
contrib: Add the addrtype argument to newaddr
...
Signed-off-by: Christian Decker <decker.christian@gmail.com>
2018-02-06 01:37:58 +00:00
Rusty Russell
7fd5808803
contrib/lightning-cli.bash-completion: fix for new simpler help format.
...
Plus, we don't need awk *and* sed for this!
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2018-02-02 00:05:00 +01:00
gdassori
7101db060b
add mutually exclusive bolt11 & payment_hash to listpayments method
2018-01-31 12:38:18 +01:00
gdassori
b9b0b7ebe0
fix LightningRpc signatures according to tests
2018-01-31 12:38:18 +01:00
gdassori
bdcf38442b
add port argument in connect, add getpeer method for test convenience
2018-01-31 12:38:18 +01:00
gdassori
67dbe71dfa
update pylightning readme installation informations
2018-01-31 12:38:18 +01:00
gdassori
825ccb33a6
version bump
2018-01-31 12:38:18 +01:00
gdassori
51a491ef74
same methods of lightning-cli in pylightning
2018-01-31 12:38:18 +01:00
Christian Decker
0223d836ac
contrib: Updated bitcoind in CI builder image to 0.15.1
...
Signed-off-by: Christian Decker <decker.christian@gmail.com>
2018-01-29 20:35:59 +00:00
alaniz
5421e9f6f2
pylightning: Add and move example to README
2018-01-24 17:30:32 +01:00
Tomas Stary
e2d66136d3
adding the bash completition script for the client
2018-01-19 22:28:14 +00:00
Rusty Russell
cf54f23947
JSONRPC: add id argument to listpeers.
...
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2018-01-19 22:23:45 +00:00
Rusty Russell
5698a133c2
JSONRPC: rename getpeers to listpeers.
...
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2018-01-19 22:23:45 +00:00
Rusty Russell
66885163c9
JSON: Rename rhash to payment_hash in delinvoice, invoice, listinvoice, waitinvoice, waitanyinvoice.
...
'rhash' is the old terminology, but 'payment_preimage' and
'payment_hash' were decided on for the BOLTs, so we should fix that here.
We still use rhash internally, but that's much easier to fix.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2018-01-14 23:10:10 +00:00
Christian Decker
00e75d3d81
pylightning: Bumped version to 0.0.2
2018-01-10 03:52:46 +00:00
practicalswift
f9b8a007d5
Remove unused imports
2017-12-28 16:05:15 +01:00
Christian Decker
0574d68c97
docker: Added pytest-groups plugin to builder image
2017-12-21 22:43:24 +00:00
Christian Decker
34444a99f9
docker: Added clang to build dependencies
2017-12-12 02:31:03 +00:00
practicalswift
0353ec0983
Remove trailing whitespace
2017-12-11 03:35:59 +00:00
Christian Decker
bab0693fc4
contrib: Add py.test to builder Dockerfiles
...
With the previous commit this enables py.test on travis, which should
give us some better way of hunting down bugs on travis.
Signed-off-by: Christian Decker <decker.christian@gmail.com>
2017-11-10 02:20:00 +00:00
Konstantin Nick
62ca15d6aa
Fix python-api example
2017-11-06 10:24:09 +01:00
Christian Decker
847df2eb1d
contrib: Updated dockerfile to use bitcoind v0.15.1
...
This was causing intermittent `rawtransactiondecode` errors see
ElementsProject/lightning#332
Reported-by: @achow101
Signed-off-by: Christian Decker <decker.christian@gmail.com>
2017-10-31 19:30:54 +00:00
Rusty Russell
c9828d146a
contrib/lightning-open-channel: remove
...
It doesn't work on new lightningd anyway.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2017-10-20 18:31:32 +02:00
Christian Decker
e56ca11624
docker: Added 32bit travis builder dockerfile
2017-09-06 18:06:58 -07:00
Rusty Russell
8375857116
common: absorb remaining files from daemon/
...
Also, we split the more sophisticated json_add helpers to avoid pulling in
everything into lightning-cli, and unify the routines to print struct
short_channel_id (it's ':', not '/' too).
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2017-08-29 17:54:14 +02:00
Rusty Russell
88bb38f63b
daemon/lightningd: remove building, and main files
...
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2017-08-29 17:54:14 +02:00
Rusty Russell
be3b5f11e8
contrib/pylightning: allow getpeer with log level.
...
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2017-04-29 10:30:10 +02:00
Christian Decker
67315be673
travis: Simplified build script
...
The Dockerfile is now stored in contrib and built using the Docker
Hub. This allows us to simply pull in the finished image from the hub
instead of having to build it ourself. Should shave off about 2
minutes from the build time.
I also switched to running the individual build and check steps in
their own containers, but on the same volume, so travis can group the
commands and run them independently.
2017-04-29 10:29:44 +09:30
Christian Decker
4e0be7a48f
pytest: Added dynamic RPC call dispatch
...
Instead of having to define every single method we can now just call
any method, it'll fail upstream if it does not exist.
2017-04-24 05:18:11 +00:00
Christian Decker
225f29abf4
pylightning: RPC returns a failure if the connection is lost
2017-03-20 11:18:00 +10:30
Christian Decker
9c7c2a3f2f
pytest: Added simple pytest for the new JSON-RPC
2017-03-20 11:18:00 +10:30
Christian Decker
5f61b3a272
pytest: Separating new lightningd and legacy lightningd RPC client
...
We intend to ultimately no longer use the legacy `daemon/lightningd`
and instead use `lightningd/lightningd`, so I grouped the new RPC and
the legacy RPC and implemented stubs for the new daemon.
2017-01-23 10:37:34 +01:00
Christian Decker
cd9bb9b014
contrib: Implemented python RPC client
2017-01-23 10:45:36 +10:30
Rusty Russell
1b6012879b
contrib/lightning-pay: helper to make a payment.
...
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2016-10-19 12:02:27 +10:30
Rusty Russell
76ac978df4
contrib/lightning-open-channel: helper to open a channel.
...
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2016-10-19 12:01:27 +10:30