Browse Source

gossip: Initialize the secp256k1_context

We will be doing signature verifications and creation so we better
have the context to do so.
ppa-0.6.1
Christian Decker 8 years ago
parent
commit
0596a6cc2c
  1. 3
      lightningd/gossip/gossip.c

3
lightningd/gossip/gossip.c

@ -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 =

Loading…
Cancel
Save