aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/dexon-foundation/dexon-consensus/core/db/interfaces.go
diff options
context:
space:
mode:
authorJimmy Hu <jimmy.hu@dexon.org>2019-04-11 09:02:21 +0800
committerWei-Ning Huang <w@byzantine-lab.io>2019-06-15 22:09:55 +0800
commit42577929821c56994da7a950f9646ac3f54ce4c6 (patch)
treee9860bd074ec5aa87508c39ad7a68ba630c57d83 /vendor/github.com/dexon-foundation/dexon-consensus/core/db/interfaces.go
parente9798937a5978224bc54dd5627bdfa5b9ca3340f (diff)
downloadgo-tangerine-42577929821c56994da7a950f9646ac3f54ce4c6.tar
go-tangerine-42577929821c56994da7a950f9646ac3f54ce4c6.tar.gz
go-tangerine-42577929821c56994da7a950f9646ac3f54ce4c6.tar.bz2
go-tangerine-42577929821c56994da7a950f9646ac3f54ce4c6.tar.lz
go-tangerine-42577929821c56994da7a950f9646ac3f54ce4c6.tar.xz
go-tangerine-42577929821c56994da7a950f9646ac3f54ce4c6.tar.zst
go-tangerine-42577929821c56994da7a950f9646ac3f54ce4c6.zip
core: add reset to dkg private key db (#355)
* vendor: sync to latest core * core: dkg private key db
Diffstat (limited to 'vendor/github.com/dexon-foundation/dexon-consensus/core/db/interfaces.go')
-rw-r--r--vendor/github.com/dexon-foundation/dexon-consensus/core/db/interfaces.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/vendor/github.com/dexon-foundation/dexon-consensus/core/db/interfaces.go b/vendor/github.com/dexon-foundation/dexon-consensus/core/db/interfaces.go
index 2c32ebb6e..a571a8021 100644
--- a/vendor/github.com/dexon-foundation/dexon-consensus/core/db/interfaces.go
+++ b/vendor/github.com/dexon-foundation/dexon-consensus/core/db/interfaces.go
@@ -80,8 +80,7 @@ type Reader interface {
GetCompactionChainTipInfo() (common.Hash, uint64)
// DKG Private Key related methods.
- HasDKGPrivateKey(round uint64) (bool, error)
- GetDKGPrivateKey(round uint64) (dkg.PrivateKey, error)
+ GetDKGPrivateKey(round, reset uint64) (dkg.PrivateKey, error)
GetDKGProtocol() (dkgProtocol DKGProtocolInfo, err error)
}
@@ -90,7 +89,7 @@ type Writer interface {
UpdateBlock(block types.Block) error
PutBlock(block types.Block) error
PutCompactionChainTipInfo(common.Hash, uint64) error
- PutDKGPrivateKey(uint64, dkg.PrivateKey) error
+ PutDKGPrivateKey(round, reset uint64, pk dkg.PrivateKey) error
PutOrUpdateDKGProtocol(dkgProtocol DKGProtocolInfo) error
}