Author | SHA1 | Message | Date |
---|---|---|---|
Anton Kaliaev |
11b68f1934
|
rewrite broadcastTxRoutine to use channels
https://play.golang.org/p/gN21yO9IRs3 ``` func waitWithCancel(f func() *clist.CElement, ctx context.Context) *clist.CElement { el := make(chan *clist.CElement, 1) select { case el <- f(): ``` will just run f() blockingly, so this doesn't change much in terms of behavior. |
7 years ago |
Ethan Buchman | 8f3bd3f209 | p2p: addrBook.Save() on DialPeersAsync | 7 years ago |
Ethan Buchman | 85816877c6 | config: fix addrbook path to go in config | 7 years ago |
Ethan Buchman | 775bb85efb | p2p/pex: wait to connect to all peers in reactor test | 7 years ago |
Ethan Buchman | 44e967184a | p2p: tmconn->conn and types->p2p | 7 years ago |
Ethan Buchman | 5b5cbaa66a | p2p: use sub dirs | 7 years ago |