Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hello, I have some questions #12

Open
networkabnormal opened this issue Sep 9, 2022 · 0 comments
Open

Hello, I have some questions #12

networkabnormal opened this issue Sep 9, 2022 · 0 comments

Comments

@networkabnormal
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant