Another fix for serializing height in coinbase. and removed old code