good morning!!!!

Skip to content
Snippets Groups Projects
Commit 507830eb authored by Jeffrey Wilcke's avatar Jeffrey Wilcke
Browse files

Merge branch 'develop' of github.com-obscure:ethereum/go-ethereum into develop

parents eb433731 7e1e2643
Branches
Tags
No related merge requests found
...@@ -144,12 +144,8 @@ func (self *XEth) Whisper() *Whisper { return self.whisper } ...@@ -144,12 +144,8 @@ func (self *XEth) Whisper() *Whisper { return self.whisper }
func (self *XEth) getBlockByHeight(height int64) *types.Block { func (self *XEth) getBlockByHeight(height int64) *types.Block {
var num uint64 var num uint64
// -1 means "latest" if height < 0 {
// -2 means "pending", which has no blocknum num = self.CurrentBlock().NumberU64() + uint64(-1*height)
if height <= -2 {
return &types.Block{}
} else if height == -1 {
num = self.CurrentBlock().NumberU64()
} else { } else {
num = uint64(height) num = uint64(height)
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment