Skip to content

core/state, triedb/pathdb: fix prefetcher race during pipelined SRC

acc0ef7
Select commit
Loading
Failed to load commit list.
Open

miner, core, consensus/bor, eth, triedb: pipelined state root computation (PoC) #2180

core/state, triedb/pathdb: fix prefetcher race during pipelined SRC
acc0ef7
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed Apr 10, 2026 in 1m 17s

Quality Gate failed

Annotations

Check failure on line 148 in core/block_validator.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "%w (remote: %x local: %x)" 4 times.

See more on https://sonarcloud.io/project/issues?id=0xPolygon_bor&issues=AZ1x0w37i9Z6KQlE8hGd&open=AZ1x0w37i9Z6KQlE8hGd&pullRequest=2180

Check failure on line 6478 in core/blockchain_test.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "failed to create pipeline chain: %v" 3 times.

See more on https://sonarcloud.io/project/issues?id=0xPolygon_bor&issues=AZ1x0w5Oi9Z6KQlE8hGe&open=AZ1x0w5Oi9Z6KQlE8hGe&pullRequest=2180

Check failure on line 1216 in consensus/bor/bor.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "Error while committing states" 3 times.

See more on https://sonarcloud.io/project/issues?id=0xPolygon_bor&issues=AZ1JxLOFMy6llO4qwxL4&open=AZ1JxLOFMy6llO4qwxL4&pullRequest=2180

Check failure on line 6485 in core/blockchain_test.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "failed to create reference chain: %v" 3 times.

See more on https://sonarcloud.io/project/issues?id=0xPolygon_bor&issues=AZ1x0w5Oi9Z6KQlE8hGf&open=AZ1x0w5Oi9Z6KQlE8hGf&pullRequest=2180

Check failure on line 1229 in consensus/bor/bor.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "Error changing contract code" 3 times.

See more on https://sonarcloud.io/project/issues?id=0xPolygon_bor&issues=AZ1JxLOFMy6llO4qwxL3&open=AZ1JxLOFMy6llO4qwxL3&pullRequest=2180

Check warning on line 784 in miner/pipeline.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

This function has 9 parameters, which is greater than the 7 authorized.

See more on https://sonarcloud.io/project/issues?id=0xPolygon_bor&issues=AZ1JxLOWMy6llO4qwxL6&open=AZ1JxLOWMy6llO4qwxL6&pullRequest=2180

Check failure on line 601 in tests/bor/helper.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "InitMiner-" 3 times.

See more on https://sonarcloud.io/project/issues?id=0xPolygon_bor&issues=AZ1JxLQwMy6llO4qwxME&open=AZ1JxLQwMy6llO4qwxME&pullRequest=2180

Check failure on line 6818 in core/blockchain_test.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=0xPolygon_bor&issues=AZ1x0w5Oi9Z6KQlE8hGg&open=AZ1x0w5Oi9Z6KQlE8hGg&pullRequest=2180

Check failure on line 3187 in tests/bor/bor_test.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "Importer synced to block %d" 3 times.

See more on https://sonarcloud.io/project/issues?id=0xPolygon_bor&issues=AZ11lOxPIXK3d2b_HsLp&open=AZ11lOxPIXK3d2b_HsLp&pullRequest=2180

Check failure on line 4522 in core/blockchain.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

See more on https://sonarcloud.io/project/issues?id=0xPolygon_bor&issues=AZ1x0w3ii9Z6KQlE8hGb&open=AZ1x0w3ii9Z6KQlE8hGb&pullRequest=2180

Check failure on line 4661 in core/blockchain.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

See more on https://sonarcloud.io/project/issues?id=0xPolygon_bor&issues=AZ1JxLKnMy6llO4qwxL1&open=AZ1JxLKnMy6llO4qwxL1&pullRequest=2180

Check failure on line 3208 in tests/bor/bor_test.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "importer missing block %d" 3 times.

See more on https://sonarcloud.io/project/issues?id=0xPolygon_bor&issues=AZ11lOxPIXK3d2b_HsLn&open=AZ11lOxPIXK3d2b_HsLn&pullRequest=2180

Check failure on line 782 in core/blockchain.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

See more on https://sonarcloud.io/project/issues?id=0xPolygon_bor&issues=AZ1x0w3ii9Z6KQlE8hGa&open=AZ1x0w3ii9Z6KQlE8hGa&pullRequest=2180

Check failure on line 4842 in core/blockchain.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=0xPolygon_bor&issues=AZ1x0w3ii9Z6KQlE8hGc&open=AZ1x0w3ii9Z6KQlE8hGc&pullRequest=2180

Check failure on line 153 in miner/pipeline.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

See more on https://sonarcloud.io/project/issues?id=0xPolygon_bor&issues=AZ1JxLOWMy6llO4qwxL5&open=AZ1JxLOWMy6llO4qwxL5&pullRequest=2180

Check failure on line 611 in tests/bor/helper.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "0.0.0.0:0" 4 times.

See more on https://sonarcloud.io/project/issues?id=0xPolygon_bor&issues=AZ1JxLQwMy6llO4qwxMD&open=AZ1JxLQwMy6llO4qwxMD&pullRequest=2180

Check failure on line 1207 in consensus/bor/bor.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "Error while committing span" 3 times.

See more on https://sonarcloud.io/project/issues?id=0xPolygon_bor&issues=AZ1JxLOFMy6llO4qwxL2&open=AZ1JxLOFMy6llO4qwxL2&pullRequest=2180

Check failure on line 3176 in tests/bor/bor_test.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "Timed out waiting for importer to reach block %d, current: %d" 3 times.

See more on https://sonarcloud.io/project/issues?id=0xPolygon_bor&issues=AZ11lOxPIXK3d2b_HsLq&open=AZ11lOxPIXK3d2b_HsLq&pullRequest=2180

Check failure on line 3205 in tests/bor/bor_test.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "BP missing block %d" 3 times.

See more on https://sonarcloud.io/project/issues?id=0xPolygon_bor&issues=AZ11lOxPIXK3d2b_HsLo&open=AZ11lOxPIXK3d2b_HsLo&pullRequest=2180

Check failure on line 62 in miner/speculative_chain_reader_test.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "block9-pending" 4 times.

See more on https://sonarcloud.io/project/issues?id=0xPolygon_bor&issues=AZ1JxLPbMy6llO4qwxL7&open=AZ1JxLPbMy6llO4qwxL7&pullRequest=2180

Check failure on line 1031 in core/state/statedb.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

See more on https://sonarcloud.io/project/issues?id=0xPolygon_bor&issues=AZ1x0wy8i9Z6KQlE8hGZ&open=AZ1x0wy8i9Z6KQlE8hGZ&pullRequest=2180

Check failure on line 2304 in core/blockchain.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "Failed to write block into disk" 3 times.

See more on https://sonarcloud.io/project/issues?id=0xPolygon_bor&issues=AZ1JxLKnMy6llO4qwxLz&open=AZ1JxLKnMy6llO4qwxLz&pullRequest=2180