e2e: add generator tests (#7008)

This commit is contained in:
Sam Kleinman
2021-09-27 15:38:03 -04:00
committed by GitHub
parent 6eaa3b24d6
commit 8023a2aeef
4 changed files with 113 additions and 7 deletions
+5
View File
@@ -150,6 +150,11 @@ type ManifestNode struct {
UseLegacyP2P bool `toml:"use_legacy_p2p"`
}
// Stateless reports whether m is a node that does not own state, including light and seed nodes.
func (m ManifestNode) Stateless() bool {
return m.Mode == string(ModeLight) || m.Mode == string(ModeSeed)
}
// Save saves the testnet manifest to a file.
func (m Manifest) Save(file string) error {
f, err := os.Create(file)