Ok -- so if you get rid of the ```saveHash``` logic and move the block with the comment ```Rescan that mofo!``` to right after ```if (prevHash != newHash) {``` then I think this would be good to merge.