ChainSafe / ChainSafe/gossamer

config: update AccountConfig `Unlock` to be of type `[]int`

Open
#1,849 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
454
Forks
144
PR merge metrics
No merged PRs in 30d

Description

## Task summary

- `AccountConfig.Unlock` should be turned into type `[]int`, representing indices of accounts in the keystore directory to be unlocked
- `keystore.UnlockKeys()` and `cmd/gossamer/unlockKeystore()` will need to be updated respectively

Contributor guide

Open the contributing guide

Research direction

The task names AccountConfig.Unlock, keystore.UnlockKeys(), and cmd/gossamer/unlockKeystore(); start by tracing how the config value reaches the keystore and command entry point. Update the affected paths so account indices are handled consistently, then verify that the affected Go code builds and the unlock behavior matches the requested []int representation.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
backend, cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.