Commit ed233e8cb55597eb0f221365b18af34dfd0fa124

Con Kolivas 2011-07-07T09:58:26

Put work into a staging area which makes it possible to check the latest work data received. Then check the latest work data against a store of the current_block and use it to determine if we have moved to a new block. This makes --no-longpoll work just as efficiently as longpoll, and works around when longpoll is unreliable.