func NewActionStreamGenerator(cb func(action *pb.ShardChainAction), config *config.Config) *ActionStreamGenerator {
	return &ActionStreamGenerator{
		cb:     cb,
		config: config,
	}
}
// NewActionStreamGenerator creates a new action stream generator to use as a notifee to blockchain.
NewActionStreamGenerator creates a new action stream generator to use as a notifee to blockchain.
// NewActionStreamGenerator creates a new action stream generator to use as a notifee to blockchain .
func NewActionStreamGenerator(cb func(action *pb.ShardChainAction), config *config.Config) *ActionStreamGenerator {
	return &ActionStreamGenerator{
		cb:     cb,
		config: config,
	}
}
func NewActionStreamGenerator ( cb func ( action * pb . ShardChainAction ) , config * config . Config ) * ActionStreamGenerator { return & ActionStreamGenerator { cb : cb , config : config , } }
NewActionStreamGenerator creates a new action stream generator to use as a notifee to blockchain.
NewActionStreamGenerator creates a new action stream generator to use as a notifee to blockchain .