-
Notifications
You must be signed in to change notification settings - Fork 3.8k
error for "get_block_header_state" #4485
Comments
If you start your nodeos with
|
Thanks. So it is expected ? In which case , "--header-state" will be used? |
Yes it's expected. |
@jgiszczak 360? It did work for me(eos v1.0.8)
|
truncated for brevity. It works. Are you using a recently compiled version of both nodeos and cleos? |
Yes. Both of them are v1.0.8.
|
Yes of course your attempt to retrieve that mainnet block failed. After 30 minutes, 4356167 had long since turned irreversible. Run |
Yes. I got it.
But why it does not work for my local network. I also use the "get info" to find out the head block. |
Have you fully bootstrapped your local network, including creating the needed system accounts and installing the eosio.system contract? |
Yes. I set the bios token system contract and also create system account like eosio.msig... |
I don't know what to tell you. I've never managed to get my local node into a state where it's unable to answer |
I copied the following snippet from your previous comments:
If the above snippet is what you mean by not working in your local node, it's because you are trying to query header state of an irreversible block. Notice that your last irreversible block is 2227 there and you query block 2226, which for sure has been deemed irreversible. If you only have one producer in your local node, your last irreversible block is just one block behind your head block, so you can only use |
@andriantolie So you mean that "cleos get block --header-state " only works for other node that did behind a lot of blocks? And it is useful for 21 super block producer network? |
That's not exactly what I mean, theoretically, you can also do it in your node if you call it by passing the head block num before the next block is produced (which means you only have less than 500ms to do it). However, normally a chain has 21 block producers, so you can normally call it for the most recent ~360 blocks. |
@andriantolie Thanks. :) |
Is there a way to get |
The text was updated successfully, but these errors were encountered: