We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
开头从数据库取最后一个块的hash是多余的 因为tip已经指向了 ` var lastHash []byte
// 首先获取最后一个块的哈希用于生成新块的哈希 err := bc.db.View(func(tx *bolt.Tx) error { b := tx.Bucket([]byte(blocksBucket)) lastHash = b.Get([]byte("l")) return nil }) if err != nil { log.Panic(err) }
`
The text was updated successfully, but these errors were encountered:
No branches or pull requests
开头从数据库取最后一个块的hash是多余的 因为tip已经指向了
`
var lastHash []byte
`
The text was updated successfully, but these errors were encountered: