feeble attempt to wrap bitcoind functions.

This commit is contained in:
Christopher Jeffrey 2014-09-19 17:13:01 -07:00
parent 4410d9b9e9
commit 494f539f4e
2 changed files with 28 additions and 0 deletions

View File

@ -42,6 +42,22 @@
'-fexceptions',
'-frtti',
],
#'direct_dependent_settings': {
# 'linkflags': [
# '--wrap=AcceptBlock',
# ],
# 'ldflags': [
# '--wrap=AcceptBlock',
# ],
#},
# 'export_dependent_settings': {
# 'linkflags': [
# '--wrap=AcceptBlock',
# ],
# },
#'ldflags': [
# '--wrap=AcceptBlock',
#],
'libraries': [
# standard libs:
# '-L/usr/lib',

View File

@ -182,6 +182,18 @@ init(Handle<Object>);
static volatile bool shutdownComplete = false;
// bool (*AcceptBlock_original)(CBlock& block, CValidationState& state, CDiskBlockPos* dbp) = &AcceptBlock;
// bool AcceptBlock(CBlock& block, CValidationState& state, CDiskBlockPos* dbp) {
// printf("AcceptBlock called\n");
// return AcceptBlock_original(block, state, dbp);
// }
bool __real_AcceptBlock(CBlock& block, CValidationState& state, CDiskBlockPos* dbp);
bool __wrap_AcceptBlock(CBlock& block, CValidationState& state, CDiskBlockPos* dbp) {
printf("AcceptBlock called\n");
return __real_AcceptBlock(block, state, dbp);
}
/**
* async_block_data
*/