Merged Mining

Merged mining fixes verified.