Blockstream / greenlight

Build apps using self-custodial lightning nodes in the cloud
https://blockstream.github.io/greenlight/getting-started/
MIT License
109 stars 27 forks source link

signer: Pass policy rejections back to the node #484

Closed cdecker closed 1 month ago

cdecker commented 1 month ago

When the signer rejects a request we had no indication as to what went wrong until now. With this change we (a) send back the error as if it were a normal response and then (b) print the error in the logs, allowing us to collate the operations causing the rejection with the rejection itself.