Hi,
I'm researching about Bitcoin and I have this problem. I know that miner are be able to accept or no transactions, and I'm looking about the way that they can do that.
If you use the mining program is only for mining bitcoins and find blocks, but after find a block I don't know how a miner can accept o discard the transactions into the block.
The transactions must be selected before you start mining the block, not after you find the block. The selected transactions cannot be changed once the block is mined successfully. If you are in a pool, then the pool operator selects the transactions for you. If you are solo mining then your software selects the transactions. If you wanted to use different rules for transaction selection, you'd have to modify the software.
And the another question is if there is a "bad" miner and he accepts bad or fake transactions, but this transaction needs the confirmation of more miners, so this transaction can't be never arrive to the block chain?
If a miner tries to include bad or fake transactions in his block, then every peer he is connected to will refuse to accept and relay the block that he sends. The block won't make it into any blockchain. It will simply be discarded by all the peers connected to him.