Bitcoin Forum
June 21, 2024, 10:20:27 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How miners accept transaction?  (Read 503 times)
Zanetti (OP)
Newbie
*
Offline Offline

Activity: 21
Merit: 0



View Profile
April 24, 2013, 01:10:50 PM
 #1

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. When you are mining in a pool I suppose that the pool or the admin of the pool is the person who decides that, but I don't know how and the software it use for that (you need to enter to the source code of Bitcoin client?).

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?

I don't know if I explain my questions so clear, and if these questions are correctly written, but if you need more explanation about questions, please reply me.

Thanks.
DannyHamilton
Legendary
*
Offline Offline

Activity: 3430
Merit: 4669



View Profile
April 24, 2013, 04:42:20 PM
 #2

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.
Zanetti (OP)
Newbie
*
Offline Offline

Activity: 21
Merit: 0



View Profile
April 25, 2013, 08:01:45 AM
 #3

Thank you Danny for the answers.

And what is the software that solo miners or pools use to accepta the transactions? Their mining software or they need another software for that purpose?

I'm looking information but I don't find anything.
DannyHamilton
Legendary
*
Offline Offline

Activity: 3430
Merit: 4669



View Profile
April 25, 2013, 01:30:43 PM
 #4

Thank you Danny for the answers.

And what is the software that solo miners or pools use to accepta the transactions? Their mining software or they need another software for that purpose?

I'm looking information but I don't find anything.

I believe most use bitcoind.  Some miners (or pools) *may* have created their own software for transaction selection.
Zanetti (OP)
Newbie
*
Offline Offline

Activity: 21
Merit: 0



View Profile
April 29, 2013, 01:42:11 PM
 #5

In the Source Code of Bitcoin Satoshi Client I see some functions to verify transactions and a lot of functions for that purpose. I think that miners must configurate that before mining Bitcoins to accept or not the transactions.

Thanks Danny. I'll continue searching more things about that.  Wink
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!