loading

Ethereum: The operation is not valid with the current pile size

Ethereum virtual machine (EVM) is the main engine that feeds on Ethereum block circuit. One of its main concepts is surgery, that is, wey execute the Blockchain instructions. As stated [1], the current pile of EVM may not be such that it is sufficient to handle certain operations.

BIP65 and EVM chimney size

The BIP-0065 Specification defines the maximum BYS number that can perform a bunch of surgery. According to this standard, the bunch is 256 BYS. As in practice, the actual bunch of Szee may depend on the implementation and the speaker.

Scenario Example: Operation is not valid

Here’s a simple example of a script that shows what happens, will be an attempt to examine an operation that does not have the stacks of the chimney:

`c

Pragma solidity ^0.8.0;

Treaty Simple Operation {

BOS memory data = “Hello, world!”;

MyFUNCTION () пробликайкака return function (bytes) {

If

// Verify the size of the data is 256 BYS

Hash160

// If true, do the operation and return the result

}

}

}

`

In this example, we try to carry out an operation that Data.length is half its. However, synchronous Data.length is currently 32 bytes (length line “Hello, world less!”), This operation will be

What’s next?

To overcome this restriction, developers can use the following methods:

1

2.

  • Search

    : Divide the EVM chimney into the pages and switch on operation requirements.

Conclusion *

Although the current Ethereum chimney virtual machine Ethereum may be enough for many cans, it is very important to consider TEES and implication programs. Understanding the House, EVM also operates fines to optimize its performance, Developers can create more efficient and replaceable block circuits.

Links:

[1]

Note: This article is only for information purposes and books and books.

Write a Reply or Comment

Your email address will not be published. Required fields are marked *