MCPcopy Create free account
hub / github.com/ElementsProject/lightning / version_db

Function version_db

tools/lightning-downgrade.c:172–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170};
171
172static const struct db_version *version_db(const char *version)
173{
174 for (size_t i = 0; i < ARRAY_SIZE(db_versions); i++) {
175 if (streq(db_versions[i].name, version))
176 return &db_versions[i];
177 }
178 errx(ERROR_INTERNAL, "Unknown version %s", version);
179}
180
181static void db_error(void *unused, bool fatal, const char *fmt, va_list ap)
182{

Callers 1

mainFunction · 0.85

Calls 1

errxFunction · 0.85

Tested by

no test coverage detected