0

This question already has an answer here:

How miner validates each transaction? Does he have all the information of the transaction taking place between nodes?

Thank you.

marked as duplicate by chytrik, pebwindkraft, alcio, Pieter Wuille, Andrew Chow Mar 18 '18 at 21:32

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • I'm not sure I understood the first part of the question. What do you mean 'all the details' of a transaction? In Bitcoin technology the transaction is a chunk o data with all information, so all the details of a transaction is the very transaction itself. – Osias Jota Mar 6 '18 at 17:19
0

Miners role is not to validate transactions, but to confirm them. Every node validate every transaction every time. A single invalid transaction would invalidate the entire blockchain.

In Bitcoin technology the transaction is collection of bytes. All the information about a transaction is the very transaction itself.

  • For eg. If A wants to give 5 bitcoin (for an instance) to B and A has only 3 bitcoin with him. In this case how this invalid transaction would be invalidated by other nodes? And here another question arises how blockchain helps to prevent duplication of bitcoins? And also if the transaction is validated by other nodes then why there is a need of miner to confirm those same transaction? – Mansi Goel Mar 7 '18 at 4:23
  • If A wants to spend more bitcoins he has, he will setup this invalid transaction in his computer. So he'll send that transaction to another computer running bitcoin. That computer will read the transaction received via the internet, see it's invalid (spend more than it can) and delete it from its memory. No other node will accept or relay invalid transactions. Your third question is the answer to the second one: miners confirm transactions to prevent duplication of spending. Read more here: bitcoin.stackexchange.com/questions/148/what-exactly-is-mining – Osias Jota Mar 7 '18 at 12:00

Not the answer you're looking for? Browse other questions tagged or ask your own question.