Bitcoin Forum

Other => Beginners & Help => Topic started by: kama on September 03, 2015, 07:34:56 AM



Title: Where the transactions that waiting to be added to blockchain stored ?
Post by: kama on September 03, 2015, 07:34:56 AM
Let's say block 370,000 found and miners trying to solve next problem to create the 370,001 block but when the miners are trying to do this where the all that transactions stored ? local ? internet ? where ?


Title: Re: Where the transactions that waiting to be added to blockchain stored ?
Post by: Guiomar on September 03, 2015, 08:22:08 AM
Let's say block 370,000 found and miners trying to solve next problem

Its a bit of a picky remark, but there is no "problem" solved durring block generation. Its more like drawing numbers out of a lottery pool and hoping for the win. Its just that no one knows which numbers will win until they tried them.

to create the 370,001 block but when the miners are trying to do this where the all that transactions stored ? local ? internet ? where ?

Unconfirmed transactions are stored in the miners (and other full nodes) memory (in RAM)1. When you create a transaction it is send to other nodes (those running bitcoin core). Those nodes do not have to mine and most actually dont, they however verify that the transaction is sound and send it the nodes they are connected to. That way your transactions is communicated throughout the network very fast (almost instantly). A node might decide to forget about a transaction after a certain amount of time, but in the default configuration it does not do so, unless its shut down for some reason (e.g. someone closed bitcoin core).

1 edited after reply below


Title: Re: Where the transactions that waiting to be added to blockchain stored ?
Post by: kama on September 03, 2015, 08:32:37 AM
Let's say block 370,000 found and miners trying to solve next problem

Its a bit of a picky remark, but there is no "problem" solved durring block generation. Its more like drawing numbers out of a lottery pool and hoping for the win. Its just that no one knows which numbers will win until they tried them.

to create the 370,001 block but when the miners are trying to do this where the all that transactions stored ? local ? internet ? where ?

Unconfirmed transactions are stored in the miners (and other full nodes) memory. When you create a transaction it is send to other nodes (those running bitcoin core). Those nodes do not have to mine and most actually dont, they however verify that the transaction is sound and send it the nodes they are connected to. That way your transactions is communicated throughout the network very fast (almost instantly). A node might decide to forget about a transaction after a certain amount of time, but in the default configuration it does not do so, unless its shut down for some reason (e.g. someone closed bitcoin core).

okay but ram or harddisk ?


Title: Re: Where the transactions that waiting to be added to blockchain stored ?
Post by: Guiomar on September 03, 2015, 08:45:15 AM
Let's say block 370,000 found and miners trying to solve next problem

Its a bit of a picky remark, but there is no "problem" solved durring block generation. Its more like drawing numbers out of a lottery pool and hoping for the win. Its just that no one knows which numbers will win until they tried them.

to create the 370,001 block but when the miners are trying to do this where the all that transactions stored ? local ? internet ? where ?

Unconfirmed transactions are stored in the miners (and other full nodes) memory. When you create a transaction it is send to other nodes (those running bitcoin core). Those nodes do not have to mine and most actually dont, they however verify that the transaction is sound and send it the nodes they are connected to. That way your transactions is communicated throughout the network very fast (almost instantly). A node might decide to forget about a transaction after a certain amount of time, but in the default configuration it does not do so, unless its shut down for some reason (e.g. someone closed bitcoin core).

okay but ram or harddisk ?

RAM, unless they need to use a swapdisk.


Title: Re: Where the transactions that waiting to be added to blockchain stored ?
Post by: cesmak on September 03, 2015, 11:03:04 AM
here there are some info about the mempool, that is the (let us call "entity", but is not a physical space) were are stored all the unconfirmed transactions.

http://bitcoin.stackexchange.com/tags/mempool/hot

Cheers


Title: Re: Where the transactions that waiting to be added to blockchain stored ?
Post by: Zz on September 03, 2015, 11:50:11 AM
They are stored in mempool. You can also follow them here: https://blockchain.info/unconfirmed-transactions


Title: Re: Where the transactions that waiting to be added to blockchain stored ?
Post by: Guiomar on September 03, 2015, 05:58:33 PM
They are stored in mempool. You can also follow them here: https://blockchain.info/unconfirmed-transactions

Those are not all and not all nodes have the same set of unconfirmed transactions. Since (or only durring?) the last spam attack blockchain.info filtered transaction as they could not handle them. They currently show ~11k transactions while tradeblock1 lists ~8k

1 https://tradeblock.com/bitcoin/