1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Ethereum miners for solidity logs

Discussion in 'Finance' started by SSS, Aug 2, 2020 at 2:03 AM.

  1. SSS

    SSS Guest

    I wanted to know what kind of transaction validation miners would do for the code written below. The code below is simple creating a student logs. So when i say the transaction will be validated by miners before making a block then what exactly is the expectation as in this transaction no ether is involved ?

    I understand that the EVM is verifying the transaction(may be they check the address it came from is valid , the signature and all that stuff) and expects required gas to process the below code. My question is in context of bitcoins, in bitcoins the coins are tracked and each minor verify the contains of the transaction not just the signature. It also verify where the account trying to send bitcoins is actually owning it to transfer and all that kind of stuff. Now when my smart contract is just creating a student record as in below code, how minor can verify what the code is trying to push in block is valid. Now when we try to modify the record that time also it will get updated to new value. I can read all logs to see the vales but when we call is immutable and needs network consensus to modify anything then how it works with Ethereum. May be I am seriously missing some concepts here but if any one can guide me to some document to refer …. it will be great help.

    function createStudents(string fname, string year, string hash, uint256 _ipfsHash) public {
    Student memory student = Student(fname, year, hash);
    students.push(student);
    studentInfo(fname, year, hash);
    ipfsHash.push(_ipfsHash);
    }

    Login To add answer/comment
     

Share This Page