aboutsummaryrefslogtreecommitdiffstats
path: root/dex/governance.go
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2019-01-24 15:05:24 +0800
committerWei-Ning Huang <w@byzantine-lab.io>2019-06-12 17:27:21 +0800
commitf55616df4fb5de81f25997feefd52d0554f985c6 (patch)
treeb2fb44ab914f6b05a901690a90adb385c0cd26fb /dex/governance.go
parent3c774363f4df8cad3e8aafa594c5f2b417b7330e (diff)
downloadgo-tangerine-f55616df4fb5de81f25997feefd52d0554f985c6.tar
go-tangerine-f55616df4fb5de81f25997feefd52d0554f985c6.tar.gz
go-tangerine-f55616df4fb5de81f25997feefd52d0554f985c6.tar.bz2
go-tangerine-f55616df4fb5de81f25997feefd52d0554f985c6.tar.lz
go-tangerine-f55616df4fb5de81f25997feefd52d0554f985c6.tar.xz
go-tangerine-f55616df4fb5de81f25997feefd52d0554f985c6.tar.zst
go-tangerine-f55616df4fb5de81f25997feefd52d0554f985c6.zip
consensus: dexcon: snapshot round height when finalizing block (#170)
Instead of having BP to send a tx to register the round height, just modify the state when finalizing block.
Diffstat (limited to 'dex/governance.go')
-rw-r--r--dex/governance.go14
1 files changed, 0 insertions, 14 deletions
diff --git a/dex/governance.go b/dex/governance.go
index e9ea1f89c..1b037cf2b 100644
--- a/dex/governance.go
+++ b/dex/governance.go
@@ -145,20 +145,6 @@ func (d *DexconGovernance) NodeSet(round uint64) []coreCrypto.PublicKey {
return pks
}
-// NotifyRoundHeight register the mapping between round and height.
-func (d *DexconGovernance) NotifyRoundHeight(targetRound, consensusHeight uint64) {
- data, err := vm.PackNotifyRoundHeight(targetRound, consensusHeight)
- if err != nil {
- log.Error("failed to pack snapshotRound input", "err", err)
- return
- }
-
- err = d.sendGovTx(context.Background(), data)
- if err != nil {
- log.Error("failed to send snapshotRound tx", "err", err)
- }
-}
-
// AddDKGComplaint adds a DKGComplaint.
func (d *DexconGovernance) AddDKGComplaint(round uint64, complaint *dkgTypes.Complaint) {
data, err := vm.PackAddDKGComplaint(round, complaint)