rename RootVerifier option.
This commit is contained in:
parent
a3015ca9c2
commit
8ed753a712
@ -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
|
||||
|
@ -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)))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user