Make halving interval parametric using configuration
In order to test all the possible scenarios that can be faced before or after an halving it can be useful to set in regtest mode the halving interval. So I've just added a parameter (-halvinginterval) that can be passed to bitcoind daemon in regtest mode in order to override the default halving interval.