Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Order function at Hyper ledger Fabric
// Order accepts normal messages for ordering
func (ch *chain) Order(env *cb.Envelope, configSeq uint64) error {
select {
case ch.sendChan <- &message{
configSeq: configSeq,
normalMsg: env,
return nil
case <-ch.exitChan:
return fmt.Errorf("Exiting")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment