Open P-A-R-U-S opened 6 years ago
Following part in NewBlockChain
err = db.Update(func(tx *bolt.Tx) error { ....... }) can be replace with View, because there is update operation and we jus getting last hash from database.
err = db.Update(func(tx *bolt.Tx) error { ....... })
err = db.View(func(tx *bolt.Tx) error { ....... })
您好,邮件已查收。Anmi、
Following part in NewBlockChain
err = db.Update(func(tx *bolt.Tx) error { ....... })
can be replace with View, because there is update operation and we jus getting last hash from database.err = db.View(func(tx *bolt.Tx) error { ....... })