Skip to content

Commit

Permalink
temp remove feature_balance_policy1 not transfer.
Browse files Browse the repository at this point in the history
  • Loading branch information
kyonRay committed Aug 7, 2024
1 parent 1505644 commit b2a9397
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions bcos-executor/src/executive/TransactionExecutive.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -231,11 +231,11 @@ CallParameters::UniquePtr TransactionExecutive::execute(CallParameters::UniquePt
<< LOG_KV("value", callParameters->value);
}

if (m_blockContext.features().get(ledger::Features::Flag::feature_balance_policy1))
{
// policy1 disable transfer balance
callParameters->value = 0;
}
// if (m_blockContext.features().get(ledger::Features::Flag::feature_balance_policy1))
// {
// // policy1 disable transfer balance
// callParameters->value = 0;
// }

if (m_blockContext.features().get(ledger::Features::Flag::feature_balance) &&
callParameters->value > 0)
Expand Down
2 changes: 1 addition & 1 deletion bcos-rpc/bcos-rpc/web3jsonrpc/endpoints/EthEndpoint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ task::Task<void> EthEndpoint::gasPrice(const Json::Value&, Json::Value& response
{
auto [gasPrice, _] = config.value();
auto const value = std::stoull(gasPrice, nullptr, 16);
result = toQuantity(value < LowestGasPrice ? LowestGasPrice : value);
result = toQuantity(value);
}
else
{
Expand Down

0 comments on commit b2a9397

Please sign in to comment.