Browse Source

bitcoin/signature: fix compilation with #define DEBUG

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ppa-0.6.1
Rusty Russell 9 years ago
parent
commit
e669baec1c
  1. 4
      bitcoin/signature.c

4
bitcoin/signature.c

@ -55,8 +55,8 @@ static void dump_tx(const char *msg,
fprintf(stderr, "%02x", script[i]); fprintf(stderr, "%02x", script[i]);
if (key) { if (key) {
fprintf(stderr, "\nPubkey: "); fprintf(stderr, "\nPubkey: ");
for (i = 0; i < pubkey_len(key); i++) for (i = 0; i < sizeof(key->der); i++)
fprintf(stderr, "%02x", key->key[i]); fprintf(stderr, "%02x", key->der[i]);
fprintf(stderr, "\n"); fprintf(stderr, "\n");
} }
if (h) { if (h) {

Loading…
Cancel
Save