Skip to content

chore(nano): remove deprecated ctx.timestamp#1413

Merged
msbrogli merged 1 commit intomasterfrom
chore/nano/remove-ctx-timestamp
Sep 25, 2025
Merged

chore(nano): remove deprecated ctx.timestamp#1413
msbrogli merged 1 commit intomasterfrom
chore/nano/remove-ctx-timestamp

Conversation

@glevco
Copy link
Contributor

@glevco glevco commented Sep 15, 2025

Motivation

Remove deprecated property in preparation for nano on mainnet.

Acceptance Criteria

  • Remove deprecated ctx.timestamp property.
  • Add OCBBlueprintNotConfirmed handling on blueprint API.

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 Sep 15, 2025
@glevco glevco moved this from Todo to In Progress (Done) in Hathor Network Sep 15, 2025
Comment on lines 93 to 95
except (BlueprintDoesNotExist, OCBBlueprintNotConfirmed):
request.setResponseCode(404)
error_response = ErrorResponse(success=False, error=f'Blueprint not found: {params.blueprint_id}')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should the error message be different for the new exception? Is it not a problem to return "Blueprint not found" in this error?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice suggestion. Done!

msbrogli
msbrogli previously approved these changes Sep 17, 2025
@msbrogli msbrogli moved this from In Progress (Done) to In Review (WIP) in Hathor Network Sep 17, 2025
@msbrogli msbrogli moved this from In Review (WIP) to In Review (Done) in Hathor Network Sep 17, 2025
@glevco glevco force-pushed the chore/nano/remove-ctx-timestamp branch from 0df051e to a7308a0 Compare September 17, 2025 15:04
@glevco glevco moved this from In Review (Done) to In Review (WIP) in Hathor Network Sep 17, 2025
@codecov
Copy link

codecov bot commented Sep 17, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.92%. Comparing base (8f23d02) to head (a7308a0).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1413      +/-   ##
==========================================
- Coverage   86.03%   85.92%   -0.12%     
==========================================
  Files         432      432              
  Lines       32822    32819       -3     
  Branches     5114     5113       -1     
==========================================
- Hits        28239    28200      -39     
- Misses       3575     3599      +24     
- Partials     1008     1020      +12     

☔ 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.

jansegre
jansegre previously approved these changes Sep 24, 2025
msbrogli
msbrogli previously approved these changes Sep 25, 2025
@msbrogli msbrogli dismissed stale reviews from jansegre and themself via b49773a September 25, 2025 15:22
@msbrogli msbrogli force-pushed the chore/nano/remove-ctx-timestamp branch from a7308a0 to b49773a Compare September 25, 2025 15:22
@msbrogli msbrogli merged commit b49773a into master Sep 25, 2025
3 of 7 checks passed
@msbrogli msbrogli deleted the chore/nano/remove-ctx-timestamp branch September 25, 2025 15:23
@github-project-automation github-project-automation bot moved this from In Review (WIP) to Waiting to be deployed in Hathor Network Sep 25, 2025
@github-actions
Copy link

🐰 Bencher Report

Branchchore/nano/remove-ctx-timestamp
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.94 m
(+13.77%)Baseline: 1.70 m
1.53 m
(79.11%)
2.04 m
(94.81%)
🐰 View full continuous benchmarking report in Bencher

@jansegre jansegre mentioned this pull request Sep 26, 2025
2 tasks
@jansegre jansegre moved this from Waiting to be deployed to Done in Hathor Network Sep 26, 2025
@jansegre jansegre mentioned this pull request Oct 16, 2025
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants