Fix recently broken logic in get_my_delegates so that delegates can produce blocks again. Also a few more changes to tests to account for API renaming.