gossip: Initialize the secp256k1_context

We will be doing signature verifications and creation so we better
have the context to do so.
This commit is contained in:
Christian Decker 2017-03-09 19:36:42 +01:00
parent ab4f1f0550
commit 0596a6cc2c

View File

@ -436,6 +436,9 @@ int main(int argc, char *argv[])
exit(0);
}
secp256k1_ctx = secp256k1_context_create(SECP256K1_CONTEXT_VERIFY |
SECP256K1_CONTEXT_SIGN);
daemon = tal(NULL, struct daemon);
log_book = new_log_book(daemon, 2 * 1024 * 1024, LOG_INFORM);
base_log =