If a function call involves a memory variable, does the data in memory get added to the blockchain history?
If no, how come others can validate the transaction? Is the data only deleted after a block gets added? Doesn't that mean that when syncing the chain, I can't actually verify the results of function calls involving memory variables?
If yes (data in memory variables does get added to the blockchain history), how come memory is any cheaper than storage? And is there an easy way to access that data for a specific transaction?