-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add TestUnmanagedMiner in the itest kit for non-storage managed…
… miners
- Loading branch information
Showing
3 changed files
with
690 additions
and
197 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package kit | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/filecoin-project/go-address" | ||
"github.com/filecoin-project/lotus/chain/wallet/key" | ||
libp2pcrypto "github.com/libp2p/go-libp2p/core/crypto" | ||
"github.com/libp2p/go-libp2p/core/peer" | ||
) | ||
|
||
// TestUnmanagedMiner is a miner that's not managed by the storage/ | ||
// infrastructure, all tasks must be manually executed, managed and scheduled by | ||
// the test or test kit. | ||
type TestUnmanagedMiner struct { | ||
t *testing.T | ||
options nodeOpts | ||
|
||
ActorAddr address.Address | ||
OwnerKey *key.Key | ||
FullNode *TestFullNode | ||
Libp2p struct { | ||
PeerID peer.ID | ||
PrivKey libp2pcrypto.PrivKey | ||
} | ||
} |
Oops, something went wrong.