Skip to content

Estimate transaction gas limit properly #2921

@palango

Description

@palango

Currently we estimate the gas limit with the following code:

    def gaslimit(self, location='latest') -> int:
        gas_limit = self.web3.eth.getBlock(location)['gasLimit']
        return gas_limit * 8 // 10

In order to make the gas reserve work as intended and to lower the minimal amount of Ether a raiden user has to possess we should properly estimate the gas cost of transactions.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions