Skip to content

feat(nano): add recent changes [part 17]#1301

Merged
jansegre merged 1 commit intomasterfrom
feat/nano/part17
Jun 26, 2025
Merged

feat(nano): add recent changes [part 17]#1301
jansegre merged 1 commit intomasterfrom
feat/nano/part17

Conversation

@glevco
Copy link
Contributor

@glevco glevco commented Jun 25, 2025

Motivation

Update master with the final changes made on nano-master during the merge process.

Acceptance Criteria

  • Activate and fix anti-mev.
  • Implement upgradeable contracts.
  • Fix support of some field types.
  • Other smaller changes and improvements.

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 Jun 25, 2025
@glevco glevco requested review from jansegre and msbrogli as code owners June 25, 2025 23:26
@glevco glevco force-pushed the feat/nano/part17 branch from dbc19e9 to 70bf085 Compare June 25, 2025 23:27
Comment on lines +66 to +71
assert b12.get_metadata().voided_by is None
b12_storage = self.manager.get_nc_storage(b12, nc1.hash)

with self.assertRaises(KeyError):
b12_storage.get_obj(b'dc:\x03foo', INT_VARTUPLE_NC_TYPE)
assert b12_storage.get_obj(b'dc:\x03bar', INT_VARTUPLE_NC_TYPE) == (4, 5, 6, 7)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

b12 is useless, we can remove it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Postponed thread.

@glevco
Copy link
Contributor Author

glevco commented Jun 25, 2025

LGTM ✅

@glevco glevco moved this from Todo to In Progress (Done) in Hathor Network Jun 25, 2025
@codecov
Copy link

codecov bot commented Jun 25, 2025

Codecov Report

Attention: Patch coverage is 95.71429% with 6 lines in your changes missing coverage. Please review.

Project coverage is 85.56%. Comparing base (99f0b26) to head (d1b8458).
Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
hathor/nanocontracts/nc_types/tuple_nc_type.py 60.00% 3 Missing and 3 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1301      +/-   ##
==========================================
+ Coverage   85.27%   85.56%   +0.28%     
==========================================
  Files         426      426              
  Lines       31908    31940      +32     
  Branches     4950     4961      +11     
==========================================
+ Hits        27211    27330     +119     
+ Misses       3674     3604      -70     
+ Partials     1023     1006      -17     

☔ 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 Jun 26, 2025
@github-project-automation github-project-automation bot moved this from In Progress (Done) to In Review (WIP) in Hathor Network Jun 26, 2025
@glevco glevco moved this from In Review (WIP) to In Review (Done) in Hathor Network Jun 26, 2025
@glevco glevco force-pushed the tests/nano/batch2 branch from 5e54f1d to 9b71b40 Compare June 26, 2025 13:31
@glevco glevco changed the base branch from tests/nano/batch2 to master June 26, 2025 13:31
@glevco glevco dismissed jansegre’s stale review June 26, 2025 13:31

The base branch was changed.

@glevco glevco force-pushed the feat/nano/part17 branch from 70bf085 to d1b8458 Compare June 26, 2025 15:12
@github-actions
Copy link

🐰 Bencher Report

Branchfeat/nano/part17
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.68 m
(+2.66%)Baseline: 1.64 m
1.47 m
(87.67%)
1.80 m
(93.33%)
🐰 View full continuous benchmarking report in Bencher

@jansegre jansegre merged commit 9d1fe2a into master Jun 26, 2025
8 checks passed
@jansegre jansegre deleted the feat/nano/part17 branch June 26, 2025 15:51
@github-project-automation github-project-automation bot moved this from In Review (Done) to Waiting to be deployed in Hathor Network Jun 26, 2025
@jansegre jansegre mentioned this pull request Jul 22, 2025
2 tasks
@jansegre jansegre moved this from Waiting to be deployed to Done in Hathor Network Jul 22, 2025
@jansegre jansegre mentioned this pull request Aug 7, 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.

2 participants