Feature/subnet plugin#11126
Conversation
…ter and update SnapshotManager and SubnetSnapshotManager accordingly. Add unit tests for SubnetSnapshotManager to validate snapshot retrieval and storage behavior.
…r improved readability.
… SubnetSnapshotManager
…SnapshotManager to accept penalty handler
…r order and improve test setup
…s on genesis blocks
| public const string Optimism = nameof(Optimism); | ||
| public const string Taiko = nameof(Taiko); | ||
| public const string XDPoS = nameof(XDPoS); | ||
| public const string XDPoSSubnet = nameof(XDPoSSubnet); |
There was a problem hiding this comment.
Can we put those in plugins? They are just strings.
|
@claude code review |
|
Claude finished @ak88's task in 2m 48s —— View job Code Review: Feature/subnet plugin
SummaryThe PR introduces a Critical Bugs1.
|
|
code review @claude |
|
Claude finished @ak88's task in 3m 45s —— View job Code Review: Feature/subnet plugin
SummaryThis PR adds Critical Bugs1.
|
* Add subnet snapshot and epoch managers * Refactor BaseSnapshotManager to accept a snapshot decoder as a parameter and update SnapshotManager and SubnetSnapshotManager accordingly. Add unit tests for SubnetSnapshotManager to validate snapshot retrieval and storage behavior. * Fix formatting in BaseSnapshotManager by adjusting brace placement for improved readability. * refactor: update snapshot management logic in BaseSnapshotManager and SubnetSnapshotManager * refactor: streamline penalty handling in snapshot managers * refactor: update constructor signatures in SnapshotManager and SubnetSnapshotManager to accept penalty handler * style: fix redundant semicolon in EpochSwitchManager * refactor: update SubnetSnapshotManager constructor to change parameter order and improve test setup * refactor: update penalty handling in SubnetSnapshot to avoid penalties on genesis blocks * plugin for subnet * move strings * fix * test fix * SubnetPenaltyHandler DI --------- Co-authored-by: Batyr Sardarbekov <aaabat71@gmail.com>
Plugin to be used for XDC subnets