Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@marco_ciaramella/stratum-client
Advanced tools
Readme
A NodeJS based stratum client for communication with stratum-capable pool.
npm i @marco_ciaramella/stratum-client
const client = require('@marco_ciaramella/stratum-client');
const Client = client({
server: "grlcgang.com",
port: 3333,
worker: "KorkyMonster.testing",
password: "x",
autoReconnectOnError: true,
onConnect: () => console.log('Connected to server'),
onClose: () => console.log('Connection closed'),
onError: (error) => console.log('Error', error.message),
onAuthorizeSuccess: () => console.log('Worker authorized'),
onAuthorizeFail: () => console.log('WORKER FAILED TO AUTHORIZE OH NOOOOOO'),
onNewDifficulty: (newDiff) => console.log('New difficulty', newDiff),
onSubscribe: (subscribeData) => console.log('[Subscribe]', subscribeData),
onNewMiningWork: (newWork) => console.log('[New Work]', newWork),
onSubmitWorkSuccess: (error, result) => console.log("Yay! Our work was accepted!"),
onSubmitWorkFail: (error, result) => console.log("Oh no! Our work was refused because: " + error)
});
Mining work can then be submitted through Client.submit(worker, job_id, extranonce2, ntime, nonce);
.
If password
is not specified, the client will attempt to authenticate with 'x', which is good enough in most cases.
DEPRECATED: onAuthorize(error, result)
. If onAuthorizeSuccess
or onAuthorizeFail
is not provided, it will fall back to onAuthorize
.
FAQs
A NodeJS based stratum client for communication with stratum pool
The npm package @marco_ciaramella/stratum-client receives a total of 6 weekly downloads. As such, @marco_ciaramella/stratum-client popularity was classified as not popular.
We found that @marco_ciaramella/stratum-client demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.