The aim of a full node in Bitcoin is to independently confirm the consensus guidelines for transactions and blocks. This implies your node will examine each transaction and each block earlier than accepting it as a part of the heaviest chain.
Miners resolve which transactions to incorporate in a block after which full nodes examine that these transactions are legitimate transactions earlier than accepting the block.
From the standpoint of a Bitcoin full node, there isn’t a such factor as an “unlawful transaction.” There are solely legitimate transactions and invalid transactions. Moreover, since Bitcoin is a world community, it does not actually make sense to speak about transactions being authorized or unlawful since these are native, jurisdictional ideas. For instance, what is taken into account unlawful in a single nation is perhaps completely authorized in a foreign country. If miners in a sure jurisdiction resolve to not mine a selected transaction as a result of an area restriction, this doesn’t forestall miners in a unique jurisdiction from mining the transaction.