Mitigating Undercutting Attacks: A Study on Mining and Transaction Fee Behavior