Created
June 23, 2021 14:47
-
-
Save andrewkkchan/c77293260d0fb48e45ea5189ce86024d to your computer and use it in GitHub Desktop.
Order function at Hyper ledger Fabric
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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