Skip to content

Conversation

@JoshuaBrigati
Copy link
Contributor

No description provided.

@JoshuaBrigati JoshuaBrigati requested a review from Emyrk June 21, 2019 16:35
Copy link
Contributor

@Emyrk Emyrk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change the call of DBlockByHeight, rather than modifying it's response

dblock.go Outdated
// TODO: we need a better api call for dblock by keymr so that API will
// retrun the same as dblock-byheight
return GetDBlockByHeight(db.Header.SequenceNumber)
dblockHold, rawHold, errHold := GetDBlockByHeight(db.Header.SequenceNumber)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The sequence number is just the dblock height. It's an odd term for it, but was probably done to match the json response for the eblock.

Can you push this sequence number adjustment to inside GetDBlockByHeight? This way both calls return the same result whether you call by height or by keymr. When you call GetDBlockByHeight, you'll have to set the wrap.DBlock.SequenceNumber to the parameter height.

Copy link
Contributor

@Emyrk Emyrk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LG

@Emyrk Emyrk merged commit 5689e2b into v1-rollup Jun 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants