mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-09 17:14:28 +01:00
committed by
Christian Decker
parent
e7e43cf9a5
commit
660c051068
2
Makefile
2
Makefile
@@ -44,7 +44,6 @@ BITCOIN_SRC := \
|
||||
BITCOIN_OBJS := $(BITCOIN_SRC:.c=.o)
|
||||
|
||||
CORE_SRC := \
|
||||
opt_bits.c \
|
||||
type_to_string.c \
|
||||
utils.c \
|
||||
version.c
|
||||
@@ -177,7 +176,6 @@ CORE_TX_HEADERS := close_tx.h \
|
||||
permute_tx.h
|
||||
|
||||
CORE_HEADERS := \
|
||||
opt_bits.h \
|
||||
overflows.h \
|
||||
type_to_string.h \
|
||||
utils.h \
|
||||
|
||||
20
opt_bits.c
20
opt_bits.c
@@ -1,20 +0,0 @@
|
||||
#include "opt_bits.h"
|
||||
|
||||
char *opt_set_bits(const char *arg, u64 *satoshi)
|
||||
{
|
||||
unsigned long long ll;
|
||||
char *ret = opt_set_ulonglongval_si(arg, &ll);
|
||||
if (ret)
|
||||
return ret;
|
||||
*satoshi = ll * 100;
|
||||
if (*satoshi / 100 != ll)
|
||||
return "Invalid number of bits";
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void opt_show_bits(char buf[OPT_SHOW_LEN], const u64 *bits)
|
||||
{
|
||||
unsigned long long ll = *bits / 100;
|
||||
opt_show_ulonglongval_si(buf, &ll);
|
||||
}
|
||||
|
||||
10
opt_bits.h
10
opt_bits.h
@@ -1,10 +0,0 @@
|
||||
#ifndef LIGHTNING_OPT_BITS_H
|
||||
#define LIGHTNING_OPT_BITS_H
|
||||
#include "config.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 */
|
||||
Reference in New Issue
Block a user