Skip to content

Commit

Permalink
Fix cli wallet update_witness command serialization steemit#2527
Browse files Browse the repository at this point in the history
  • Loading branch information
mvandeberg committed Jun 6, 2018
1 parent 9686a40 commit d95c46f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,15 @@ namespace steem { namespace plugins { namespace condenser_api {
sbd_interest_rate( c.sbd_interest_rate )
{}

operator legacy_chain_properties() const
{
legacy_chain_properties props;
props.account_creation_fee = legacy_steem_asset::from_asset( asset( account_creation_fee ) );
props.maximum_block_size = maximum_block_size;
props.sbd_interest_rate = sbd_interest_rate;
return props;
}

legacy_asset account_creation_fee;
uint32_t maximum_block_size = STEEM_MIN_BLOCK_SIZE_LIMIT * 2;
uint16_t sbd_interest_rate = STEEM_DEFAULT_SBD_INTEREST_RATE;
Expand Down
2 changes: 1 addition & 1 deletion libraries/wallet/include/steem/wallet/wallet.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ class wallet_api
string witness_name,
string url,
public_key_type block_signing_key,
const legacy_chain_properties& props,
const condenser_api::api_chain_properties& props,
bool broadcast = false);

/** Set the voting proxy for an account.
Expand Down
2 changes: 1 addition & 1 deletion libraries/wallet/wallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1666,7 +1666,7 @@ condenser_api::legacy_signed_transaction wallet_api::update_witness(
string witness_account_name,
string url,
public_key_type block_signing_key,
const legacy_chain_properties& props,
const condenser_api::api_chain_properties& props,
bool broadcast )
{
FC_ASSERT( !is_locked() );
Expand Down

0 comments on commit d95c46f

Please sign in to comment.