Pages:
Author

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

full member
Activity: 147
Merit: 100
Thank you! Been waiting for this for a while. 1 BTC tip sent!
member
Activity: 105
Merit: 10
It's built from scratch using dependency injection, D.R.Y. paradigm, event emitters and deferred/promises.

https://github.com/pocesar/node-stratum

  • Defer and promise based code instead of callbacks (avoid callback hell)
  • Simple but powerful API for managing both server and client
  • Build-in support for spawn coins daemons (bitcoind, litecoind, etc) process and accept RPC calls
  • Easy for you to add your own procedures do the RPC server (using expose)
  • No need to worry about .conf files for the daemons, everything is passed through command line the best way possible (but you may override arguments)
  • Optimized code reuse with class methods and dependency injection
  • All classes based on EventEmitter by default (through the Base class)
  • The client part make it easy, along with an RPC server, to setup your own farming pool for coins
  • You can create a proxy from it using the Client interface, mix up Stratum with your own RPC definition and commands
  • It's up to you to choose the logging module (like winston)

It's currently on active development, only missing the bitcoind control from the code, and then creation of the automated mocha tests, and should be ready to go. Preliminar tests showed it to be working well (with cpuminer and bfgminer, for example)
Pages:
Jump to: