Skip to content

Commit 08b62be

Browse files
authored
feat(gateway): expose StateGetRandomnessDigestFromBeacon (#13339)
Used by PDP, uses chain data to get randomness which is local and fairly fast.
1 parent e90da4b commit 08b62be

File tree

9 files changed

+575
-473
lines changed

9 files changed

+575
-473
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
> * [CHANGELOG_1.2x.md](./documentation/changelog/CHANGELOG_1.2x.md) - v1.20.0 to v1.29.2
99
1010
# UNRELEASED
11+
- feat(gateway): expose StateGetRandomnessDigestFromBeacon ([filecoin-project/lotus#13339](https://github.com/filecoin-project/lotus/pull/13339))
1112

1213
# Node and Miner v1.34.0 / 2025-09-11
1314

@@ -105,7 +106,6 @@ For the set of changes since the last stable release:
105106
| Piotr Galar | 1 | +1/-1 | 1 |
106107
| Phi | 1 | +1/-1 | 1 |
107108

108-
109109
# Node v1.33.1 / 2025-07-31
110110
This is the Lotus v1.33.1 release, which introduces performance improvements and operational enhancements. This release focuses on improving F3 subsystem performance, and enhancing CLI tools for better storage provider operations. Notable improvements include up to 6-10x performance gains in F3 power table calculations, ensuring that PreCommit and ProveCommit operations are aggregating to get optimal gas usage after FIP-100, and a enhanced sector management tool with CSV output support. These improvements collectively enhance the stability and efficiency of Lotus operations for both node operators and storage providers.
111111

api/api_gateway.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ type Gateway interface {
8989
StateGetClaim(ctx context.Context, providerAddr address.Address, claimId verifregtypes.ClaimId, tsk types.TipSetKey) (*verifregtypes.Claim, error)
9090
StateGetClaims(ctx context.Context, providerAddr address.Address, tsk types.TipSetKey) (map[verifregtypes.ClaimId]verifregtypes.Claim, error)
9191
StateGetNetworkParams(ctx context.Context) (*NetworkParams, error)
92+
StateGetRandomnessDigestFromBeacon(ctx context.Context, randEpoch abi.ChainEpoch, tsk types.TipSetKey) (abi.Randomness, error)
9293
StateReadState(ctx context.Context, actor address.Address, tsk types.TipSetKey) (*ActorState, error)
9394
StateListMiners(ctx context.Context, tsk types.TipSetKey) ([]address.Address, error)
9495
StateLookupID(ctx context.Context, addr address.Address, tsk types.TipSetKey) (address.Address, error)

api/proxy_gen.go

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)