Merge pull request #8157 from elijaharita/feat/ensemble-mocknet-getter

feat: itests: add itests ensemble mocknet getter
This commit is contained in:
Łukasz Magiera 2022-02-21 00:04:20 +01:00 committed by GitHub
commit 7351939053
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -151,6 +151,11 @@ func NewEnsemble(t *testing.T, opts ...EnsembleOpt) *Ensemble {
return n
}
// Mocknet returns the underlying mocknet.
func (n *Ensemble) Mocknet() mocknet.Mocknet {
return n.mn
}
// FullNode enrolls a new full node.
func (n *Ensemble) FullNode(full *TestFullNode, opts ...NodeOpt) *Ensemble {
options := DefaultNodeOpts