Skip to content

Commit

Permalink
remove Busy in Block struct and database.
Browse files Browse the repository at this point in the history
  • Loading branch information
max-uxuy authored Jan 12, 2024
1 parent 54fe508 commit 03ce859
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion db/init_mysql.sql
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,6 @@ CREATE TABLE `block`
`block_hash` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
`block_number` bigint NOT NULL,
`block_time` timestamp NOT NULL,
`busy` tinyint(1) default 0 NOT NULL,
`updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`chain`) USING BTREE,
UNIQUE KEY `uqx_chain` (`chain`)
Expand Down
1 change: 0 additions & 1 deletion model/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ type BlockStatus struct {
BlockHash string `json:"block_hash" gorm:"column:block_hash"` // block hash
BlockNumber uint64 `json:"block_number" gorm:"column:block_number"` // block height
BlockTime time.Time `json:"block_time" gorm:"column:block_time"` // block time
Busy uint8 `json:"busy" gorm:"column:busy"` // busy
}

func (BlockStatus) TableName() string {
Expand Down

0 comments on commit 03ce859

Please sign in to comment.