diff options
author | Wei-Ning Huang <w@dexon.org> | 2019-01-04 23:59:17 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-04-09 21:32:55 +0800 |
commit | 5e4fb304eb14b2dccdbd6364fb4933bb1d9306fa (patch) | |
tree | 464ec3965e8b0f772882d92abbc80b9edf8b1446 /dex | |
parent | 1ee5c504cd3d197ce7c83a06c8cdf4e05f0d48b1 (diff) | |
download | dexon-5e4fb304eb14b2dccdbd6364fb4933bb1d9306fa.tar dexon-5e4fb304eb14b2dccdbd6364fb4933bb1d9306fa.tar.gz dexon-5e4fb304eb14b2dccdbd6364fb4933bb1d9306fa.tar.bz2 dexon-5e4fb304eb14b2dccdbd6364fb4933bb1d9306fa.tar.lz dexon-5e4fb304eb14b2dccdbd6364fb4933bb1d9306fa.tar.xz dexon-5e4fb304eb14b2dccdbd6364fb4933bb1d9306fa.tar.zst dexon-5e4fb304eb14b2dccdbd6364fb4933bb1d9306fa.zip |
vendor: sync to latest core (#129)
Diffstat (limited to 'dex')
-rw-r--r-- | dex/governance.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/dex/governance.go b/dex/governance.go index bcc2cca51..199bcdc87 100644 --- a/dex/governance.go +++ b/dex/governance.go @@ -27,6 +27,7 @@ import ( dexCore "github.com/dexon-foundation/dexon-consensus/core" coreCrypto "github.com/dexon-foundation/dexon-consensus/core/crypto" coreEcdsa "github.com/dexon-foundation/dexon-consensus/core/crypto/ecdsa" + coreTypes "github.com/dexon-foundation/dexon-consensus/core/types" dkgTypes "github.com/dexon-foundation/dexon-consensus/core/types/dkg" "github.com/dexon-foundation/dexon/common" @@ -291,3 +292,11 @@ func (d *DexconGovernance) DKGSet(round uint64) (map[string]struct{}, error) { } return r, nil } + +func (d *DexconGovernance) ReportForkVote(vote1, vote2 *coreTypes.Vote) { + // TODO: finish this. +} + +func (d *DexconGovernance) ReportForkBlock(block1, block2 *coreTypes.Block) { + // TODO: finish this. +} |