mirror of
https://github.com/luxfi/evm.git
synced 2026-09-24 00:27:44 +00:00
* Add TrieStreeTest This smart contract will append N new elements to a vector, this is a stress test to our implementation of the trie structure * Expose internal database? * Rewrite bench Make bench more generic and simpler to bootstrap * Reuse functions * Deploy contract once and reuse it * Write full blocks * Allow callee to deploy N contracts Remove gas calculation from benchmarks, gas is still calculated to make sure all contracts are deployed. stressTestTrieDb takes 3 arguments. The number of contracts to deploy, the calls for each block and the numbers of elements to append to the vector on each call * Remove all gas control * Added AddTxOrFail() This function will treat execution errors as errors as well, useful for testing. ApplyTransaction has been modified to return the ExecutionResult * Move changes to the test Breaking API changes should be avoided * Improve error handling in benchmark * Call many contracts per block * Removed duplicate code Use existing code instead, reading the receipt from the last execution instead of returning the exceutionresult struct * Use NewTx instead of NewTransaction * Better organization for files * rename & move files * Update core/trie_stress_bench_test.go Co-authored-by: aaronbuchwald <[email protected]> Signed-off-by: Cesar <[email protected]> --------- Signed-off-by: Cesar <[email protected]> Co-authored-by: Ceyhun Onur <[email protected]> Co-authored-by: aaronbuchwald <[email protected]>
1 line
496 B
Plaintext
1 line
496 B
Plaintext
[{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getData","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"writeValues","outputs":[],"stateMutability":"nonpayable","type":"function"}] |