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>
7 years ago
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
7 years ago
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
7 years ago
Christian Decker
b2cec18a81
contrib: Add the addrtype argument to newaddr
Signed-off-by: Christian Decker <decker.christian@gmail.com>
7 years ago
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>
7 years ago
gdassori
7101db060b
add mutually exclusive bolt11 & payment_hash to listpayments method
7 years ago
gdassori
b9b0b7ebe0
fix LightningRpc signatures according to tests
7 years ago
gdassori
bdcf38442b
add port argument in connect, add getpeer method for test convenience
7 years ago
gdassori
67dbe71dfa
update pylightning readme installation informations
7 years ago
gdassori
825ccb33a6
version bump
7 years ago
gdassori
51a491ef74
same methods of lightning-cli in pylightning
7 years ago
Christian Decker
0223d836ac
contrib: Updated bitcoind in CI builder image to 0.15.1
Signed-off-by: Christian Decker <decker.christian@gmail.com>
7 years ago
alaniz
5421e9f6f2
pylightning: Add and move example to README
7 years ago
Tomas Stary
e2d66136d3
adding the bash completition script for the client
7 years ago
Rusty Russell
cf54f23947
JSONRPC: add id argument to listpeers.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
7 years ago
Rusty Russell
5698a133c2
JSONRPC: rename getpeers to listpeers.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
7 years ago
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>
7 years ago
Christian Decker
00e75d3d81
pylightning: Bumped version to 0.0.2
7 years ago
practicalswift
f9b8a007d5
Remove unused imports
7 years ago
Christian Decker
0574d68c97
docker: Added pytest-groups plugin to builder image
7 years ago
Christian Decker
34444a99f9
docker: Added clang to build dependencies
7 years ago
practicalswift
0353ec0983
Remove trailing whitespace
7 years ago
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>
7 years ago
Konstantin Nick
62ca15d6aa
Fix python-api example
7 years ago
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>
7 years ago
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>
7 years ago
Christian Decker
e56ca11624
docker: Added 32bit travis builder dockerfile
7 years ago
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>
7 years ago
Rusty Russell
88bb38f63b
daemon/lightningd: remove building, and main files
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
7 years ago
Rusty Russell
be3b5f11e8
contrib/pylightning: allow getpeer with log level.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
8 years ago
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.
8 years ago
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.
8 years ago
Christian Decker
225f29abf4
pylightning: RPC returns a failure if the connection is lost
8 years ago
Christian Decker
9c7c2a3f2f
pytest: Added simple pytest for the new JSON-RPC
8 years ago
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.
8 years ago
Christian Decker
cd9bb9b014
contrib: Implemented python RPC client
8 years ago
Rusty Russell
1b6012879b
contrib/lightning-pay: helper to make a payment.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
8 years ago
Rusty Russell
76ac978df4
contrib/lightning-open-channel: helper to open a channel.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
8 years ago