Skip to content

Commit

Permalink
Increase stake transactions min unlock time for wallet cli
Browse files Browse the repository at this point in the history
  • Loading branch information
LenyKholodov committed Mar 11, 2019
1 parent d88d162 commit 7bdb2fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/graft_rta_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ namespace graft

constexpr uint64_t STAKE_MIN_UNLOCK_TIME = 50;
constexpr uint64_t STAKE_MAX_UNLOCK_TIME = 5000;
constexpr uint64_t STAKE_MIN_UNLOCK_TIME_FOR_WALLET = STAKE_MIN_UNLOCK_TIME + 10;
constexpr uint64_t STAKE_VALIDATION_PERIOD = 6;
constexpr uint64_t TRUSTED_RESTAKING_PERIOD = 6;
constexpr uint64_t SUPERNODE_HISTORY_SIZE = 100;
Expand Down
4 changes: 2 additions & 2 deletions src/simplewallet/simplewallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2546,9 +2546,9 @@ bool simple_wallet::transfer_main(int transfer_type, const std::vector<std::stri
return true;
}

if (locked_blocks < config::graft::STAKE_MIN_UNLOCK_TIME)
if (locked_blocks < config::graft::STAKE_MIN_UNLOCK_TIME_FOR_WALLET)
{
fail_msg_writer() << tr("locked blocks number ") << locked_blocks << tr(" is less than minimum required ") << config::graft::STAKE_MIN_UNLOCK_TIME;
fail_msg_writer() << tr("locked blocks number ") << locked_blocks << tr(" is less than minimum required ") << config::graft::STAKE_MIN_UNLOCK_TIME_FOR_WALLET;
return true;
}

Expand Down

0 comments on commit 7bdb2fb

Please sign in to comment.