Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Bump compute budget for neon evm #17700

Merged
merged 1 commit into from
Jul 8, 2021

Conversation

jackcmay
Copy link
Contributor

@jackcmay jackcmay commented Jun 3, 2021

Problem

The Neon EVM requires a larger compute budget than the default

Summary of Changes

Bump the max compute units and the heap size for the Neon EVM program. These are stop-gap changes that eventually will tie into tx-wide compute caps and optional fee-based compute budget bumps.

Fixes #

@codecov
Copy link

codecov bot commented Jun 3, 2021

Codecov Report

Merging #17700 (b71e0c1) into master (3d7d3ec) will decrease coverage by 0.0%.
The diff coverage is 75.0%.

@@            Coverage Diff            @@
##           master   #17700     +/-   ##
=========================================
- Coverage    82.8%    82.7%   -0.1%     
=========================================
  Files         431      432      +1     
  Lines      120590   120601     +11     
=========================================
- Hits        99853    99839     -14     
- Misses      20737    20762     +25     

@stale
Copy link

stale bot commented Jun 11, 2021

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added the stale [bot only] Added to stale content; results in auto-close after a week. label Jun 11, 2021
@stale
Copy link

stale bot commented Jun 18, 2021

This stale pull request has been automatically closed. Thank you for your contributions.

@stale stale bot closed this Jun 18, 2021
@jackcmay jackcmay reopened this Jul 6, 2021
@stale stale bot removed the stale [bot only] Added to stale content; results in auto-close after a week. label Jul 6, 2021
@jackcmay
Copy link
Contributor Author

jackcmay commented Jul 6, 2021

@s-medvedev do you still need the heap bumped?

@jackcmay jackcmay added the v1.7 label Jul 6, 2021
@jackcmay jackcmay force-pushed the neom-evm-compute-budget branch from b71e0c1 to 421a19b Compare July 6, 2021 21:59
@s-medvedev
Copy link
Contributor

@s-medvedev do you still need the heap bumped?

Yes, we need to increase the heap size for the contract to work. Uniswap tests show that 256 KB will be sufficient.

@jackcmay jackcmay force-pushed the neom-evm-compute-budget branch 4 times, most recently from ad76d1b to 78708ce Compare July 7, 2021 21:20
@jackcmay jackcmay force-pushed the neom-evm-compute-budget branch from 78708ce to 546eb12 Compare July 8, 2021 14:58
@jackcmay jackcmay merged commit 2867584 into solana-labs:master Jul 8, 2021
@jackcmay jackcmay deleted the neom-evm-compute-budget branch July 8, 2021 17:43
mergify bot pushed a commit that referenced this pull request Jul 8, 2021
(cherry picked from commit 2867584)

# Conflicts:
#	sdk/src/process_instruction.rs
jackcmay added a commit that referenced this pull request Jul 8, 2021
(cherry picked from commit 2867584)

# Conflicts:
#	sdk/src/process_instruction.rs
jackcmay added a commit that referenced this pull request Jul 8, 2021
jackcmay added a commit that referenced this pull request Jul 9, 2021
(cherry picked from commit 2867584)

Co-authored-by: Jack May <[email protected]>
@brooksprumo brooksprumo mentioned this pull request Aug 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants