pull/1/head
Jeff Becker 6 years ago
parent 91a9108300
commit 420f49a288
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -42,7 +42,6 @@ struct llarp_nodedb {
}
bool loadfile(const fs::path &fpath) {
llarp_rc *rc = llarp::Alloc<llarp_rc>(mem);
llarp_buffer_t buff;
FILE *f = fopen(fpath.c_str(), "rb");
if (!f) return false;
@ -51,6 +50,7 @@ struct llarp_nodedb {
return false;
}
fclose(f);
llarp_rc *rc = llarp::Alloc<llarp_rc>(mem);
if (llarp_rc_bdecode(mem, rc, &buff)) {
if (llarp_rc_verify_sig(rc)) {
llarp::pubkey pk;

Loading…
Cancel
Save