Commit f486ec1c authored by szh's avatar szh

up

parent ce57241f
...@@ -21,6 +21,7 @@ func Setup() { ...@@ -21,6 +21,7 @@ func Setup() {
if err == gorm.ErrRecordNotFound { if err == gorm.ErrRecordNotFound {
err = models.InitHeight() err = models.InitHeight()
height = -1
if err != nil { if err != nil {
panic(err) panic(err)
} }
...@@ -414,7 +415,8 @@ func GetRealAddress(hash string) (string,error) { ...@@ -414,7 +415,8 @@ func GetRealAddress(hash string) (string,error) {
switch payload.Ty { switch payload.Ty {
case ttype.TicketActionOpen: case ttype.TicketActionOpen:
return payload.GetTopen().ReturnAddress,nil return payload.GetTopen().ReturnAddress,nil
case ttype.TicketActionGenesis:
return payload.GetGenesis().ReturnAddress,nil
} }
logging.Error("open hash not find",hash) logging.Error("open hash not find",hash)
return "",types.ErrActionNotSupport return "",types.ErrActionNotSupport
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment