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

Commit

Permalink
Merge pull request #643 from ethereumproject/fix/rpc-block-mixhash
Browse files Browse the repository at this point in the history
Fix/rpc block mixhash
  • Loading branch information
whilei authored Jul 10, 2018
2 parents 5291a28 + 356afc0 commit 01ce9b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions eth/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -849,6 +849,7 @@ func (s *PublicBlockChainAPI) rpcOutputBlock(b *types.Block, inclTx bool, fullTx
"hash": b.Hash(),
"parentHash": b.ParentHash(),
"nonce": b.Header().Nonce,
"mixHash": b.Header().MixDigest,
"sha3Uncles": b.UncleHash(),
"logsBloom": b.Bloom(),
"stateRoot": b.Root(),
Expand Down
4 changes: 2 additions & 2 deletions eth/downloader/downloader.go
Original file line number Diff line number Diff line change
Expand Up @@ -1581,8 +1581,8 @@ func (d *Downloader) commitFastSyncData(results []*fetchResult, stateSync *state
// Retrieve the a batch of results to import
first, last := results[0].Header, results[len(results)-1].Header
glog.V(logger.Debug).Infoln("Inserting fast-sync blocks", "items", len(results),
"firstnum", first.Number, "firsthash", first.Hash(),
"lastnumn", last.Number, "lasthash", last.Hash(),
"firstnum", first.Number, "firsthash", first.Hash().Hex(),
"lastnumn", last.Number, "lasthash", last.Hash().Hex(),
)
blocks := make([]*types.Block, len(results))
receipts := make([]types.Receipts, len(results))
Expand Down

0 comments on commit 01ce9b3

Please sign in to comment.