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

Problems with ship initial block in Leap 4.0.3 #1340

Closed
cc32d9 opened this issue Jun 25, 2023 · 2 comments · Fixed by #1375 or #1377
Closed

Problems with ship initial block in Leap 4.0.3 #1340

cc32d9 opened this issue Jun 25, 2023 · 2 comments · Fixed by #1375 or #1377
Assignees
Labels
bug Something isn't working 👍 lgtm OCI Work exclusive to OCI team
Milestone

Comments

@cc32d9
Copy link
Contributor

cc32d9 commented Jun 25, 2023

I started a ship server from a recent portable snapshot (Proton Mainnet, which is fully EOS-compatible), then after restart it prints

info  2023-06-25T17:24:07.549 nodeos    block_log.cpp:666             open                 ] Log has 53169 blocks
info  2023-06-25T17:24:07.554 nodeos    http_plugin.cpp:258           plugin_initialize    ] configured http to listen on 0.0.0.0:18805
info  2023-06-25T17:24:07.554 nodeos    log.hpp:713                   open_log             ] trace_history.log has blocks 200079887-200133387
info  2023-06-25T17:24:07.554 nodeos    log.hpp:713                   open_log             ] chain_state_history.log has blocks 200079886-200133387

Trying to start Chronicle from this ship endpoint, and getting a number of various errors:

  1. If I remove all p2p peers (to save the CPU and storage I/O), Chronicle does not receive anything from ship.

  2. With at least one living p2p peer, starting chronicle with --start-block=200079886 and it starts receiving table deltas immediately. It's supposed to receive the whole state first, so that it populates its ABI database. This is a breaking change.

@cc32d9
Copy link
Contributor Author

cc32d9 commented Jun 25, 2023

snapshot source: http://seed01.eosusa.news/snaps/proton/proton-2023-06-25_10-00.tar.gz

node configuration:

chain-state-db-size-mb = 65536
#

wasm-runtime = eos-vm-jit
eos-vm-oc-enable = false
read-mode = head

http-server-address = 0.0.0.0:18805
p2p-listen-endpoint = 0.0.0.0:19805

http-validate-host = false

access-control-allow-origin = *
access-control-allow-headers = *

#verbose-http-errors = true
contracts-console = true
validation-mode = light

max-clients = 100

plugin = eosio::chain_plugin
plugin = eosio::chain_api_plugin
#plugin = eosio::db_size_api_plugin

plugin = eosio::state_history_plugin
trace-history = true
chain-state-history = true
state-history-endpoint = 0.0.0.0:18085

sync-fetch-span = 50

#p2p-peer-address = proton.cryptolions.io:9876
p2p-peer-address = proton.eu.eosamsterdam.net:9103
#p2p-peer-address = p2p-proton.eosarabia.net:9876

@heifner heifner added the bug Something isn't working label Jun 26, 2023
@bhazzard bhazzard added 👍 lgtm and removed triage labels Jun 29, 2023
@BenjaminGormanPMP BenjaminGormanPMP added this to the Leap v4.0.4 milestone Jun 29, 2023
@heifner heifner self-assigned this Jul 4, 2023
@heifner heifner added the OCI Work exclusive to OCI team label Jul 4, 2023
@heifner
Copy link
Member

heifner commented Jul 5, 2023

Testing with 3.1 I do not see deltas in the first block after a snapshot. What version of SHiP do you see expected behavior?

heifner added a commit that referenced this issue Jul 6, 2023
heifner added a commit that referenced this issue Jul 6, 2023
… blocks applied. Also do not repeatable send empty get_blocks_response messages but rather start sending first available block data.
@heifner heifner linked a pull request Jul 6, 2023 that will close this issue
heifner added a commit that referenced this issue Jul 6, 2023
heifner added a commit that referenced this issue Jul 7, 2023
[4.0] SHiP: Support snapshot start with full deltas
heifner added a commit that referenced this issue Jul 7, 2023
[4.0 -> main] SHiP: Support snapshot start with full deltas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working 👍 lgtm OCI Work exclusive to OCI team
Projects
Archived in project
5 participants