From 337991d33ced81b16d220aea90ecffbaf9fa5317 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Tue, 30 Sep 2014 16:11:18 -0700 Subject: [PATCH] remove hooks. --- binding.gyp | 1 - src/bitcoindjs.cc | 35 ----------------------------------- 2 files changed, 36 deletions(-) diff --git a/binding.gyp b/binding.gyp index 62ba66d0..22b905fb 100644 --- a/binding.gyp +++ b/binding.gyp @@ -41,7 +41,6 @@ 'cflags_cc': [ '-fexceptions', '-frtti', - # '-finstrument-functions', ], 'libraries': [ # standard libs: diff --git a/src/bitcoindjs.cc b/src/bitcoindjs.cc index 9105ea60..c0d6ffb1 100644 --- a/src/bitcoindjs.cc +++ b/src/bitcoindjs.cc @@ -2367,41 +2367,6 @@ jstx_to_ctx(const Local entry, CTransaction& tx, uint256 hashBlock) { } #endif -/** - * Hooks - */ - -#if 0 -static int last_height = -1; - -extern "C" void __attribute__ ((constructor)) -trace_begin(void) { - return; -} - -extern "C" void __attribute__ ((destructor)) -trace_end(void) { - return; -} - -extern "C" void -__cyg_profile_func_enter(void *func, void *caller) { - return; -} - -extern "C" void -__cyg_profile_func_exit(void *func, void *caller) { - int cur_height = chainActive.Height(); - if (cur_height != last_height) { - printf("new block\n"); - last_height = cur_height; - } - // if (func == &AcceptBlock || caller == &AcceptBlock || func == AcceptBlock || caller == AcceptBlock) { - // printf("accept block\n"); - // } -} -#endif - /** * Init */