diff options
author | Wei-Ning Huang <w@dexon.org> | 2018-09-17 17:45:49 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-17 17:45:49 +0800 |
commit | 8a908e98279d7e80978cd412057eddd4a6bbf06c (patch) | |
tree | 4e28f76fd95814978210c6f38ec4a09988e76957 /core/interfaces.go | |
parent | cbf0012603deb6d2b8c257c079de98792f7b84cf (diff) | |
download | dexon-consensus-8a908e98279d7e80978cd412057eddd4a6bbf06c.tar dexon-consensus-8a908e98279d7e80978cd412057eddd4a6bbf06c.tar.gz dexon-consensus-8a908e98279d7e80978cd412057eddd4a6bbf06c.tar.bz2 dexon-consensus-8a908e98279d7e80978cd412057eddd4a6bbf06c.tar.lz dexon-consensus-8a908e98279d7e80978cd412057eddd4a6bbf06c.tar.xz dexon-consensus-8a908e98279d7e80978cd412057eddd4a6bbf06c.tar.zst dexon-consensus-8a908e98279d7e80978cd412057eddd4a6bbf06c.zip |
core: move blockdb into core package and minor change on governance interface (#110)
Since third party apps will possibly implement their only blockdb class,
it make sense for the interface to be in core.
Also add GetNumShards into the governance interface.
Diffstat (limited to 'core/interfaces.go')
-rw-r--r-- | core/interfaces.go | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/core/interfaces.go b/core/interfaces.go index aa4756e..68f210e 100644 --- a/core/interfaces.go +++ b/core/interfaces.go @@ -87,8 +87,11 @@ type Governance interface { // Get block proposing interval (in milliseconds). GetBlockProposingInterval() int - // Get Number of Chains. - GetChainNumber() uint32 + // Get Number of shards. + GetNumShards() uint32 + + // Get Number of chains. + GetNumChains() uint32 // Get Genesis CRS. GetGenesisCRS() string |