Last Node logic in RElay node