rename RootVerifier option.

This commit is contained in:
Raúl Kripalani 2021-06-16 18:16:59 +01:00
parent a3015ca9c2
commit 8ed753a712
2 changed files with 4 additions and 5 deletions

View File

@ -42,10 +42,9 @@ func MockProofs() EnsembleOpt {
}
}
// VerifierRootKey specifies the key to be enlisted as the verified clients
// registry root, as well as the initial balance to be attributed during
// genesis.
func VerifierRootKey(key *wallet.Key, balance abi.TokenAmount) EnsembleOpt {
// RootVerifier specifies the key to be enlisted as the verified registry root,
// as well as the initial balance to be attributed during genesis.
func RootVerifier(key *wallet.Key, balance abi.TokenAmount) EnsembleOpt {
return func(opts *ensembleOpts) error {
opts.verifiedRoot.key = key
opts.verifiedRoot.initialBalance = balance

View File

@ -40,7 +40,7 @@ func TestVerifiedClientTopUp(t *testing.T) {
require.NoError(t, err)
node, _, ens := kit2.EnsembleMinimal(t, kit2.MockProofs(),
kit2.VerifierRootKey(rootKey, abi.NewTokenAmount(bal.Int64())),
kit2.RootVerifier(rootKey, abi.NewTokenAmount(bal.Int64())),
kit2.Account(verifierKey, abi.NewTokenAmount(bal.Int64())), // assign some balance to the verifier so they can send an AddClient message.
kit2.ConstructorOpts(kit2.InstantaneousNetworkVersion(nv)))