Skip to content

The genesis block can't be retrieved #62

Closed
@AlexITC

Description

We can't retrieve the genesis block from the API

Expected behavior

The following call returns the genesis block: https://xsnexplorer.io/api/blocks/00000c822abdbb23e28f79a49d29b41429737c6c7e15df40d1b1f1b35907ae34

Actual behavior

The block not found error is retrieved while calling: https://xsnexplorer.io/api/blocks/00000c822abdbb23e28f79a49d29b41429737c6c7e15df40d1b1f1b35907ae34

Steps to reproduce the behavior

Load https://xsnexplorer.io/api/blocks/00000c822abdbb23e28f79a49d29b41429737c6c7e15df40d1b1f1b35907ae34

Insights

Turns out that the issue occurs because there are no rewards on this block while the explorer expects that every block has a reward (even if it is 0).

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingserverChanges required on the server project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions