feeble attempt to wrap bitcoind functions.
This commit is contained in:
parent
4410d9b9e9
commit
494f539f4e
16
binding.gyp
16
binding.gyp
@ -42,6 +42,22 @@
|
|||||||
'-fexceptions',
|
'-fexceptions',
|
||||||
'-frtti',
|
'-frtti',
|
||||||
],
|
],
|
||||||
|
#'direct_dependent_settings': {
|
||||||
|
# 'linkflags': [
|
||||||
|
# '--wrap=AcceptBlock',
|
||||||
|
# ],
|
||||||
|
# 'ldflags': [
|
||||||
|
# '--wrap=AcceptBlock',
|
||||||
|
# ],
|
||||||
|
#},
|
||||||
|
# 'export_dependent_settings': {
|
||||||
|
# 'linkflags': [
|
||||||
|
# '--wrap=AcceptBlock',
|
||||||
|
# ],
|
||||||
|
# },
|
||||||
|
#'ldflags': [
|
||||||
|
# '--wrap=AcceptBlock',
|
||||||
|
#],
|
||||||
'libraries': [
|
'libraries': [
|
||||||
# standard libs:
|
# standard libs:
|
||||||
# '-L/usr/lib',
|
# '-L/usr/lib',
|
||||||
|
|||||||
@ -182,6 +182,18 @@ init(Handle<Object>);
|
|||||||
|
|
||||||
static volatile bool shutdownComplete = false;
|
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
|
* async_block_data
|
||||||
*/
|
*/
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user