Skip to content

Implement read only flag in Mempool #1763

Implement read only flag in Mempool

Implement read only flag in Mempool #1763

Triggered via pull request October 3, 2023 15:46
Status Failure
Total duration 3m 26s
Artifacts

golangci-lint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

26 errors and 1 warning
[golangci] pkg/protocol/engine/ledger/ledger/ledger.go#L25: pkg/protocol/engine/ledger/ledger/ledger.go#L25
could not import github.com/iotaledger/iota-core/pkg/protocol/engine/mempool/v1 (-: # github.com/iotaledger/iota-core/pkg/protocol/engine/mempool/v1
[golangci] pkg/protocol/engine/mempool/v1/mempool.go#L136: pkg/protocol/engine/mempool/v1/mempool.go#L136
stateReference.ReferencedStateID undefined (type iotago.Input has no field or method ReferencedStateID)
[golangci] pkg/protocol/engine/mempool/v1/mempool.go#L232: pkg/protocol/engine/mempool/v1/mempool.go#L232
stateReference.ReferencedStateID undefined (type iotago.Input has no field or method ReferencedStateID)) (typecheck)
[golangci] pkg/protocol/engine/ledger/ledger/ledger.go#L726: pkg/protocol/engine/ledger/ledger/ledger.go#L726
cannot use loadedCommitment (variable of type *iotago.Commitment) as mempool.State value in argument to p.Resolve: *iotago.Commitment does not implement mempool.State (missing method ReadOnly) (typecheck)
[golangci] pkg/protocol/engine/ledger/ledger/ledger.go#L730: pkg/protocol/engine/ledger/ledger/ledger.go#L730
cannot use stateRef.(*iotago.BlockIssuanceCreditInput) (comma, ok expression of type *iotago.BlockIssuanceCreditInput) as mempool.State value in argument to p.Resolve: *iotago.BlockIssuanceCreditInput does not implement mempool.State (missing method ReadOnly) (typecheck)
[golangci] pkg/protocol/engine/ledger/ledger/ledger.go#L734: pkg/protocol/engine/ledger/ledger/ledger.go#L734
cannot use stateRef.(*iotago.RewardInput) (comma, ok expression of type *iotago.RewardInput) as mempool.State value in argument to p.Resolve: *iotago.RewardInput does not implement mempool.State (missing method ReadOnly) (typecheck)
[golangci] pkg/protocol/engine/ledger/ledger/vm.go#L53: pkg/protocol/engine/ledger/ledger/vm.go#L53
impossible type switch case: *iotago.Commitment
[golangci] pkg/protocol/engine/ledger/ledger/vm.go#L55: pkg/protocol/engine/ledger/ledger/vm.go#L55
impossible type switch case: *iotago.BlockIssuanceCreditInput
[golangci] pkg/protocol/engine/ledger/ledger/vm.go#L57: pkg/protocol/engine/ledger/ledger/vm.go#L57
impossible type switch case: *iotago.RewardInput
[golangci] pkg/blockfactory/blockissuer.go#L334: pkg/blockfactory/blockissuer.go#L334
cannot infer T (/home/runner/go/pkg/mod/github.com/iotaledger/hive.go/[email protected]/safemath/safe_math.go:36:1) (typecheck)
[golangci] components/debugapi/node.go#L18: components/debugapi/node.go#L18
cannot infer A (/home/runner/go/pkg/mod/github.com/iotaledger/hive.go/[email protected]/lo.go:279:1) (typecheck)
[golangci] components/inx/server_issuance.go#L55: components/inx/server_issuance.go#L55
not enough arguments in call to lo.Return2
[golangci] components/restapi/core/accounts.go#L35: components/restapi/core/accounts.go#L35
cannot infer T (/home/runner/go/pkg/mod/github.com/iotaledger/hive.go/[email protected]/safemath/safe_math.go:36:1) (typecheck)
[golangci] components/restapi/core/accounts.go#L92: components/restapi/core/accounts.go#L92
cannot infer T (/home/runner/go/pkg/mod/github.com/iotaledger/hive.go/[email protected]/lo.go:235:1) (typecheck)
[golangci] pkg/protocol/engine/ledger/tests/output.go#L1: pkg/protocol/engine/ledger/tests/output.go#L1
: # github.com/iotaledger/iota-core/pkg/protocol/engine/ledger/tests
[golangci] pkg/protocol/engine/ledger/tests/state_resolver.go#L36: pkg/protocol/engine/ledger/tests/state_resolver.go#L36
reference.ReferencedStateID undefined (type iotago.Input has no field or method ReferencedStateID)
[golangci] pkg/protocol/engine/ledger/tests/state_resolver.go#L38: pkg/protocol/engine/ledger/tests/state_resolver.go#L38
reference.ReferencedStateID undefined (type iotago.Input has no field or method ReferencedStateID)
[golangci] pkg/protocol/engine/ledger/tests/state_resolver.go#L53: pkg/protocol/engine/ledger/tests/state_resolver.go#L53
cannot use output (variable of type *iotago.Commitment) as mempool.State value in argument to promise.New[mempool.State]().Resolve: *iotago.Commitment does not implement mempool.State (missing method ReadOnly) (typecheck)
[golangci] pkg/testsuite/eviction.go#L39: pkg/testsuite/eviction.go#L39
cannot infer A (/home/runner/go/pkg/mod/github.com/iotaledger/hive.go/[email protected]/lo.go:279:1) (typecheck)
[golangci] pkg/testsuite/eviction.go#L40: pkg/testsuite/eviction.go#L40
cannot infer A (/home/runner/go/pkg/mod/github.com/iotaledger/hive.go/[email protected]/lo.go:279:1) (typecheck)
[golangci] pkg/testsuite/upgrades.go#L43: pkg/testsuite/upgrades.go#L43
not enough arguments in call to lo.PanicOnErr
[golangci] pkg/testsuite/upgrades.go#L57: pkg/testsuite/upgrades.go#L57
not enough arguments in call to lo.PanicOnErr
[golangci] pkg/testsuite/upgrades.go#L58: pkg/testsuite/upgrades.go#L58
not enough arguments in call to lo.PanicOnErr
[golangci] pkg/protocol/engine/mempool/v1/mempool.go#L136: pkg/protocol/engine/mempool/v1/mempool.go#L136
stateReference.ReferencedStateID undefined (type iotago.Input has no field or method ReferencedStateID) (typecheck)
[golangci] pkg/protocol/engine/mempool/v1/mempool.go#L232: pkg/protocol/engine/mempool/v1/mempool.go#L232
stateReference.ReferencedStateID undefined (type iotago.Input has no field or method ReferencedStateID) (typecheck)
GolangCI-Lint
reviewdog exited with status code: 1
GolangCI-Lint
Unexpected input(s) 'version', valid inputs are ['github_token', 'golangci_lint_flags', 'tool_name', 'level', 'reporter', 'filter_mode', 'fail_on_error', 'reviewdog_flags', 'workdir', 'reviewdog_version', 'golangci_lint_version', 'go_version', 'go_version_file', 'cache']