feat: payment processor #597
Labels
No labels
DB & Storage
Deployment
Error Handling & Logging
Maintenance
Payment Backend
backport
backport v0.13.x
backport v0.14.x
backport v0.15.x
bindings
blocked
bug
cdk-sql
ci
cli
deps
documentation
duplicate
enhancement
good first issue
help wanted
invalid
keep-open
ldk-node-ui
migrations
mint
mutation-testing
needs rebase
needs review
new nut
nut change
question
ready
rust-version
rustfmt
stacked hold
stale
testing
wallet
weekly-report
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
cashubtc/cdk!597
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "refactor_payment_processor"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
Notes to the reviewers
Suggested CHANGELOG Updates
CHANGED
ADDED
REMOVED
FIXED
Checklist
just final-checkbefore committing@ -265,3 +265,3 @@#[error(transparent)]Database(#[from] crate::database::Error),/// Lightning Error/// Payment Errorunwrap()->?@ -0,0 +1,5 @@fn main() -> Result<(), Box<dyn std::error::Error>> {@ -0,0 +1,299 @@use std::path::PathBuf;unwrap()should be replaced with?@ -0,0 +1,345 @@use std::net::SocketAddr;unwrap()->?@ -0,0 +1,113 @@syntax = "proto3";\nmissing@ -27,7 +29,9 @@ pub struct MintBuilder {/// Mint Storage backendDo you plan to make this more generic with on-chain?
@ -27,7 +29,9 @@ pub struct MintBuilder {/// Mint Storage backendYes, the plan is to use this trait for all payment backends. If we looks at the ones I created for bolt12 and onchain. I think we can use what we have here without modify it but there would be some unused fields. The problem as I see it is to make it really general for everything we could just use
Valuebut this loses typing so Ideally we don't do this though I did use it for the settings endpoint. But if we try to create types now to make it more general for things we dont support yet (onchain, bolt11) we may need to end up chaining them later anyway. So I think its best to keep the grpc api pretty close to what we know we need and currently support, bolt11, and then make changes when we know we need them and what changes we need to support bolt12, and onchain or whatever else.That being said I'm certainly open if you have suggestions to the api at this point as I mostly just reused what we had in the previous trait.
@ -27,7 +29,9 @@ pub struct MintBuilder {/// Mint Storage backendThe trait is well-defined. Should the
LnKeystruct be made more generic now or later?@ -27,7 +29,9 @@ pub struct MintBuilder {/// Mint Storage backendGood catch f46d84e631148bd4ebe5c8343c63ee405f8913e0
Had another look at it, looks good.