Closed s373nZ closed 3 weeks ago
TODO:
keysend
and the c implementation to be more sure changes are accurate.pay
plugin for maxfee
functionality to emulate, but determine whether this feature needs automated testing.Fixed the cln-grpc
Rust test. I didn't think a Draft PR would trigger all the CI. Apologies for the build spam.
Added tests and fixed some of the logic for default values of the other parameters.
The maxfee
handling logic is more or less a duplication of that found in the pay plugin. Perhaps this could be abstracted and shared? Will look into a little further, but I wonder where the appropriate place for that would be...
Sacrificed two semicolons to the flake8 gods.
Reran mssgen
and regenerated the documentation examples as per the docs for good measure. Used the following commands:
PYTHONPATH=contrib/msggen python contrib/msggen/msggen/__main__.py bundle doc/schemas/
PYTHONPATH=contrib/msggen python contrib/msggen/msggen/__main__.py generate
make check-gen-updated
rm -rf /tmp/ltests* && REGENERATE='keysend' VALGRIND=0 TIMEOUT=10 TEST_DEBUG=1 pytest -vvv -s -p no:logging -n 6 tests/autogenerate-rpc-examples.pyrm -rf /tmp/ltests* && REGENERATE='keysend' VALGRIND=0 TIMEOUT=10 TEST_DEBUG=1 pytest -vvv -s -p no:logging -n 6 tests/autogenerate-rpc-examples.py
make
~The CI build is currently failing, but observation suggests this is happening with all PR branches due to something in master
. Will keep an eye on the builds and continue to rebase.~ It looks like this change resulted in a successful build. AFAICT this is ready for an initial review.
Rebased, regenerated proto code and removed modifications to CHANGELOG.md
for Changelog-Added:
hint in commit message.
Add
maxfee
to keysend for consistency with payDescription
Adds
maxfee
parameter to keysend with similar functionality of that of pay. Needed to achieve more consistent behavior across API endpoints.Related Issues
Changes Made
maxfee
parameter to keysend with similar functionality of that of pay.Checklist
Ensure the following tasks are completed before submitting the PR:
test_pay.py
to test parameter validation, keysend over route exceedingmaxfee
, and keysend w/maxfee
set.TODOs
have been addressed or removed.Additional Notes
exemptfee
param, but realized order must be important for scripts. Regardless, I've added to the end of documented parameters for backward compatibility, yet there is a "hidden"dev_use_shadow
param appearing only in thecli
documentation which it appears before.