getnetworksolps should throw an error if 1st or 2nd argument is larger than current longestchain #237

Open
opened 2 years ago by duke · 0 comments
duke commented 2 years ago
Owner

Currently DRAGONX is at block 242, yet I can ask getnetworksolps about block 10000 and it gives me data back:

$ ./dragonx-cli getnetworksolps 1 10000
39

It should throw an error instead. Similarly, if the first argument is larger than how many blocks exist, it should throw an error:

$ ./dragonx-cli getnetworksolps 500 242
0
Currently DRAGONX is at block 242, yet I can ask `getnetworksolps` about block 10000 and it gives me data back: ``` $ ./dragonx-cli getnetworksolps 1 10000 39 ``` It should throw an error instead. Similarly, if the first argument is larger than how many blocks exist, it should throw an error: ``` $ ./dragonx-cli getnetworksolps 500 242 0 ```
duke added the
bug
label 1 year ago
duke added the
beginners
label 11 months ago
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.