Improved duplicate share registry performance
Better variable naming
Merge branch 'master' into peercoin