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 13:49:54 +0800
commitcd418f06bbb614d0431fb633ac53549bf03ac917 (patch)
tree93b1019856e3afd170deff419b850d27927b9d86 /dex
parentb2470a70edcc1a834a863414c979832e1c3a89ba (diff)
downloaddexon-cd418f06bbb614d0431fb633ac53549bf03ac917.tar
dexon-cd418f06bbb614d0431fb633ac53549bf03ac917.tar.gz
dexon-cd418f06bbb614d0431fb633ac53549bf03ac917.tar.bz2
dexon-cd418f06bbb614d0431fb633ac53549bf03ac917.tar.lz
dexon-cd418f06bbb614d0431fb633ac53549bf03ac917.tar.xz
dexon-cd418f06bbb614d0431fb633ac53549bf03ac917.tar.zst
dexon-cd418f06bbb614d0431fb633ac53549bf03ac917.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)