Filter recent elections in update_active_difficulty (#2161)
Filter recent elections in update_active_difficulty (#2161)

* Filter recent elections during active difficulty update

* Use network constant

clemahieu/raiblocks,SergiySW/raiblocks,clemahieu/raiblocks,clemahieu/raiblocks,SergiySW/raiblocks,SergiySW/raiblocks,clemahieu/raiblocks,SergiySW/raiblocks,clemahieu/raiblocks,clemahieu/raiblocks,SergiySW/raiblocks