Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
invoiecs: fix value conversion bug in AddHodlInvoice
Before this commit, callers wouldn't be able to use an msat amount as input to the hold invoice RPC call. Instead, the wrapper logic would always convert to msat first, causing a loss in precision. For most cases, sat amounts are fine, but some use cases require higher precision. We fix this by keeping the input value in mSat (as typed), while using the `ValueMsat` field as `lnd` would expect.
- Loading branch information