Skip to content
This repository has been archived by the owner on Oct 7, 2020. It is now read-only.

Enable no empty blocks #350

Merged
merged 3 commits into from
Nov 24, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func (app *EthermintApplication) Info() abciTypes.ResponseInfo {
blockchain := app.backend.Ethereum().BlockChain()
currentBlock := blockchain.CurrentBlock()
height := currentBlock.Number()
hash := currentBlock.Hash()
hash := currentBlock.TxHash()

app.logger.Debug("Info", "height", height) // nolint: errcheck

Expand Down
2 changes: 1 addition & 1 deletion ethereum/pending.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ func (w *work) commit(blockchain *core.BlockChain, db ethdb.Database) (common.Ha

// create block object and compute final commit hash (hash of the ethereum block)
block := ethTypes.NewBlock(w.header, w.transactions, nil, w.receipts)
blockHash := block.Hash()
blockHash := block.TxHash()

// save the block to disk
// log.Info("Committing block", "stateHash", hashArray, "blockHash", blockHash)
Expand Down