filecoin-project / filecoin-project/builtin-actors

Optimize gas usage for `ExtendClaimTerms`

Open
#1,598 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
96
Forks
94
Avg merge
6d 17h
Merged PRs (30d)
3

Description

The `ExtendClaimTerms` message seems to consumes a significant amount of gas, and with enough claims, it seems like it can be the sole transaction in a block and reducing chain throughput.

Example of such a period: `2025-01-16T16:59-2025-01-16T18:27`. As seen in the provided screenshot, most blocks in the epochs here consisted of just of a single message, which was large `ExtendClaimTerms` messages.

![Image](https://github.com/user-attachments/assets/a1a37c7e-cc65-405c-b557-98e094e077ba)

Example of one such messages extending 600 Claims: https://filscan.io/en/message/bafy2bzaced33vg7rtqc3rlhnyvsz5xxptd4d6obvunpd3nxwikx5rcqhfi4qk

```
Gas Used:
9,175,608,799
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.