ckolivas/cgminer — pull request #95 by luke-jr (2012-01-24 23:42:16+00:00)
Title: Series of fixes around longpolling

1. Bugfix: Only discard work from other pools, if the block really has changed
The longpoll fix which triggered new work even if the block hadn't changed was too aggressive, and discarded work from other pools as well. This is fixed by making the "current block" counter pool-specific, and tracking the real block again.
2. Advertise longpoll support in X-Mining-Extensions
3. Support for submitold extension to longpoll
This extension allows pools to longpoll for reasons other than a new Bitcoin block (such as transaction fees, merged mining, etc) without discarding shares from the last work. See https://en.bitcoin.it/wiki/Getwork#submitold for specification