Skip to content

Commit

Permalink
Revert "disable fees"
Browse files Browse the repository at this point in the history
This reverts commit 66a225b.
  • Loading branch information
dvush committed Jun 18, 2020
1 parent 0354121 commit 2db640d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/promote-stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ jobs:
zksync update-images
echo "::set-env name=IMAGE_TAG::$(f sh -c 'echo $IMAGE_TAG')"
# - name: update-selfhosted-cache
# run: tar cf ~/runner-cache.tar keys/setup target js/zksync-crypto/target
- name: update-selfhosted-cache
run: tar cf ~/runner-cache.tar keys/setup target js/zksync-crypto/target

- name: update-stage
run: |
Expand Down
22 changes: 11 additions & 11 deletions core/server/src/api_server/rpc_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -822,17 +822,17 @@ impl Rpc for RpcApp {
// We allow fee to be 5% off the required fee
let scaled_provided_fee =
provided_fee.clone() * BigUint::from(105u32) / BigUint::from(100u32);
// if required_fee.total_fee >= scaled_provided_fee {
// warn!(
// "User provided fee is too low, required: {:?}, provided: {} (scaled: {}), token: {:?}",
// required_fee, provided_fee, scaled_provided_fee, token
// );
// return Err(Error {
// code: RpcErrorCodes::from(TxAddError::TxFeeTooLow).into(),
// message: TxAddError::TxFeeTooLow.to_string(),
// data: None,
// });
// }
if required_fee.total_fee >= scaled_provided_fee {
warn!(
"User provided fee is too low, required: {:?}, provided: {} (scaled: {}), token: {:?}",
required_fee, provided_fee, scaled_provided_fee, token
);
return Err(Error {
code: RpcErrorCodes::from(TxAddError::TxFeeTooLow).into(),
message: TxAddError::TxFeeTooLow.to_string(),
data: None,
});
}
}

let verified_tx = verify_tx_info_message_signature(
Expand Down

0 comments on commit 2db640d

Please sign in to comment.