aionnetwork / aion_miner

aion miner
57 stars 25 forks source link

SOLO_POOL: I found & Fixed a Bug, please merge this fix #41

Open g00dnatur3 opened 5 years ago

g00dnatur3 commented 5 years ago

Node Version: v10.15.3 Project: /aion_miner/aion_solo_pool

When i do a fresh clone & do npm install, i get the following error

../src/binding.cpp:234:80: error: no matching function for call to ‘v8::Function::NewInstance(const unsigned int&, v8::Local<v8::Value> [1])’
   v8::Local<v8::Object> inst = construct->GetFunction()->NewInstance(argc, argv);

Inside this file: /home/mine/aion_miner/aion_solo_pool/local_modules/node-blake2/src/binding.cpp

update line 234 to be the following:

v8::Local<v8::Object> inst = Nan::NewInstance(construct->GetFunction(), argc, argv).ToLocalChecked();

This will fix the bug and it will compile...