Skip to content

Conversation

@Dosik13
Copy link
Contributor

@Dosik13 Dosik13 commented Nov 2, 2025

Description:
Implemented the FreezeTransaction class and FreezeType enum that allow freezing network.

  • Add FreezeType enum class implementation with support for all freeze types (FREEZE_ONLY, PREPARE_UPGRADE, FREEZE_UPGRADE, FREEZE_ABORT, TELEMETRY_UPGRADE)
  • Add FreezeTransaction class implementation that enables freezing the network with configurable parameters (start_time, file_id, file_hash, freeze_type)
  • Add unit tests for FreezeTransaction class
  • Add unit tests for FreezeType enum class
  • Add FreezeTransaction and FreezeType to __init__.py file in __all__ list
  • Update CHANGELOG with FreezeTransaction and FreezeType functionality additions

Related issue(s):

Fixes #260

Notes for reviewer:

Didn't add integration tests as it is hard and unnecessary to test. (I believe it won't be used by the users)

Checklist

  • Documented (Code comments, README, etc.)
  • Tested (unit, integration, etc.)

@Dosik13 Dosik13 marked this pull request as ready for review November 2, 2025 16:30
@nadineloepfe
Copy link
Contributor

awesome PR, thank you! Would it be possible to also add an example script thought (hardcoded to solo ofc? just for documentation purposes with a warning about required permissions. I'm fine with not adding integration tests however

@Dosik13
Copy link
Contributor Author

Dosik13 commented Nov 5, 2025

Won't there be a problem with the CI, because when it runs the example it could stop the network 😄

@nadineloepfe
Copy link
Contributor

@Dosik13: that's a fair point. would need an unfreeze. ok, changelog rebase and we're good, thanks :D

@Dosik13 Dosik13 force-pushed the feature/add-FreezeTransaction branch from 948cb0f to 140dbb0 Compare November 6, 2025 07:41
@exploreriii exploreriii merged commit 94d6fac into hiero-ledger:main Nov 6, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add FreezeTransaction

3 participants