github.com/cranelv/ethereum_mpc@v0.0.0-20191031014521-23aeb1415092/mpcService/step/get_mpc_ready_step.go (about)

     1  package step
     2  
     3  import (
     4  	"github.com/ethereum/go-ethereum/mpcService/protocol"
     5  )
     6  
     7  type GetMpcReadyStep struct {
     8  	BaseStep
     9  }
    10  
    11  func (ready *GetMpcReadyStep) InitStep() error {
    12  	return nil
    13  }
    14  
    15  func CreateGetMpcReadyStep(result protocol.MpcResultInterface,nodeInfo protocol.MpcNodeInterface) *GetMpcReadyStep {
    16  	return &GetMpcReadyStep{*CreateBaseStep(result,nodeInfo, 1,false)}
    17  }
    18  
    19  func (ready *GetMpcReadyStep) CreateMessage() []protocol.StepMessage {
    20  	return nil
    21  }
    22  
    23  func (ready *GetMpcReadyStep) FinishStep( mpc protocol.MpcManager) error {
    24  	return ready.BaseStep.FinishStep()
    25  }
    26  
    27  func (ready *GetMpcReadyStep) HandleMessage(msg *protocol.StepMessage) bool {
    28  	return true
    29  }