Skip to content

feat(nano): remove Context.timestamp and move BlockData to Context#1381

Merged
glevco merged 2 commits intomasterfrom
feat/nano/improve-context
Aug 26, 2025
Merged

feat(nano): remove Context.timestamp and move BlockData to Context#1381
glevco merged 2 commits intomasterfrom
feat/nano/improve-context

Conversation

@glevco
Copy link
Contributor

@glevco glevco commented Aug 22, 2025

Motivation

Move BlockData from inside VertexData to its own block attribute on Context. Remove the Context.timestamp attribute as the block timestamp should be used.

ATTENTION: This may be a breaking change if any existing blueprint is using the refactored attributes.

Acceptance Criteria

  • Refactor Context, removing the timestamp attribute and moving block data from vertex to the context itself.
  • Make actions_list immutable.
  • Update tests.

Checklist

  • If you are requesting a merge into master, confirm this code is production-ready and can be included in future releases as soon as it gets merged

@glevco glevco self-assigned this Aug 22, 2025
@glevco glevco requested a review from jansegre as a code owner August 22, 2025 18:11
@glevco glevco requested a review from msbrogli as a code owner August 22, 2025 18:11
@glevco glevco moved this from Todo to In Progress (Done) in Hathor Network Aug 22, 2025
@github-actions
Copy link

github-actions bot commented Aug 22, 2025

🐰 Bencher Report

Branchfeat/nano/improve-context
Testbedubuntu-22.04
Click to view all benchmark results
BenchmarkLatencyBenchmark Result
minutes (m)
(Result Δ%)
Lower Boundary
minutes (m)
(Limit %)
Upper Boundary
minutes (m)
(Limit %)
sync-v2 (up to 20000 blocks)📈 view plot
🚷 view threshold
1.90 m
(+13.29%)Baseline: 1.67 m
1.51 m
(79.44%)
2.01 m
(94.41%)
🐰 View full continuous benchmarking report in Bencher

msbrogli
msbrogli previously approved these changes Aug 22, 2025
@glevco glevco moved this from In Progress (Done) to In Review (WIP) in Hathor Network Aug 22, 2025
@codecov
Copy link

codecov bot commented Aug 22, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.69%. Comparing base (ea93f66) to head (35ddac0).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1381      +/-   ##
==========================================
+ Coverage   85.62%   85.69%   +0.06%     
==========================================
  Files         429      429              
  Lines       32450    32444       -6     
  Branches     5068     5066       -2     
==========================================
+ Hits        27786    27802      +16     
+ Misses       3631     3616      -15     
+ Partials     1033     1026       -7     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@glevco glevco moved this from In Review (WIP) to In Review (Done) in Hathor Network Aug 25, 2025
@glevco glevco force-pushed the feat/nano/improve-context branch from 7ed2b83 to 35ddac0 Compare August 26, 2025 13:56
@github-project-automation github-project-automation bot moved this from In Review (Done) to In Review (WIP) in Hathor Network Aug 26, 2025
@glevco glevco moved this from In Review (WIP) to In Review (Done) in Hathor Network Aug 26, 2025
@glevco glevco merged commit b2775be into master Aug 26, 2025
8 checks passed
@glevco glevco deleted the feat/nano/improve-context branch August 26, 2025 14:59
@github-project-automation github-project-automation bot moved this from In Review (Done) to Waiting to be deployed in Hathor Network Aug 26, 2025
@jansegre jansegre mentioned this pull request Sep 11, 2025
2 tasks
@jansegre jansegre moved this from Waiting to be deployed to Done in Hathor Network Sep 18, 2025
@jansegre jansegre mentioned this pull request Sep 24, 2025
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants