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

Update header_id to reflect changes since EOSIODB3 #48

Merged
merged 1 commit into from
May 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions include/chainbase/environment.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
namespace chainbase {

constexpr size_t header_size = 1024;
constexpr uint64_t header_id = 0x3342444f49534f45ULL; //"EOSIODB3" little endian
// `CHAINB01` reflects changes since `EOSIODB3`.
// Spring 1.0 is compatible with `CHAINB01`.
constexpr uint64_t header_id = 0x3130424e49414843ULL; //"CHAINB01" little endian

struct environment {
environment() {
Expand Down Expand Up @@ -76,4 +78,4 @@ static_assert(sizeof(db_header) <= header_size, "DB header struct too large");

std::ostream& operator<<(std::ostream& os, const chainbase::environment& dt);

}
}