Include block 0 in the list of blocks in explorer

pull/56/head
Martin Boehm 2018-09-14 14:47:42 +02:00
parent 0147df957c
commit 14a06888c7
1 changed files with 1 additions and 1 deletions

View File

@ -452,7 +452,7 @@ func (w *Worker) GetBlocks(page int, blocksOnPage int) (*Blocks, error) {
if err != nil {
return nil, errors.Annotatef(err, "GetBestBlock")
}
pg, from, to, page := computePaging(bestheight, page, blocksOnPage)
pg, from, to, page := computePaging(bestheight+1, page, blocksOnPage)
r := &Blocks{Paging: pg}
r.Blocks = make([]db.BlockInfo, to-from)
for i := from; i < to; i++ {