core-lightning/common/version.c
Rusty Russell 85ff95e829 common: new directory for any shared objects.
To avoid everything pulling in HTLCs stuff to the opening daemon, we
split the channel and commit_tx routines into initial_channel and
initial_commit_tx (no HTLC support) and move full HTLC supporting versions
into channeld.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2017-08-29 17:54:14 +02:00

17 lines
274 B
C

#include "gen_version.h"
#include "version.h"
#include <stdio.h>
const char *version(void)
{
return VERSION;
}
char *version_and_exit(const void *unused)
{
printf("%s\n"
"aka. %s\n"
"Built with: %s\n", VERSION, VERSION_NAME, BUILD_FEATURES);
exit(0);
}