Well just to reply some comments, i don't think Hashi was under any genjutsu , i know the scenes between 8 and 9 look immediate but it was not if you look closely when hashi leaped to meet Madara his shirt was intact but when they faced each other it was torn, also after the show of the eye of madara, we can see a moon telling us they fought until it was night. I believe Hashi just mistakenly left his clone there (remember its wood) and madara used its healing ability to heal himself (Madara himself said Hashi had body healing abilities) while getting the life force he needed to awaken Rinnegan, next he started studying more of the cell he had gotten
from the clone and made it come to life using chakra.
from the clone and made it come to life using chakra.