Where in the code are transactions validated?

+2 votes
Mining and transaction validation are different concepts.

As far as I know, every node validates transactions and puts the valid ones into its own memory pool. Miners select (already validated) transactions from the mempool and carry out the mining process to create a block.

Do miners carry out additional checks?

I'm not proficient with C++, but it looks like transaction validation is carried out in main.cpp (AccepttoMemoryPool,...), whereas transaction selection and mining occur in miner/miner.cpp

Is it true?
asked Oct 10, 2018 by anonymous

1 Answer

0 votes

No, miners do not carry out additional checks after accepting transactions into their memory pool, because there is nothing additional to be checked. The most relevant function to look at is AcceptMultiChainTransaction().

answered Oct 11, 2018 by MultiChain
...