Skip to content

Commit

Permalink
multi: use BestState & generated block template in rpc handlers.
Browse files Browse the repository at this point in the history
  • Loading branch information
dnldd committed Sep 7, 2018
1 parent d64710e commit d2d3c2f
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 297 deletions.
2 changes: 1 addition & 1 deletion mining.go
Original file line number Diff line number Diff line change
Expand Up @@ -2057,7 +2057,7 @@ func UpdateBlockTime(header *wire.BlockHeader, bManager *blockManager) error {
// the median time of the last several blocks per the chain consensus
// rules.
newTimestamp, err := medianAdjustedTime(bManager.chain.BestSnapshot(),
bManager.server.timeSource)
bManager.server.bg.tg.timeSource)
if err != nil {
return miningRuleError(ErrGettingMedianTime, err.Error())
}
Expand Down
Loading

0 comments on commit d2d3c2f

Please sign in to comment.