Bitcoin Forum
May 30, 2024, 08:37:36 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Question about bitcoin mining  (Read 109 times)
bitcoinerhere (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
January 08, 2021, 07:20:50 PM
 #1

How does the bitcoin miner know whether the block it's mining contains transactions which are already confirmed and so stop trying to put them in the block it's mining?
jackg
Copper Member
Legendary
*
Offline Offline

Activity: 2856
Merit: 3071


https://bit.ly/387FXHi lightning theory


View Profile
January 08, 2021, 07:58:02 PM
 #2

How does the bitcoin miner know whether the block it's mining contains transactions which are already confirmed and so stop trying to put them in the block it's mining?

They get a tip update of the blockchain when a new block is mined and accepted by the node they're connected to. They then reset the transactions they're using to mine with and get sent the new best block hash (current highest block hash) and a new series of transactions worth the most to confirm.
bitcoinerhere (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
January 08, 2021, 08:06:58 PM
 #3

They get a tip update of the blockchain when a new block is mined and accepted by the node they're connected to. They then reset the transactions they're using to mine with and get sent the new best block hash (current highest block hash) and a new series of transactions worth the most to confirm.

So they will mine the same series of transactions?
jackg
Copper Member
Legendary
*
Offline Offline

Activity: 2856
Merit: 3071


https://bit.ly/387FXHi lightning theory


View Profile
January 08, 2021, 08:10:02 PM
 #4

So they will mine the same series of transactions?

If they've been confirmed in the last block the no the miner will be sent a new Serie sof transactions.

Most miners all.mins the same transactions in a block though because btheyre wanting to mine transactions that pay a higher fee.
bitcoinerhere (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
January 08, 2021, 11:30:04 PM
 #5

If they've been confirmed in the last block the no the miner will be sent a new Serie sof transactions.
Most miners all.mins the same transactions in a block though because btheyre wanting to mine transactions that pay a higher fee.

Does this mean transactions might never get confirmed if the sender set the transaction fee too low? How does the sender know whether the transaction fee is too low? Will he be informed somehow? And how to pick a transaction fee that is the most cost-effective for a non-urgent transaction?
jackg
Copper Member
Legendary
*
Offline Offline

Activity: 2856
Merit: 3071


https://bit.ly/387FXHi lightning theory


View Profile
January 09, 2021, 12:52:43 AM
 #6

Does this mean transactions might never get confirmed if the sender set the transaction fee too low? How does the sender know whether the transaction fee is too low? Will he be informed somehow? And how to pick a transaction fee that is the most cost-effective for a non-urgent transaction?

The wallet software you use will get suggestions for the price to pay for the fee for you. It's a best guess and nimrally based either on the past or the present.

When you send a transaction it gets sent to the "mempool" which is a pool of all the transactions nodes broadcast. This is sorted by fee by miners and the top 20mb are normally in for consideration by most nodes (I *think*) it's possible to bump the fee after the transaction is sent if you select "replace by fee" (rbf) in your wallet settings.

Past analysis by clients takes into account intervals of blocks in th past (normally ranging from 144 blocks - a day - to 2048 blocks - about 2 weeks).  Which can determine if fees are going up and the best fee for a confirmation within a certain timeframe.

And yes it's possible the fee can be too low to be mined and it's also possible for a fee to be too low to be broadcast across the network.
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!