forked from ethereum/go-ethereum
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add fractional CALLDATA gas cost (ethereum#75)
Since an FHE-based chain could require relatively big FHE ciphertexts to be passed as transaction inputs, reduce the CALLDATA gas cost to `1 / TxFheDataFractionalGas` per byte. Currently, it costs 1/4 gas per byte. It doesn't matter if a byte is zero or non-zero, the cost is the same. The `TxFheDataFractionalGas` constant could be changed in the future as we gain more usage patterns from live networks.
- Loading branch information
1 parent
aa44128
commit 5bad456
Showing
2 changed files
with
15 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters