Skip to content
This repository was archived by the owner on Aug 2, 2022. It is now read-only.

Remove the assertion check for error code (400) in cleos - #8898

Merged
allenhan2 merged 3 commits into
developfrom
get_header_state_unknown_block
Apr 2, 2020
Merged

allenhan2 merged 3 commits into
developfrom
get_header_state_unknown_block

Conversation

@allenhan2

@allenhan2 allenhan2 commented Mar 31, 2020 •

Copy link
Copy Markdown
Contributor

Change Description

For issue: #8711

After fix (close prints correct err msg):
1)~/workspace/eosio_develop/bin > ./cleos get block 100000
Error code: 400
Error 3100002: Unknown block
Error Details:
Could not find block: 100000
2) ~/workspace/eosio_develop/bin > ./cleos get block --info 100000
Error code: 400
Error 3100002: Unknown block
Error Details:
Could not find block: 100000
3) ~/workspace/eosio_develop/bin > ./cleos get block --header-state 100000
Error code: 400
Error 3100002: Unknown block
Error Details:
Could not find reversible block: 100000

Consensus Changes

  • Consensus Changes

API Changes

  • API Changes

Documentation Additions

  • Documentation Additions

@allenhan2 allenhan2 changed the title Correct error code (500) for Internal Service Error Remove the assertion of error code (400) in cleos Apr 2, 2020
@allenhan2 allenhan2 changed the title Remove the assertion of error code (400) in cleos Remove the assertion check for error code (400) in cleos Apr 2, 2020
@allenhan2
allenhan2 requested a review from heifner April 2, 2020 15:16
@allenhan2
allenhan2 merged commit cfcf8e7 into develop Apr 2, 2020
@allenhan2
allenhan2 deleted the get_header_state_unknown_block branch April 2, 2020 16:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants