Update addblock util for recent chain API changes.