Skip to content

Commit

Permalink
Merge pull request #48 from AntelopeIO/update_header_id
Browse files Browse the repository at this point in the history
Update header_id to reflect changes since EOSIODB3
  • Loading branch information
linh2931 authored May 6, 2024
2 parents 7ce7635 + c8be843 commit 386357f
Showing 1 changed file with 4 additions and 2 deletions.
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);

}
}

0 comments on commit 386357f

Please sign in to comment.