Commit 1f04d73d authored by suyanlong's avatar suyanlong

remove ipfs information and Fixed bug

parent 2d6398d3
Pipeline #8225 canceled with stages
......@@ -19,7 +19,6 @@ type config struct {
logger Logger
privateKey crypto.PrivateKey
nodesInfo []*NodeInfo
ipfsAddrs []string
timeoutLimit time.Duration // timeout limit config for dialing grpc
}
......
package internal
//type Launcher interface {
// Start() error
// Stop() error
//}
type Launcher interface {
Start() error
Stop() error
}
......@@ -293,7 +293,7 @@ func (syncer *WrapperSyncer) handleInterchainWrapperAndPersist(ws *pb.Interchain
}
// handleInterchainTxWrapper is the handler for interchain tx wrapper
func (syncer *WrapperSyncer) handleInterchainTxWrapper(w *pb.InterchainTxWrapper, i int, icm map[string]*rpcx.Interchain) bool {
func (syncer *WrapperSyncer) handleInterchainTxWrapper(w *pb.InterchainTxWrapper, i int, _ map[string]*rpcx.Interchain) bool {
if w == nil {
syncer.logger.WithField("height", syncer.height).Error("empty interchain tx wrapper")
return false
......@@ -377,6 +377,7 @@ func (syncer *WrapperSyncer) verifyWrapper(w *pb.InterchainTxWrapper) (bool, err
var header *pb.BlockHeader
if err := retry.Retry(func(attempt uint) error {
// TODO
header, err = syncer.lite.QueryHeader(w.Height)
if err != nil {
syncer.logger.Warnf("query header: %s", err.Error())
......
......@@ -61,6 +61,57 @@ func (mr *MockKernelMockRecorder) Kill() *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Kill", reflect.TypeOf((*MockKernel)(nil).Kill))
}
// MockLauncher is a mock of Launcher interface.
type MockLauncher struct {
ctrl *gomock.Controller
recorder *MockLauncherMockRecorder
}
// MockLauncherMockRecorder is the mock recorder for MockLauncher.
type MockLauncherMockRecorder struct {
mock *MockLauncher
}
// NewMockLauncher creates a new mock instance.
func NewMockLauncher(ctrl *gomock.Controller) *MockLauncher {
mock := &MockLauncher{ctrl: ctrl}
mock.recorder = &MockLauncherMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockLauncher) EXPECT() *MockLauncherMockRecorder {
return m.recorder
}
// Start mocks base method.
func (m *MockLauncher) Start() error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Start")
ret0, _ := ret[0].(error)
return ret0
}
// Start indicates an expected call of Start.
func (mr *MockLauncherMockRecorder) Start() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Start", reflect.TypeOf((*MockLauncher)(nil).Start))
}
// Stop mocks base method.
func (m *MockLauncher) Stop() error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Stop")
ret0, _ := ret[0].(error)
return ret0
}
// Stop indicates an expected call of Stop.
func (mr *MockLauncherMockRecorder) Stop() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Stop", reflect.TypeOf((*MockLauncher)(nil).Stop))
}
// MockClient is a mock of Client interface.
type MockClient struct {
ctrl *gomock.Controller
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment