zack-bitcoin / amoveo

A blockchain for trust-free markets in financial derivatives
Other
464 stars 110 forks source link

Return headers requested from the current top height #200

Closed vden closed 5 years ago

vden commented 5 years ago

On headers request starting from the current top height full node returns empty list, while generally it returns headers list including header at requested height.

PR fixes the check of height to return top header too when request was performed from top height.

vden commented 5 years ago

Commit history is looking awful. I hope it can be squashed.

zack-bitcoin commented 5 years ago

I manually added this change, because it was only one line, and I didn't want to add so many commits to the history.