Browse Source

:art: Improve tx

Daniel 1 year ago
parent
commit
8a82ce0feb
1 changed files with 0 additions and 5 deletions
  1. 0 5
      kernel/model/transaction.go

+ 0 - 5
kernel/model/transaction.go

@@ -1051,11 +1051,6 @@ func (tx *Transaction) doUpdate(operation *Operation) (ret *TxErr) {
 	id := operation.ID
 	id := operation.ID
 	tree, err := tx.loadTree(id)
 	tree, err := tx.loadTree(id)
 	if nil != err {
 	if nil != err {
-		if errors.Is(err, ErrBlockNotFound) {
-			logging.LogWarnf("not found block [%s]", id)
-			return
-		}
-
 		logging.LogErrorf("load tree [%s] failed: %s", id, err)
 		logging.LogErrorf("load tree [%s] failed: %s", id, err)
 		return &TxErr{code: TxErrCodeBlockNotFound, id: id}
 		return &TxErr{code: TxErrCodeBlockNotFound, id: id}
 	}
 	}