• R/O
  • HTTP
  • SSH
  • HTTPS

vapor: コミット

Golang implemented sidechain for Bytom


コミットメタ情報

リビジョン2f844a03b7abb8b42a89bbfdd084095d55954063 (tree)
日時2020-04-02 18:53:46
作者shenao78 <shenao.78@163....>
コミッターshenao78

ログメッセージ

Merge branch 'master' into mov_late_node_sync_test

変更サマリ

差分

--- a/application/mov/mov_core.go
+++ b/application/mov/mov_core.go
@@ -53,15 +53,10 @@ func NewCoreWithDB(store *database.LevelDBMovStore, startBlockHeight uint64) *Co
5353 // ApplyBlock parse pending order and cancel from the the transactions of block
5454 // and add pending order to the dex db, remove cancel order from dex db.
5555 func (m *Core) ApplyBlock(block *types.Block) error {
56- if block.Height < m.startBlockHeight {
56+ if block.Height <= m.startBlockHeight {
5757 return nil
5858 }
5959
60- if block.Height == m.startBlockHeight {
61- blockHash := block.Hash()
62- return m.InitChainStatus(&blockHash)
63- }
64-
6560 if err := m.validateMatchedTxSequence(block.Transactions); err != nil {
6661 return err
6762 }
旧リポジトリブラウザで表示