aboutsummaryrefslogtreecommitdiffstats
path: root/dex/backend.go
diff options
context:
space:
mode:
Diffstat (limited to 'dex/backend.go')
-rw-r--r--dex/backend.go15
1 files changed, 7 insertions, 8 deletions
diff --git a/dex/backend.go b/dex/backend.go
index 0f68163c0..e90c3ad10 100644
--- a/dex/backend.go
+++ b/dex/backend.go
@@ -251,6 +251,10 @@ func (s *Dexon) Start(srvr *p2p.Server) error {
}
// Start the networking layer and the light server if requested
s.protocolManager.Start(srvr, maxPeers)
+
+ if s.config.BlockProposerEnabled {
+ s.bp.Start()
+ }
return nil
}
@@ -260,17 +264,12 @@ func (s *Dexon) Stop() error {
if s.indexer != nil {
s.indexer.Stop()
}
+ if s.config.BlockProposerEnabled {
+ s.bp.Stop()
+ }
return nil
}
-func (s *Dexon) StartProposing() error {
- return s.bp.Start()
-}
-
-func (s *Dexon) StopProposing() {
- s.bp.Stop()
-}
-
func (s *Dexon) IsCoreSyncing() bool {
return s.bp.IsCoreSyncing()
}