opt_bits: parsing routines for 'bits' == 100 satoshi.

Also fix open-channel usage message.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2015-06-07 13:51:09 +09:30
parent 126192a842
commit fc8552318a
4 changed files with 32 additions and 20 deletions

9
opt_bits.h Normal file
View File

@@ -0,0 +1,9 @@
#ifndef LIGHTNING_OPT_BITS_H
#define LIGHTNING_OPT_BITS_H
#include <ccan/opt/opt.h>
#include <ccan/short_types/short_types.h>
char *opt_set_bits(const char *arg, u64 *satoshi);
void opt_show_bits(char buf[OPT_SHOW_LEN], const u64 *bits);
#endif /* LIGHTNING_OPT_BITS_H */