Fix #657, added getmininginfo to wrapper