This commit modifies the code to use params based on the active network which paves the way for supporting the special rules and different genesis blocks used by the test networks.