How miner validates each transaction? Does he have all the information of the transaction taking place between nodes?
Thank you.
How miner validates each transaction? Does he have all the information of the transaction taking place between nodes?
Thank you.
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.
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: https://bitcoin.stackexchange.com/questions/148/what-exactly-is-mining
– Osias Jota Mar 07 '18 at 12:00