Fixed issue with casting to smaller byte array
Peer changes broadcasting and minor miner fix