fix(libs): estimated block height uses dynamic genesis - #1301
Conversation
🦋 Changeset detectedLatest commit: 9e8a104 The changes in this PR will be included in the next version bump. This PR includes changesets to release 10 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
This stack of pull requests is managed by Graphite. Learn more about stacking. |
7bbbd72 to
8bda935
Compare
There was a problem hiding this comment.
Pull Request Overview
This PR refactors the estimated block height calculation to use a dynamic genesis timestamp instead of hardcoded network-specific values. The change consolidates multiple network-specific block height functions into a single dynamic function that accepts a genesis timestamp parameter.
- Replaces hardcoded mainnet and testnet genesis timestamps with dynamic genesis timestamp parameter
- Consolidates
getMainnetBlockHeightandgetTestnetZenBlockHeightfunctions intogetBlockHeightFromGenesis - Updates all consumers to use the new dynamic function with
hardforkOak.genesisTimestamp
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| libs/units/src/blockHeight.ts | Replaces network-specific functions with single dynamic function accepting genesis timestamp |
| libs/walletd-react/src/api.ts | Updates to use new dynamic block height function with network genesis timestamp |
| libs/renterd-react/src/bus.ts | Updates to use new dynamic block height function with state genesis timestamp |
| libs/hostd-react/src/api.ts | Updates to use new dynamic block height function with state genesis timestamp |
| .changeset/cute-badgers-fly.md | Documents the breaking change for affected packages |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
8bda935 to
5bab94b
Compare
5bab94b to
094dc83
Compare
|
@n8mgr @ChrisSchinnerl not incredibly high priority but bumping this PR. Its blocked because there is no API that provides access to |
|
@alexfreska it looks like |
094dc83 to
e00bf4a
Compare
Merge activity
|
e00bf4a to
9e8a104
Compare

walletd --network=anagamishows a wrong target height in the UI walletd#238