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

7646 chain id in blog #7841

Merged
merged 31 commits into from
Sep 20, 2019
Merged

Conversation

brianjohnson5972
Copy link
Contributor

@brianjohnson5972 brianjohnson5972 commented Sep 3, 2019

Change Description

#7646

  • Changed Block log format to only include the genesis state if the block log starts at block 1, and updated the block log version number
  • Changed global_property_object to store chain_id and removed genesis state from Snapshot
  • Added validation to ensure snapshot, block log, and genesis-json command line parameter match.
  • Refactored controller to only pass snapshot or genesis_state when required for startup and not store the genesis_state in the controller::config

Consensus Changes

  • Consensus Changes

API Changes

  • API Changes

global_property_v1 type in the state history plugin has been modified to include the new chain_id field.

Documentation Additions

  • Documentation Additions

libraries/chain/include/eosio/chain/chain_snapshot.hpp Outdated Show resolved Hide resolved
libraries/chain/controller.cpp Outdated Show resolved Hide resolved
libraries/chain/controller.cpp Show resolved Hide resolved
libraries/chain/controller.cpp Outdated Show resolved Hide resolved
libraries/chain/controller.cpp Outdated Show resolved Hide resolved
plugins/chain_plugin/chain_plugin.cpp Outdated Show resolved Hide resolved
plugins/chain_plugin/chain_plugin.cpp Outdated Show resolved Hide resolved
plugins/chain_plugin/chain_plugin.cpp Outdated Show resolved Hide resolved
plugins/chain_plugin/chain_plugin.cpp Outdated Show resolved Hide resolved
plugins/chain_plugin/chain_plugin.cpp Outdated Show resolved Hide resolved
libraries/chain/controller.cpp Outdated Show resolved Hide resolved
libraries/chain/controller.cpp Outdated Show resolved Hide resolved
plugins/chain_plugin/chain_plugin.cpp Outdated Show resolved Hide resolved
plugins/chain_plugin/chain_plugin.cpp Show resolved Hide resolved
plugins/chain_plugin/chain_plugin.cpp Outdated Show resolved Hide resolved
libraries/testing/include/eosio/testing/tester.hpp Outdated Show resolved Hide resolved
unittests/api_tests.cpp Show resolved Hide resolved
unittests/whitelist_blacklist_tests.cpp Show resolved Hide resolved
unittests/whitelist_blacklist_tests.cpp Show resolved Hide resolved
unittests/whitelist_blacklist_tests.cpp Show resolved Hide resolved
brianjohnson5972 and others added 8 commits September 16, 2019 08:15
technically clang does not support -fdiagnostics-color (it's not in its docs) but it does indeed support it for gcc compat. Let's a
lways use -fdiagnostics-color so we fix a problem where when both GCC & Clang are used in a single build there isn't a failure due
to -fcolor-diagnostics (which GCC balks at)
@brianjohnson5972
Copy link
Contributor Author

This change did not cover fixing the header for a eosio-blocklog using the feature to trim the front of the blocklog, if the version is the current version. This will be handled by #7939 7939

Copy link
Contributor

@arhag arhag left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still need to review snapshot_tests.cpp.

plugins/chain_plugin/chain_plugin.cpp Outdated Show resolved Hide resolved
plugins/chain_plugin/chain_plugin.cpp Outdated Show resolved Hide resolved
plugins/chain_plugin/chain_plugin.cpp Outdated Show resolved Hide resolved
plugins/chain_plugin/chain_plugin.cpp Outdated Show resolved Hide resolved
plugins/chain_plugin/chain_plugin.cpp Outdated Show resolved Hide resolved
tests/Node.py Outdated Show resolved Hide resolved
libraries/chain/block_log.cpp Outdated Show resolved Hide resolved
libraries/chain/block_log.cpp Show resolved Hide resolved
plugins/chain_plugin/chain_plugin.cpp Outdated Show resolved Hide resolved
unittests/snapshot_tests.cpp Show resolved Hide resolved
unittests/snapshot_tests.cpp Outdated Show resolved Hide resolved
unittests/snapshot_tests.cpp Outdated Show resolved Hide resolved
@arhag arhag merged commit 1a928e3 into EOSIO:develop Sep 20, 2019
arhag added a commit that referenced this pull request Sep 21, 2019
… introduced in #7841 in which plugins like net_plugin were incorrectly using the default chain ID
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.

4 participants