erigon-pulse/core/vm
Marius van der Wijden d3d58d9d07 core/vm: fix incorrect computation of BLS discount (#21253)
* core/vm: fix incorrect computation of discount

During testing on Yolov1 we found that the way geth calculates the discount
is not in line with the specification. Basically what we did is calculate
128 * Bls12381GXMulGas * discount / 1000 whenever we received more than 128 pairs
of values. Correct would be to calculate k * Bls12381... for k > 128.

* core/vm: better logic for discount calculation

* core/vm: better calculation logic, added worstcase benchmarks

* core/vm: better benchmarking logic
2020-08-07 11:22:28 +02:00
..
runtime Jumpdest skip optimisation (#851) 2020-08-01 17:56:57 +01:00
stack core/vm: use uint256 in EVM implementation (#20787) 2020-08-07 11:04:19 +02:00
testdata core/vm, crypto/bls12381, params: add bls12-381 elliptic curve precompiles (#21018) 2020-06-15 19:38:13 +03:00
analysis_test.go Jumpdest skip optimisation (#851) 2020-08-01 17:56:57 +01:00
analysis.go Jumpdest skip optimisation (#851) 2020-08-01 17:56:57 +01:00
common.go Use uint256 in EVM implementation (kudos to Pawel Bylica) (#551) 2020-05-18 08:10:59 +01:00
contract.go Jumpdest skip optimisation (#851) 2020-08-01 17:56:57 +01:00
contracts_test.go core/vm: fix incorrect computation of BLS discount (#21253) 2020-08-07 11:22:28 +02:00
contracts.go core/vm: fix incorrect computation of BLS discount (#21253) 2020-08-07 11:22:28 +02:00
doc.go core/vm: remove JIT VM codes (#16362) 2018-03-26 13:48:04 +03:00
eips.go core/vm: use uint256 in EVM implementation (#20787) 2020-08-07 11:04:19 +02:00
errors.go core/vm: EIP-2315, JUMPSUB for the EVM (#20619) 2020-06-15 19:38:13 +03:00
evm.go Jumpdest skip optimisation (#851) 2020-08-01 17:56:57 +01:00
evmc.go Use uint256 for account balance (#580) 2020-05-26 17:53:50 +01:00
gas_table_test.go Jumpdest skip optimisation (#851) 2020-08-01 17:56:57 +01:00
gas_table.go core/vm: use uint256 in EVM implementation (#20787) 2020-08-07 11:04:19 +02:00
gas.go all: fix typos in comments (#21118) 2020-06-15 19:38:13 +03:00
gen_structlog.go core/vm: EIP-2315, JUMPSUB for the EVM (#20619) 2020-06-15 19:38:13 +03:00
instructions_test.go core/vm: use uint256 in EVM implementation (#20787) 2020-08-07 11:04:19 +02:00
instructions.go core/vm: use uint256 in EVM implementation (#20787) 2020-08-07 11:04:19 +02:00
interface.go Use uint256 for account balance (#580) 2020-05-26 17:53:50 +01:00
interpreter.go core/vm: use uint256 in EVM implementation (#20787) 2020-08-07 11:04:19 +02:00
jump_table.go cmd, core, params: inital support for yolo-v1 testnet (#21154) 2020-06-15 19:38:13 +03:00
logger_json.go core/vm: use uint256 in EVM implementation (#20787) 2020-08-07 11:04:19 +02:00
logger_test.go core, eth, internal: include read storage entries in structlog output (#21204) 2020-08-07 11:17:27 +02:00
logger.go core, eth, internal: include read storage entries in structlog output (#21204) 2020-08-07 11:17:27 +02:00
memory_table.go stack pool (#627) 2020-06-05 17:45:56 +03:00
memory.go Use uint256 in EVM implementation (kudos to Pawel Bylica) (#551) 2020-05-18 08:10:59 +01:00
opcodes.go core/vm: EIP-2315, JUMPSUB for the EVM (#20619) 2020-06-15 19:38:13 +03:00
stack_table.go Apply Turbo-Geth modifications to go-ethereum codebase 2019-11-01 21:52:03 +01:00