func NewStore(snapshotter *snap.Snapshotter, proposeC chan<- string, commitC <-chan *string, errorC <-chan error, wg *sync.WaitGroup) *Store {
	s := &Store{proposeC: proposeC, WalletStore: make(map[[ed25519.PublicKeySize]byte]Account), snapshotter: snapshotter}
	s.readCommits(commitC, errorC)
	go func() {
		s.readCommits(commitC, errorC)
		wg.Done()
	}()
	return s
}
// NewStore creates a new Store to hold currencies
NewStore creates a new Store to hold currencies
// NewStore creates a new Store to hold currencies
func NewStore(snapshotter *snap.Snapshotter, proposeC chan<- string, commitC <-chan *string, errorC <-chan error, wg *sync.WaitGroup) *Store {
	s := &Store{proposeC: proposeC, WalletStore: make(map[[ed25519.PublicKeySize]byte]Account), snapshotter: snapshotter}
	s.readCommits(commitC, errorC)
	go func() {
		s.readCommits(commitC, errorC)
		wg.Done()
	}()
	return s
}
func NewStore ( snapshotter * snap . Snapshotter , proposeC chan <- string , commitC <- chan * string , errorC <- chan error , wg * sync . WaitGroup ) * Store { s := & Store { proposeC : proposeC , WalletStore : make ( map [ [ ed25519 . PublicKeySize ] byte ] Account ) , snapshotter : snapshotter } s . readCommits ( commitC , errorC ) go func ( ) { s . readCommits ( commitC , errorC ) wg . Done ( ) } ( ) return s }
NewStore creates a new Store to hold currencies
NewStore creates a new Store to hold currencies