• R/O
  • HTTP
  • SSH
  • HTTPS

vapor: 提交

Golang implemented sidechain for Bytom


Commit MetaInfo

修订版56634c3efc6c0134f106890ce84f99252daf634b (tree)
时间2020-04-02 21:31:52
作者Poseidon <shenao.78@163....>
CommiterGitHub

Log Message

fix mov iterator test (#530)

更改概述

差异

--- a/application/mov/mock/mock_mov_store.go
+++ b/application/mov/mock/mock_mov_store.go
@@ -30,6 +30,12 @@ func NewMovStore(tradePairs []*common.TradePair, orders []*common.Order) *MovSto
3030 }
3131 }
3232
33+func (m *MovStore) Clear() {
34+ m.tradePairs = nil
35+ m.dbState = nil
36+ m.orderMap = make(map[string][]*common.Order)
37+}
38+
3339 func (m *MovStore) GetMovDatabaseState() (*common.MovDatabaseState, error) {
3440 return m.dbState, nil
3541 }
Show on old repository browser