aboutsummaryrefslogtreecommitdiffstats
path: root/dex
diff options
context:
space:
mode:
authorSonic <sonic@cobinhood.com>2018-10-22 11:49:29 +0800
committerWei-Ning Huang <w@dexon.org>2019-04-09 21:32:50 +0800
commitb5c7aaae2a314bb259bf9fc5bd2ee58a4d10661a (patch)
tree5d78a0c2eecc9a763f28caae8ec64006dde05c41 /dex
parent57e39b9f4813087014082d98f505631e616f0cb1 (diff)
downloaddexon-b5c7aaae2a314bb259bf9fc5bd2ee58a4d10661a.tar.gz
dexon-b5c7aaae2a314bb259bf9fc5bd2ee58a4d10661a.tar.zst
dexon-b5c7aaae2a314bb259bf9fc5bd2ee58a4d10661a.zip
geth: add propose flag to enable/disable proposing
Diffstat (limited to 'dex')
-rw-r--r--dex/backend.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/dex/backend.go b/dex/backend.go
index 7a7ad7f47..9c931ee2c 100644
--- a/dex/backend.go
+++ b/dex/backend.go
@@ -255,6 +255,13 @@ func (s *Dexon) Stop() error {
return nil
}
+func (s *Dexon) StartProposing() error {
+ // TODO(sonic):
+ // enable dispatch vote, agreement result, finalization result.. msg to consensus core.
+ log.Debug("###############start proposing")
+ return nil
+}
+
// CreateDB creates the chain database.
func CreateDB(ctx *node.ServiceContext, config *Config, name string) (ethdb.Database, error) {
db, err := ctx.OpenDatabase(name, config.DatabaseCache, config.DatabaseHandles)