Bitcoin Forum
May 03, 2024, 11:31:18 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Transaction or Mining? (Chicken & Egg question)  (Read 195 times)
thomasadamsxp (OP)
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
August 27, 2020, 02:40:35 PM
 #1

Hi! Me still learning the basics, please help me get clarity to this question, the answer to which I can't get anywhere.

First, here is what I understand:
1. Bitcoins come into the ecosystem by mining.
2. Mining only happens after a transaction is initiated.

If so, then I still don't seen how coins come into the ecosystem.

Because:
1. For a transaction to be initiated, the sender needs to have coins first yes? (How can you send bitcoins if you have none).
2. But mining only happens (and therefore coins only come into the ecosystem) after a transaction is initiated.
3. If the transaction cannot be initiated without a balance, it cannot be initiated, and therefore mining too does not happen.

How then can coins come into the ecosystem?

Please help understand.
1714779078
Hero Member
*
Offline Offline

Posts: 1714779078

View Profile Personal Message (Offline)

Ignore
1714779078
Reply with quote  #2

1714779078
Report to moderator
1714779078
Hero Member
*
Offline Offline

Posts: 1714779078

View Profile Personal Message (Offline)

Ignore
1714779078
Reply with quote  #2

1714779078
Report to moderator
If you see garbage posts (off-topic, trolling, spam, no point, etc.), use the "report to moderator" links. All reports are investigated, though you will rarely be contacted about your reports.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714779078
Hero Member
*
Offline Offline

Posts: 1714779078

View Profile Personal Message (Offline)

Ignore
1714779078
Reply with quote  #2

1714779078
Report to moderator
1714779078
Hero Member
*
Offline Offline

Posts: 1714779078

View Profile Personal Message (Offline)

Ignore
1714779078
Reply with quote  #2

1714779078
Report to moderator
hd49728
Legendary
*
Offline Offline

Activity: 2086
Merit: 1028



View Profile WWW
August 27, 2020, 02:48:09 PM
Merited by cabalism13 (1)
 #2

Which algorithm Bitcoin uses?
Proof of work: means it needs miners to maintain operations on the network.

Where Bitcoins come from?
From source-code and the network is activated by genesis block. After that, miners do the rest works up till now.

Code - Genesis block - Proof-of-work network and mining operations (from miners)

.freebitcoin.       ▄▄▄█▀▀██▄▄▄
   ▄▄██████▄▄█  █▀▀█▄▄
  ███  █▀▀███████▄▄██▀
   ▀▀▀██▄▄█  ████▀▀  ▄██
▄███▄▄  ▀▀▀▀▀▀▀  ▄▄██████
██▀▀█████▄     ▄██▀█ ▀▀██
██▄▄███▀▀██   ███▀ ▄▄  ▀█
███████▄▄███ ███▄▄ ▀▀▄  █
██▀▀████████ █████  █▀▄██
 █▄▄████████ █████   ███
  ▀████  ███ ████▄▄███▀
     ▀▀████   ████▀▀
BITCOIN
DICE
EVENT
BETTING
WIN A LAMBO !

.
            ▄▄▄▄▄▄▄▄▄▄███████████▄▄▄▄▄
▄▄▄▄▄██████████████████████████████████▄▄▄▄
▀██████████████████████████████████████████████▄▄▄
▄▄████▄█████▄████████████████████████████▄█████▄████▄▄
▀████████▀▀▀████████████████████████████████▀▀▀██████████▄
  ▀▀▀████▄▄▄███████████████████████████████▄▄▄██████████
       ▀█████▀  ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀  ▀█████▀▀▀▀▀▀▀▀▀▀
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.PLAY NOW.
jackg
Copper Member
Legendary
*
Offline Offline

Activity: 2856
Merit: 3071


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


View Profile
August 27, 2020, 02:49:48 PM
 #3

You don't need transactions to mine.

When you generate a block on the bitcoin network, the only transaction you actually need is the coinbase transaction (which credits the. Lock reward to the miner).

Everything is stored in a fixed size data block with most decentralised cryptocurrencies which stores the coinbase and all the subsequent transactions the miner wants to be confirmed.

A block is added to the network after a block is found ( miners have to hash the transactions of a block and get the number below a target nonce - pre set by consensus rules of each node). On average this target is set to make the average block find time 10 minutes. Its based on the average of the last two weeks when it changes.
witcher_sense
Legendary
*
Offline Offline

Activity: 2338
Merit: 4316

🔐BitcoinMessage.Tools🔑


View Profile WWW
August 27, 2020, 02:53:04 PM
 #4

Your "chicken and egg" question was well explained by A.Antonopoulos in his "Mastering Bitcoin". I strongly recommend it for reading. It is available for free https://github.com/bitcoinbook/bitcoinbook

Quote
The exception to the output and input chain is a special type of transaction called the coinbase transaction, which is the first transaction in each block. This transaction is placed there by the “winning” miner and creates brand-new bitcoin payable to that miner as a reward for mining. This special coinbase transaction does not consume UTXO; instead, it has a special type of input called the “coinbase.” This is how bitcoin’s money supply is created during the mining process, as we will see in Chapter 10.

Tip
What comes first? Inputs or outputs, the chicken or the egg? Strictly speaking, outputs come first because coinbase transactions, which generate new bitcoin, have no inputs and create outputs from nothing.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
20kevin20
Legendary
*
Offline Offline

