func NewStateStore(logOutput io.Writer) (*StateStore, error) {
	// Create the MemDB
	db, err := memdb.NewMemDB(stateStoreSchema())
	if err != nil {
		return nil, fmt.Errorf("state store setup failed: %v", err)
	}

	// Create the state store
	s := &StateStore{
		logger:    log.New(logOutput, "", log.LstdFlags),
		db:        db,
		abandonCh: make(chan struct{}),
	}
	return s, nil
}
// NewStateStore is used to create a new state store
NewStateStore is used to create a new state store
// NewStateStore is used to create a new state store
func NewStateStore(logOutput io.Writer) (*StateStore, error) {
	db, err := memdb.NewMemDB(stateStoreSchema())
	if err != nil {
		return nil, fmt.Errorf("state store setup failed: %v", err)
	}
	s := &StateStore{
		logger:    log.New(logOutput, "", log.LstdFlags),
		db:        db,
		abandonCh: make(chan struct{}),
	}
	return s, nil
}
func NewStateStore ( logOutput io . Writer ) ( * StateStore , error ) { db , err := memdb . NewMemDB ( stateStoreSchema ( ) ) if err != nil { return nil , fmt . Errorf ( " " , err ) } s := & StateStore { logger : log . New ( logOutput , " " , log . LstdFlags ) , db : db , abandonCh : make ( chan struct { } ) , } return s , nil }
NewStateStore is used to create a new state store
NewStateStore is used to create a new state store
// Create the MemDB // Create the state store