mirror of
https://github.com/tendermint/tendermint.git
synced 2026-10-01 04:05:45 +00:00
consensus: some more informative logging
This commit is contained in:
+1
-1
@@ -96,7 +96,7 @@ func (b *Block) FillHeader() {
|
||||
// If the block is incomplete, block hash is nil for safety.
|
||||
func (b *Block) Hash() []byte {
|
||||
// fmt.Println(">>", b.Data)
|
||||
if b.Header == nil || b.Data == nil || b.LastCommit == nil {
|
||||
if b == nil || b.Header == nil || b.Data == nil || b.LastCommit == nil {
|
||||
return nil
|
||||
}
|
||||
b.FillHeader()
|
||||
|
||||
Reference in New Issue
Block a user