Skip to content

Commit

Permalink
Change latestversion table name
Browse files Browse the repository at this point in the history
  • Loading branch information
rickb80 committed Sep 4, 2023
1 parent 487f60f commit 0c1b7c4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/config/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ void Config::load(json &config)
ParseString(config, "dbProgramTableName", "DB_PROGRAM_TABLE_NAME", dbProgramTableName, "state.program");
ParseString(config, "dbKeyValueTableName", "DB_KEYVALUE_TABLE_NAME", dbKeyValueTableName, "state.keyvalue");
ParseString(config, "dbKeyVersionTableName", "DB_VERSION_TABLE_NAME", dbVersionTableName, "state.version");
ParseString(config, "dbLatestVersionTableName", "DB_LATEST_VERSION_TABLE_NAME", dbLatestVersionTableName, "state.latestVersion");
ParseString(config, "dbLatestVersionTableName", "DB_LATEST_VERSION_TABLE_NAME", dbLatestVersionTableName, "state.latestversion");
ParseBool(config, "dbMultiWrite", "DB_MULTIWRITE", dbMultiWrite, true);
ParseU64(config, "dbMultiWriteSingleQuerySize", "DB_MULTIWRITE_SINGLE_QUERY_SIZE", dbMultiWriteSingleQuerySize, 20*1024*1024);
ParseBool(config, "dbConnectionsPool", "DB_CONNECTIONS_POOL", dbConnectionsPool, true);
Expand Down
2 changes: 1 addition & 1 deletion src/hashdb64/database_64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ DatabaseMTCache64 Database64::dbMTCache;
DatabaseProgramCache64 Database64::dbProgramCache;
DatabaseKVAssociativeCache Database64::dbKVACache;
DatabaseVersionsAssociativeCache Database64::dbVersionACache;
uint64_t Database64::latestVersionCache=1;
uint64_t Database64::latestVersionCache=0;


string Database64::dbStateRootKey("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"); // 64 f's
Expand Down
2 changes: 1 addition & 1 deletion tools/statedb/create_db.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ PGPASSWORD=$3 psql -U $2 -h 127.0.0.1 -p 5432 -d $1 -c 'create table state.nodes
PGPASSWORD=$3 psql -U $2 -h 127.0.0.1 -p 5432 -d $1 -c 'create table state.program (hash bytea primary key, data bytea not null);'
PGPASSWORD=$3 psql -U $2 -h 127.0.0.1 -p 5432 -d $1 -c 'create table state.keyvalue (key bytea primary key, data bytea);'
PGPASSWORD=$3 psql -U $2 -h 127.0.0.1 -p 5432 -d $1 -c 'create table state.version (hash bytea primary key, version bigint);'
PGPASSWORD=$3 psql -U $2 -h 127.0.0.1 -p 5432 -d $1 -c 'create table state.latestVersion (version bigint);'
PGPASSWORD=$3 psql -U $2 -h 127.0.0.1 -p 5432 -d $1 -c 'create table state.latestversion (version bigint);'


if [ $# == 4 ]
Expand Down

0 comments on commit 0c1b7c4

Please sign in to comment.