Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backport: add first_block_num for cleos get_info #414

Closed
linh2931 opened this issue Jun 17, 2022 · 3 comments
Closed

Backport: add first_block_num for cleos get_info #414

linh2931 opened this issue Jun 17, 2022 · 3 comments

Comments

@linh2931
Copy link
Member

EOSIO/eos#10087

@matthewdarwin
Copy link

This is done already?

image

@matthewdarwin
Copy link

see "earliest_available_block_num" in screenshot.

@linh2931
Copy link
Member Author

linh2931 commented Jun 17, 2022

Thanks @matthewdarwin. Checked the code in Mandel and EOSIO. They refer to the same.

In Mandel, controller.cpp has

   uint32_t earliest_available_block_num() const {
      return (blog.first_block_num() != 0) ? blog.first_block_num() : fork_db.root()->block_num;
   }

In EOSIO 2.2, controller.cpp has

uint32_t controller::get_first_block_num()const
{
   return my->blog.get_first_block_num();
}

Will close this.

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

No branches or pull requests

2 participants