Pages:
Author

Topic: [WIP] My opensource Node.js Stratum server and client + RPC interface (Read 5616 times)

newbie
Activity: 33
Merit: 0
This software works great. I am in the process of trying to build a pool failover system that is miner agnostic and am using this code. I really appreciate that the basic stratum work is already done for me, thanks.
sr. member
Activity: 257
Merit: 250
Exellent project man.
full member
Activity: 219
Merit: 100
CryptoCombat - Realtime NPC Fight Faucet
possible that someone can explain how to build up a proxy with the client example. i tryed some with the net lib but i cant get it to work well
member
Activity: 105
Merit: 10
you could, but you would have to implement the users, shares, etc by yourself. I'm focusing on quality, well tested, stable code instead of feature rich but unstable code. downtime, instability, security and exploitable bugs are my main concerns, see how many exchanges and pools were hacked lately.
legendary
Activity: 1357
Merit: 1004
is it good to replace eloipool on my pool? Smiley
member
Activity: 105
Merit: 10
Soon I'm going to resume my work on the Proof of Concept using a really high performance solo mining endpoint using
https://github.com/pocesar/node-stratum as the building block. the project is in
https://github.com/pocesar/node-stratum-solo
you'll be able to create your own auto profit switching pool for example, or point all your ASICs to just one computer in the network, distributing correct unique work for your miners (and not dupe extra nonce, for example)
newbie
Activity: 56
Merit: 0
Thanks for your reply. I am going to start building a pool in a week or two. I am wanting to have multiple nodes in different locations to reduce latency to the miners. I assume I would run your code on each node, but would they be able to work together to solve the same block (so I would get a block more often with a lower hashrate)? I'm still learning how mining works.

I am going to be using CPPSRB for payments and build a custom frontend. Besides stuff like logging shares and making payments is there anything else cryptocoin related that I would need to build the pool? Basicly, can your project allow miners to connect, give me a way to log shares, and solve blocks. I'm a bit too busy right at the moment to try it out.
member
Activity: 105
Merit: 10
hey flangefrog, no idea, didn't even knew the existance of that repo. seems pretty new (first commit 21 days ago), so I'll check it out and report back

EDIT: It is a full fledged stratum pool, instead of stratum server and client module (my library have no pool funcionality whatsoever, its up to the developer to implement them). "stratum-pool" is more of a framework that is focused on building work to deliver to miners. although there are no tests or test coverage data for that library yet.

With my library, you can build pools, proxies, network endpoints for miners, etc, and implement in other types of libraries/frameworks, that aim to provide stratum support along with other functionalities, like a web interface, or other protocols, like X-Pushthrough. And I take stability and code congruence really seriously, along with tests and code coverage.
newbie
Activity: 56
Merit: 0
Hi pocesar

Could you tell me what the difference is between your project and https://npmjs.org/package/stratum-pool ?
member
Activity: 105
Merit: 10
just updated it, when I have more spare time, I'll make 100% test coverage, only 2 parts to go.
erk
hero member
Activity: 826
Merit: 500
Anyone using it on a pool yet?
member
Activity: 105
Merit: 10
Worked a bit on the project on this weekend, after a long pause working on it because of work  Embarrassed
full member
Activity: 147
Merit: 100
Nice work, gonning to try it out over the weekend.
member
Activity: 105
Merit: 10
Improved the docs a bit. The main server part is completly functional. Only missing the automated tests!

https://github.com/pocesar/node-stratum
member
Activity: 105
Merit: 10
done, finished my hacky detect cryption library (using base58-native) for node.js Smiley

https://github.com/pocesar/node-detect-cryptocoin
member
Activity: 105
Merit: 10
I've learned a lot from reading the bitcoinjs-server source, but couldn't make it work on Windows, unfortunately.

Hopefully node-libcoin will be a full replacement for bitcoinjs-server... Smiley



nice! the more light weight, the merrier. should focusing in making it modular and independent, but that work well together.

I've created a pull request for the gyp binding to build base58 on windows.
legendary
Activity: 1596
Merit: 1100
I've learned a lot from reading the bitcoinjs-server source, but couldn't make it work on Windows, unfortunately.

Hopefully node-libcoin will be a full replacement for bitcoinjs-server... Smiley

member
Activity: 105
Merit: 10
hey jgarzik, I'm already following you on github Wink

thanks for the links, they are pretty important, mainly for the base58 that I didn't find in npm earlier! I'm at the moment finishing a hash address detector, simple quick and dirty way to detect which addresses belong.

I've learned a lot from reading the bitcoinjs-server source, but couldn't make it work on Windows, unfortunately.
legendary
Activity: 1596
Merit: 1100
Nice to see some further node.js work!  Good show.

Check these out,
https://github.com/gasteve/node-base58  ('base58-native' in npm)
https://github.com/gasteve/node-libcoin

We are cleaning up bitcoinjs-server into a nice library, and fixing many bugs found (including buffer overflows and memory leaks).

And watch
https://github.com/jgarzik/txtool
https://github.com/jgarzik/wally

for other node.js work.

member
Activity: 105
Merit: 10
Thank you! Been waiting for this for a while. 1 BTC tip sent!

thanks man, really appreciate it. I should finish the coind part by this weekend I think (along with forking the process with the proper command line parameters).
after that, I will focus on testing every part of the server, using mocha and sinon (for mocks and stubs), and then try converting some python code for the stratum mine pool from slush to see how well it performs and add a benchmark to it as well. AFAIK, node is pretty good at handling connections, so I'm confident it will handle a large amount of data and connections per 'cluster'
Pages:
Jump to: