Merge pull request #376 from harmony-one/staking-service

Adding Place Holder for Staking Service
pull/383/head
alajko 6 years ago committed by GitHub
commit c2317c147e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      api/service/manager.go
  2. 25
      api/service/staking/service.go

@ -27,6 +27,7 @@ const (
Consensus
BlockProposal
PeerDiscovery
Staking
Test
Done
)
@ -45,6 +46,8 @@ func (t Type) String() string {
return "BlockProposal"
case PeerDiscovery:
return "PeerDiscovery"
case Staking:
return "Staking"
case Test:
return "Test"
case Done:

@ -0,0 +1,25 @@
package staking
import (
"github.com/harmony-one/harmony/internal/utils"
"github.com/harmony-one/harmony/p2p"
)
// Service is the struct for staking service.
type Service struct {
Host p2p.Host
}
//StartService starts the staking service.
func (s *Service) StartService() {
utils.GetLogInstance().Info("Starting staking service.")
}
func (s *Service) createStakingTransaction() {
//creates staking transaction.
}
// StopService shutdowns staking service.
func (s *Service) StopService() {
utils.GetLogInstance().Info("Shutting down staking service.")
}
Loading…
Cancel
Save