func SetupBlockchainWithTime(initialValidators int, c *config.Config, genesisTime time.Time) (*beacon.Blockchain, validator.Keystore, error) {
	keystore := validator.NewFakeKeyStore()

	validators, err := InitialValidators(initialValidators, keystore, c)
	if err != nil {
		return nil, nil, err
	}

	b, err := beacon.NewBlockchainWithInitialValidators(db.NewInMemoryDB(), c, validators, true, uint64(genesisTime.Unix()))
	if err != nil {
		return nil, nil, err
	}

	return b, &keystore, nil
}
// SetupBlockchainWithTime sets up a blockchain with a certain number of initial validators and genesis time
SetupBlockchainWithTime sets up a blockchain with a certain number of initial validators and genesis time
// SetupBlockchainWithTime sets up a blockchain with a certain number of initial validators and genesis time
func SetupBlockchainWithTime(initialValidators int, c *config.Config, genesisTime time.Time) (*beacon.Blockchain, validator.Keystore, error) {
	keystore := validator.NewFakeKeyStore()
	validators, err := InitialValidators(initialValidators, keystore, c)
	if err != nil {
		return nil, nil, err
	}
	b, err := beacon.NewBlockchainWithInitialValidators(db.NewInMemoryDB(), c, validators, true, uint64(genesisTime.Unix()))
	if err != nil {
		return nil, nil, err
	}
	return b, &keystore, nil
}
func SetupBlockchainWithTime ( initialValidators int , c * config . Config , genesisTime time . Time ) ( * beacon . Blockchain , validator . Keystore , error ) { keystore := validator . NewFakeKeyStore ( ) validators , err := InitialValidators ( initialValidators , keystore , c ) if err != nil { return nil , nil , err } b , err := beacon . NewBlockchainWithInitialValidators ( db . NewInMemoryDB ( ) , c , validators , true , uint64 ( genesisTime . Unix ( ) ) ) if err != nil { return nil , nil , err } return b , & keystore , nil }
SetupBlockchainWithTime sets up a blockchain with a certain number of initial validators and genesis time
SetupBlockchainWithTime sets up a blockchain with a certain number of initial validators and genesis time