package common
-import (
- "github.com/vapor/errors"
-)
-
const (
CrossTxPendingStatus uint8 = iota
CrossTxRejectedStatus
CrossTxSignCompletedStatus
CrossTxSignRejectedStatus
)
-
-var ErrInconsistentDB = errors.New("inconsistent db status")
--- /dev/null
+package synchron
+
+import (
+ "github.com/vapor/errors"
+)
+
+var ErrInconsistentDB = errors.New("inconsistent db status")
"remote PreviousBlockHash": nextBlock.PreviousBlockHash.String(),
"db block_hash": chain.BlockHash,
}).Fatal("BlockHash mismatch")
- return false, common.ErrInconsistentDB
+ return false, ErrInconsistentDB
}
if err := m.tryAttachBlock(chain, nextBlock, txStatus); err != nil {
}
if res.RowsAffected != 1 {
- return common.ErrInconsistentDB
+ return ErrInconsistentDB
}
return nil
"remote PreviousBlockHash": nextBlock.PreviousBlockHash.String(),
"db block_hash": chain.BlockHash,
}).Fatal("BlockHash mismatch")
- return false, common.ErrInconsistentDB
+ return false, ErrInconsistentDB
}
if err := s.tryAttachBlock(chain, nextBlock, txStatus); err != nil {
}
if res.RowsAffected != 1 {
- return common.ErrInconsistentDB
+ return ErrInconsistentDB
}
return nil