i see, miners are going after high fees transaction and everyone is competing with each other. so there are tx with low fees are left.
there are many unconfirmed transactions 22311 a of now
ref
https://blockchain.info/unconfirmed-transactionsso is it possible for someone with modified code to get only tx having low fees and create a block of those tx ?
Yes, but it would be an expensive waste of money to do so. Perhaps you should organize a "low fee charity" that takes donations from rich people to pay for mining free (and cheap) transactions for poor people.
or this does not works like that ?
Technically, it works like that. However, financially it does not work like that. You'll spend money on mining and earn less money from the mining. Therefore, you'll eventually lose money.
is nt the miner decides which tx to include in block ?
Yes, and the miner wants to make profit.
i am thinking about getting only block reward and not the tx fees.
Imagine you had 8 hours available in your life to do some work. Imagine that 8 people had identical work they wanted you to do for them. Imagine that each of those people offered to pay you $100 to do the 1 hour of work for them (at the end of the day you could earn a total of $800).
Now imagine that 3 more people asked you to do the exact same work for them, but they decide they don't want to pay you to do the work at all. They each want you to do 1 hour of work for them for free.
What would you choose to do with your 8 hours? Would you do the 8 hours of paid work? Would you only do 5 hours of paid work, and then put in another 3 hours of work for free? Would you do 7 hours of paid work, and then 1 hour of work for free?
If you were one of the people that offered someone $100 to do some work for you, would you be upset if they told you that they were going to do the same work for free for someone else INSTEAD of the work you are offering to pay for? Would you be upset if they took your money and did the work for you, and then did the exact same work for someone else for free?