Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
chain33-pai
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
szh
chain33-pai
Commits
a97db132
Commit
a97db132
authored
Oct 09, 2019
by
szh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update setup
parent
865a9bcd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
main.go
cmd/parser/main.go
+1
-0
miner.go
miner/miner.go
+1
-1
No files found.
cmd/parser/main.go
View file @
a97db132
...
@@ -18,6 +18,7 @@ func init() {
...
@@ -18,6 +18,7 @@ func init() {
//gredis.Setup()
//gredis.Setup()
chain33
.
Setup
()
chain33
.
Setup
()
util
.
Setup
()
util
.
Setup
()
miner
.
Setup
()
}
}
// @title Golang Gin API
// @title Golang Gin API
...
...
miner/miner.go
View file @
a97db132
...
@@ -11,7 +11,7 @@ import (
...
@@ -11,7 +11,7 @@ import (
"github.com/jinzhu/gorm"
"github.com/jinzhu/gorm"
)
)
func
init
()
{
func
Setup
()
{
height
,
err
:=
models
.
GetHeight
()
height
,
err
:=
models
.
GetHeight
()
if
err
!=
nil
{
if
err
!=
nil
{
if
err
==
gorm
.
ErrRecordNotFound
{
if
err
==
gorm
.
ErrRecordNotFound
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment