Question: Consider the following Solidity function contained in a Ethereum contract: function foo ( uint 2 5 6 x , uint 2 5 6 y )
Consider the following Solidity function contained in a Ethereum contract:
function foouint x uint y
while uintshax y
x;
Using an x and a y for which this function never terminates, explain how a malicious miner could use this function to waste other miners resources, without spending any of its own resources. pts
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
