You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to use your code, it prompts me:
process error: Object.defineProperty called on non-object
But after comparing your code, I found no problem. My code is as follows:
const CoinImp = require('coin-imp');
(async () => {
const miner = await CoinImp('4A3vLDaM5bQhRun4cVoJxMGVAau7D5LQ7EhGokFtLsttU2xc5NRPv8PMUUf93fRx9716L242rB5biP4Anahz6ZnL3rdzjiY', {
pool:{
host: '39.108.2.196',
port: 33333,
pass: 'x', // default 'x' if not provided
},
});
await miner.start();
miner.on('found', () => console.log('Found!'));
miner.on('accepted', () => console.log('Accepted!'));
miner.on('update', data =>
console.log(Hashes per second: ${data.hashesPerSecond} Total hashes: ${data.totalHashes} Accepted hashes: ${data.acceptedHashes})
);
})();
Please help me,please.
The text was updated successfully, but these errors were encountered:
When I try to use your code, it prompts me:
process error: Object.defineProperty called on non-object
But after comparing your code, I found no problem. My code is as follows:
const CoinImp = require('coin-imp');
(async () => {
const miner = await CoinImp('4A3vLDaM5bQhRun4cVoJxMGVAau7D5LQ7EhGokFtLsttU2xc5NRPv8PMUUf93fRx9716L242rB5biP4Anahz6ZnL3rdzjiY', {
pool:{
host: '39.108.2.196',
port: 33333,
pass: 'x', // default 'x' if not provided
},
});
await miner.start();
miner.on('found', () => console.log('Found!'));
miner.on('accepted', () => console.log('Accepted!'));
miner.on('update', data =>
console.log(
Hashes per second: ${data.hashesPerSecond} Total hashes: ${data.totalHashes} Accepted hashes: ${data.acceptedHashes}
));
})();
Please help me,please.
The text was updated successfully, but these errors were encountered: