A quick question arose from "So I should always specify a large gas limit since I'll be refunded?" phrase from your article.
A function takes 40,000 Gas Units to execute. Which one of the following function calls will miner prefer to take?
- Call with 100,000 Gas Units.
- Call with 50,000 Gas Units.
Provided that the miner is paid for just 40,000 gas unit operations, they will prefer 2nd function call as it takes less total block size limit compared to 1st call.
Does the algorithm for tx selection from txpool work like this?
RE: Ethereum "Gas" - How it Works