Browse Source

comments

pull/579/head
Ethan Buchman 7 years ago
parent
commit
b0728260e9
2 changed files with 3 additions and 1 deletions
  1. +1
    -1
      consensus/reactor.go
  2. +2
    -0
      rpc/core/pipe.go

+ 1
- 1
consensus/reactor.go View File

@ -296,7 +296,7 @@ func (conR *ConsensusReactor) SetEventSwitch(evsw types.EventSwitch) {
conR.conS.SetEventSwitch(evsw) conR.conS.SetEventSwitch(evsw)
} }
// FastSync returns whether the consensus reactor is currently fast syncing
// FastSync returns whether the consensus reactor is in fast-sync mode.
func (conR *ConsensusReactor) FastSync() bool { func (conR *ConsensusReactor) FastSync() bool {
conR.mtx.RLock() conR.mtx.RLock()
defer conR.mtx.RUnlock() defer conR.mtx.RUnlock()


+ 2
- 0
rpc/core/pipe.go View File

@ -28,6 +28,8 @@ type P2P interface {
} }
//---------------------------------------------- //----------------------------------------------
// These package level globals come with setters
// that are expected to be called only once, on startup
var ( var (
// external, thread safe interfaces // external, thread safe interfaces


Loading…
Cancel
Save