replaced hand-over-hand validation with transactions in reach_leaf function