Skip to content

Commit

Permalink
Public key of steem account is defined as a constant
Browse files Browse the repository at this point in the history
  • Loading branch information
Mariusz-Trela authored and vogel76 committed Mar 20, 2024
1 parent 31808c1 commit 706141b
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion libraries/protocol/forward_keyauths.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ collected_keyauth_collection_t operation_get_genesis_keyauths()
std::vector<key_t> genesis_key_types = {key_t::OWNER, key_t::ACTIVE, key_t::POSTING, key_t::MEMO};

// 'steem' account
auto STEEM_PUBLIC_KEY = public_key_type(HIVE_STEEM_PUBLIC_KEY_STR);
auto STEEM_PUBLIC_KEY = public_key_type( HIVE_STEEM_PUBLIC_KEY_STR );
collected_keyauth_t steem_item {"steem", key_t::OWNER, 1, true, STEEM_PUBLIC_KEY, {}, 1};
add_key_authorizations(collector, steem_item, genesis_key_types);

Expand Down
1 change: 0 additions & 1 deletion libraries/protocol/include/hive/protocol/config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
// This is checked by get_config_check.sh called from Dockerfile

#define HIVE_DEFAULT_HF_9_COMPROMISED_ACCOUNTS_PUBLIC_KEY_STR "STM7sw22HqsXbz7D2CmJfmMwt9rimtk518dRzsR1f8Cgw52dQR1pR"
#define HIVE_STEEM_PUBLIC_KEY_STR "STM65wH1LZ7BfSHcK69SShnqCAH5xdoSZpGkUjmzHJ5GCuxEK9V5G"

#ifdef USE_ALTERNATE_CHAIN_ID

Expand Down
2 changes: 2 additions & 0 deletions libraries/protocol/include/hive/protocol/misc_utilities.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

namespace hive { namespace protocol {

#define HIVE_STEEM_PUBLIC_KEY_STR "STM65wH1LZ7BfSHcK69SShnqCAH5xdoSZpGkUjmzHJ5GCuxEK9V5G"

enum curve_id
{
quadratic,
Expand Down
14 changes: 7 additions & 7 deletions tests/python/hive-local-tools/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/python/hive-local-tools/test-tools
Submodule test-tools updated 2 files
+7 −7 poetry.lock
+1 −1 pyproject.toml

0 comments on commit 706141b

Please sign in to comment.