<p>No, you don't have it right.</p>
<p>Nodes (which include miners) do not ask other node to do anything other than to give them data. There is no &quot;confirmations of full nodes&quot;. Nodes will receive transactions and verify them themselves using the rules that are programmed into their software. If the transaction is valid (and also passes some other non-consensus rules), it will be stored in the mempool to be used in block creation.</p>
<p>Bitcoin is not an accounts based model so there are no wallets or accounts in the blockchain itself. As such, wallets do not have &quot;credits&quot;. Rather validation requires searching for Unspent Transaction Outputs (UTXO) that are specified in a transaction's inputs. These UTXOs contain an amount and a script. The node will check that the sum of the input amounts is greater than or equal to the sum of the output amounts. Then it will execute the scripts for those inputs, and the scripts must return a result indicating success.</p>
<p>A miner cannot create a valid block with invalid transactions. Such blocks are, by definition, invalid. A block can only be valid if all of the transactions contained within it are valid. Other nodes will only accept a block if it is valid. Those other nodes do not just blindly trust miners - they will verify that all of the transactions in a block are valid.</p>

CC BY-SA 4.0
2022-08-29T04:25:50.587Z
2022-08-29T04:25:50.587Z
Ava Chow
<p>So, miners, if I got it right, before inserting a transaction into the Mempool, will request an arbitrary number of confirmations of full nodes that will search the entire blockchain to see if a wallet has credits to perform that transaction. But, being this process not required, could a miner simply create valid blocks with invalid transactions without any problem?</p>

<transactions><unconfirmed-transactions><consensus><mempool>
what guarantee that miners will only include valid transactions in a block?
Vitor Figueredo Marques
# what guarantee that miners will only include valid transactions in a block?

(Asked by: username_0 on 2022-08-29)

So, miners, if I got it right, before inserting a transaction into the Mempool, will request an arbitrary number of confirmations of full nodes that will search the entire blockchain to see if a wallet has credits to perform that transaction. But, being this process not required, could a miner simply create valid blocks with invalid transactions without any problem?

**Tags:** transactions, unconfirmed-transactions, consensus, mempool


---

## 1 answers

### Answer by username_1 on 2022-08-29. Score: 1 | Accepted answer

No, you don't have it right.

Nodes (which include miners) do not ask other node to do anything other than to give them data. There is no "confirmations of full nodes". Nodes will receive transactions and verify them themselves using the rules that are programmed into their software. If the transaction is valid (and also passes some other non-consensus rules), it will be stored in the mempool to be used in block creation.

Bitcoin is not an accounts based model so there are no wallets or accounts in the blockchain itself. As such, wallets do not have "credits". Rather validation requires searching for Unspent Transaction Outputs (UTXO) that are specified in a transaction's inputs. These UTXOs contain an amount and a script. The node will check that the sum of the input amounts is greater than or equal to the sum of the output amounts. Then it will execute the scripts for those inputs, and the scripts must return a result indicating success.

A miner cannot create a valid block with invalid transactions. Such blocks are, by definition, invalid. A block can only be valid if all of the transactions contained within it are valid. Other nodes will only accept a block if it is valid. Those other nodes do not just blindly trust miners - they will verify that all of the transactions in a block are valid.


---