Activity: 1134
Merit: 1597


View Profile
August 27, 2020, 03:17:00 PM
 #5

1. Bitcoins come into the ecosystem by mining.
2. Mining only happens after a transaction is initiated.
First is basically true. New Bitcoins only come through mining, or older coins get into circulation by transactions. However, the you got the second one wrong. Miners do not wait for transactions before they start mining. If so, if there was only a tx per week on the blockchain, do you think anyone would keep an entire farm alive to try their luck for a matter of minutes?

Mining happens anyway, with or without txs. We need the inflation to stay approximately the way it has been structured to be through coding, the only variable being block time. If mining only happened once txs were initiated, that would mean there would be some blockchains with a temporarily fixed supply.. as in there'd be no more coins to be mined before someone initiates a transaction..
Charles-Tim
Legendary
*
Offline Offline

Activity: 1540
Merit: 4837



View Profile
August 27, 2020, 03:33:15 PM
 #6

How then can coins come into the ecosystem?
You need to know what genesis block is all about. In 2009 the genesis block (block 0) was mined by Satoshi Nakamoto, at the time, there was no bitcoin trasaction time, transaction time was introduced in the block 1 which is 10 minutes on average. So, the only reward for the block 0 are the bitcoin that was mined.

In block 1 and the rest up till today and until all bitcoin are mined, miners receives two rewards, one from the fee paid for transactions and the other for solving the algorithm that create another block. That is just how the algorithm works.
After all bitcoin are mined, only transaction fee will be paid as miners reward because no bitcoin will be mined again. I hope this is explained in a way you will understand the differences between bitcoin mining and transaction.

Mining happens anyway, with or without txs. We need the inflation to stay approximately the way it has been structured to be through coding, the only variable being block time. If mining only happened once txs were initiated, that would mean there would be some blockchains with a temporarily fixed supply.. as in there'd be no more coins to be mined before someone initiates a transaction..
There will be transaction in every 10 minutes with the rate of bitcoin adoption normally. But you are right, transaction can not be a prerequisite for mining. But mining is a prerequisite for transactions until all bitcoin are mined.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
hd49728
Legendary
*
Offline Offline

Activity: 2086
Merit: 1028



View Profile WWW
August 27, 2020, 04:29:38 PM
 #7

There are blocks that are called as empty blocks. They are blocks with only block rewards and no other transactions. They only contain Coinbase rewards to miners who solve algorithm puzzle and create blocks. It will be different based on bitcoin block rewards.

And if miners (big pools) include their transactions into the blocks they found, there is no mining fees (transaction fees) with those blocks.

You are right the there are mining rewards and mining (transaction fees) but sometimes the transaction fees can be zero.

.freebitcoin.       ▄▄▄█▀▀██▄▄▄
   ▄▄██████▄▄█  █▀▀█▄▄
  ███  █▀▀███████▄▄██▀
   ▀▀▀██▄▄█  ████▀▀  ▄██
▄███▄▄  ▀▀▀▀▀▀▀  ▄▄██████
██▀▀█████▄     ▄██▀█ ▀▀██
██▄▄███▀▀██   ███▀ ▄▄  ▀█
███████▄▄███ ███▄▄ ▀▀▄  █
██▀▀████████ █████  █▀▄██
 █▄▄████████ █████   ███
  ▀████  ███ ████▄▄███▀
     ▀▀████   ████▀▀
BITCOIN
DICE
EVENT
BETTING
WIN A LAMBO !

.
            ▄▄▄▄▄▄▄▄▄▄███████████▄▄▄▄▄
▄▄▄▄▄██████████████████████████████████▄▄▄▄
▀██████████████████████████████████████████████▄▄▄
▄▄████▄█████▄████████████████████████████▄█████▄████▄▄
▀████████▀▀▀████████████████████████████████▀▀▀██████████▄
  ▀▀▀████▄▄▄███████████████████████████████▄▄▄██████████
       ▀█████▀  ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀  ▀█████▀▀▀▀▀▀▀▀▀▀
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.PLAY NOW.
cabalism13
Legendary
*
Offline Offline

Activity: 1428
Merit: 1165

🤩Finally Married🤩


View Profile
August 27, 2020, 04:41:20 PM
 #8

There are blocks that are called as empty blocks.
can I get a sample? a link would be fine. I'm a bit curious about these empty blocks, it really is the first ime I've ever heard this, for what I know every block has a number of transactions, even one is the least that I can think...
hosseinimr93
Legendary
*
Online Online

Activity: 2394
Merit: 5235



View Profile
August 27, 2020, 04:52:39 PM
Merited by cabalism13 (1)
 #9

As stated in previous posts, blocks can be empty. So blocks can be mined even if there is no transaction.
tranthidung has already made a topic regarding statistics on empty blocks. Visit the link below. It's helpful.

BTC empty blocks (2009 - 5 May 2020): miners, size, daily, monthly,yearly stats

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
cabalism13
Legendary
*
Offline Offline

Activity: 1428
Merit: 1165

🤩Finally Married🤩


View Profile
August 27, 2020, 11:59:04 PM
 #10

Thanks! As I've checked we still having empty blocks, LoL,  I really didn't thought their would be no transaction even in this time were in. Anyways compared before it's getting small in numbers.
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!