Skip to content

feat(staking,poll): incremental voter weight view + snapshot at PutPollResult (IIP-59 PR 2/6)#4866

Open
envestcc wants to merge 2 commits into
iotexproject:masterfrom
envestcc:iip-59/pr2-snapshot-layer
Open

feat(staking,poll): incremental voter weight view + snapshot at PutPollResult (IIP-59 PR 2/6)#4866
envestcc wants to merge 2 commits into
iotexproject:masterfrom
envestcc:iip-59/pr2-snapshot-layer

feat(staking,poll): incremental voter weight view + snapshot at PutPo…

36e06e4
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis succeeded Jul 3, 2026 in 24s

Annotations

Check warning on line 27 in action/protocol/staking/voter_weight_view.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Rename this interface to follow Go naming conventions for single-method interfaces.

See more on https://sonarcloud.io/project/issues?id=iotexproject_iotex-core&issues=AZ8h2Wed8DAEfseQ4Kyp&open=AZ8h2Wed8DAEfseQ4Kyp&pullRequest=4866

Check failure on line 421 in action/protocol/staking/handlers.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this method to reduce its Cognitive Complexity from 16 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=iotexproject_iotex-core&issues=AZ8h2Wb38DAEfseQ4Kyl&open=AZ8h2Wb38DAEfseQ4Kyl&pullRequest=4866

Check failure on line 320 in action/protocol/staking/voter_weight_view.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this method to reduce its Cognitive Complexity from 33 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=iotexproject_iotex-core&issues=AZ8h2Wed8DAEfseQ4Kyn&open=AZ8h2Wed8DAEfseQ4Kyn&pullRequest=4866

Check failure on line 377 in action/protocol/staking/voter_weight_view.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this method to reduce its Cognitive Complexity from 20 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=iotexproject_iotex-core&issues=AZ8h2Wed8DAEfseQ4Kyo&open=AZ8h2Wed8DAEfseQ4Kyo&pullRequest=4866

Check failure on line 206 in action/protocol/staking/voter_weight_view.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this method to reduce its Cognitive Complexity from 17 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=iotexproject_iotex-core&issues=AZ8h2Wec8DAEfseQ4Kym&open=AZ8h2Wec8DAEfseQ4Kym&pullRequest=4866

Check failure on line 191 in action/protocol/staking/voter_weight_snapshot.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this method to reduce its Cognitive Complexity from 22 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=iotexproject_iotex-core&issues=AZ8g0814IxWsyRpg8oUb&open=AZ8g0814IxWsyRpg8oUb&pullRequest=4866