jtoomim / p2pool

Peer-to-peer Bitcoin mining pool
https://github.com/jtoomim/p2pool/
GNU General Public License v3.0
37 stars 45 forks source link

Stratum autodiff #42

Closed jtoomim closed 4 years ago

jtoomim commented 4 years ago

This changeset will set difficulty automatically on a per-stratum-connection basis rather than universally for the whole node. It also allows multiple workers on a single username using username.worker or username_worker or username.worker+pseudodiff/sharediff notation. This change also includes some performance enhancements (better caching of stratum jobs). However, it can have worse CPU load performance on nodes with large (1000+) numbers of stratum connections, due to generally lower pseudoshare difficulty and more stratum shares being processed per second on average.