You can change the code manually by following the steps below if you are using non-bbscoin pool source
Or cherry-pick this commit:
https://github.com/bbscoin/bbscoin-pool/commit/3283344596c2231ebfe34708546f9deb487001c6
convertedBlob = cnUtil.convert_blob(shareBuffer);
Add following lines after it
const majorVersion = convertedBlob[0];
hash = cryptoNight(convertedBlob, majorVersion >= 3 ? 1 : 0);
// Replace
var multiHashing = require('multi-hashing');
// with
var multiHashing = require('multi-hashing-bbscoin');
// Replace
var cnUtil = require('cryptonote-util');
// with
var cnUtil = require('cryptonote-util-bbscoin');
// Replace the line with cryptonote-util with
"cryptonote-util-bbscoin": "^1.0.3",
// Replace the line with multi-hashing with
"multi-hashing-bbscoin": "^1.0.0",
cryptonote-util-bbscoin
and multi-hashing-bbscoin
only work with node v9.5.0+
Please update your node.js version before running npm install.
npm install