[#684] neofs-adm: add labels to multisig accounts
Also check that correct multisig is generated. Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
parent
be6b8ca179
commit
a2cb9cbc49
2 changed files with 20 additions and 4 deletions
|
@ -66,6 +66,14 @@ func TestGenerateAlphabet(t *testing.T) {
|
|||
for _, a := range w.Accounts {
|
||||
err := a.Decrypt(strconv.FormatUint(i, 10), keys.NEP2ScryptParams())
|
||||
require.NoError(t, err, "can't decrypt account")
|
||||
switch a.Label {
|
||||
case consensusAccountName:
|
||||
require.Equal(t, size/2+1, len(a.Contract.Parameters))
|
||||
case committeeAccountName:
|
||||
require.Equal(t, size*2/3+1, len(a.Contract.Parameters))
|
||||
default:
|
||||
require.Equal(t, singleAccountName, a.Label)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue