Skip to content

Commit

Permalink
fixup! invoice: Parse amounts without a multiplier as BTC not msats
Browse files Browse the repository at this point in the history
  • Loading branch information
cdecker committed Apr 9, 2020
1 parent 441c7ad commit 97309b3
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions common/bolt11.c
Original file line number Diff line number Diff line change
Expand Up @@ -616,13 +616,6 @@ struct bolt11 *bolt11_decode(const tal_t *ctx, const char *str,
*/
b11->msat = NULL;
} else {
/* BOLT #11:
*
* 2. amount: optional number in that currency, followed by an
* optional `multiplier` letter. The unit encoded here is the
* 'social' convention of a payment unit -- in the case of
* Bitcoin the unit is 'bitcoin' NOT satoshis.
*/
u64 m10 = 10 * MSAT_PER_BTC; /* Pico satoshis in a Bitcoin */
u64 amount;
char *end;
Expand Down

0 comments on commit 97309b3

Please sign in to comment.