Commit f486ec1c authored by szh's avatar szh

up

parent ce57241f
......@@ -21,6 +21,7 @@ func Setup() {
if err == gorm.ErrRecordNotFound {
err = models.InitHeight()
height = -1
if err != nil {
panic(err)
}
......@@ -414,7 +415,8 @@ func GetRealAddress(hash string) (string,error) {
switch payload.Ty {
case ttype.TicketActionOpen:
return payload.GetTopen().ReturnAddress,nil
case ttype.TicketActionGenesis:
return payload.GetGenesis().ReturnAddress,nil
}
logging.Error("open hash not find",hash)
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