Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: Shymaa-Arafat on February 18, 2023, 11:35:00 AM



Title: Do full nodes check the validity of all TXs, or just those inside a block?
Post by: Shymaa-Arafat on February 18, 2023, 11:35:00 AM
I'm sorry if this seems kind of basic or trivial, but do full nodes that are not miners check the validity of each TX; ie, as they appear?
Or just TXs in the blocks they receive, in order to accept or reject the block?


Title: Re: Do full nodes check the validity of all TXs, or just those inside a block?
Post by: hosseinimr93 on February 18, 2023, 11:47:06 AM
The (full) nodes verify every transaction they receive.
If your transaction is valid, the (full) node that has received it adds your transaction to its mempool (a database containing unconfirmed transactions) and broadcast it to the other nodes that it is connected to.


Title: Re: Do full nodes check the validity of all TXs, or just those inside a block?
Post by: Shymaa-Arafat on February 18, 2023, 02:25:11 PM
Ok, I get it
That's how transactions propagate
I forgot about it
.
Thanks