Commit af81d2f7 authored by linj's avatar linj Committed by vipwzw

fix create account

parent 803fabde
...@@ -86,9 +86,13 @@ func createPriceDB(height int64, db db.KV, exec, symbol string) (*account.DB, er ...@@ -86,9 +86,13 @@ func createPriceDB(height int64, db db.KV, exec, symbol string) (*account.DB, er
if types.IsDappFork(height, pt.TradeX, pt.ForkTradePriceX) { if types.IsDappFork(height, pt.TradeX, pt.ForkTradePriceX) {
// 在fork 之前提的交易 // 在fork 之前提的交易
if exec == "" { if exec == "" {
return account.NewCoinsAccount(), nil acc := account.NewCoinsAccount()
acc.SetDB(db)
return acc, nil
} }
return account.NewAccountDB(exec, symbol, db) return account.NewAccountDB(exec, symbol, db)
} }
return account.NewCoinsAccount(), nil acc := account.NewCoinsAccount()
acc.SetDB(db)
return acc, nil
} }
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