Skip to content

Reorg Support: Handling of orphaned blocks #360

Reorg Support: Handling of orphaned blocks

Reorg Support: Handling of orphaned blocks #360

Triggered via pull request October 30, 2024 14:40
Status Failure
Total duration 2m 52s
Artifacts

static-analysis.yaml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

11 errors and 2 warnings
Golangci-lint: internal/blocktx/store/mocks/blocktx_db_tx_mock.go#L1
: # github.com/bitcoin-sv/arc/internal/blocktx/store/mocks
Golangci-lint: internal/blocktx/store/mocks/blocktx_db_tx_mock.go#L14
cannot use &DbTransactionMock{} (value of type *DbTransactionMock) as store.DbTransaction value in variable declaration: *DbTransactionMock does not implement store.DbTransaction (missing method WriteLockBlocksTable) (typecheck)
Golangci-lint: internal/blocktx/health_check_test.go#L15
could not import github.com/bitcoin-sv/arc/internal/blocktx/store/mocks (-: # github.com/bitcoin-sv/arc/internal/blocktx/store/mocks
Golangci-lint: internal/blocktx/store/mocks/blocktx_db_tx_mock.go#L14
cannot use &DbTransactionMock{} (value of type *DbTransactionMock) as store.DbTransaction value in variable declaration: *DbTransactionMock does not implement store.DbTransaction (missing method WriteLockBlocksTable)) (typecheck)
Golangci-lint
issues found
Static check: internal/blocktx/store/mocks/blocktx_db_tx_mock.go#L14
cannot use &DbTransactionMock{} (value of type *DbTransactionMock) as store.DbTransaction value in variable declaration: *DbTransactionMock does not implement store.DbTransaction (missing method WriteLockBlocksTable) (compile)
Static check: internal/blocktx/processor.go#L567
func (*Processor).getPrevChain is unused (U1000)
Static check: internal/blocktx/store/postgresql/postgres_test.go#L167
this value of id is never used (SA4006)
Static check
Process completed with exit code 1.
Static analysis: internal/blocktx/store/mocks/blocktx_db_tx_mock.go#L14
cannot use &DbTransactionMock{} (value of type *DbTransactionMock) as store.DbTransaction value in variable declaration: *DbTransactionMock does not implement store.DbTransaction (missing method WriteLockBlocksTable)
Static analysis
Process completed with exit code 1.
Golangci-lint
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-go@v4, golangci/golangci-lint-action@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Static check
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-go@v4, actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/