Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(protocol): remove gasUsed and parentGasUsed #14582

Conversation

dantaik
Copy link
Contributor

@dantaik dantaik commented Aug 25, 2023

No description provided.

@vercel
Copy link

vercel bot commented Aug 25, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
bridge-ui-v2 ⬜️ Ignored (Inspect) Visit Preview Aug 25, 2023 4:23am

@cyberhorsey
Copy link
Contributor

I am out of the loop, why are we removing these?

@dantaik
Copy link
Contributor Author

dantaik commented Aug 25, 2023

I am out of the loop, why are we removing these?

Previously proving fees are calculated based on gas used * fee per gas, now proving fee is decided off-chain, so gas used is no longer used on chain.

@cyberhorsey
Copy link
Contributor

cyberhorsey commented Aug 25, 2023

I am out of the loop, why are we removing these?

Previously proving fees are calculated based on gas used * fee per gas, now proving fee is decided off-chain, so gas used is no longer used on chain.

Sounds good, in the client is it no longer necessary to use parentGasUsed when checking if a proof is valid (ie: we currently do:

       // its valid 
	if parent.GasUsed == parentGasUsed && parent.Hash() == parentHash && blockHash == block.Hash() {
		return true, nil
	}

i can remove all parentGasUsed checks here, or we should keep them still offchain?

@Brechtpd
Copy link
Contributor

I am out of the loop, why are we removing these?

Previously proving fees are calculated based on gas used * fee per gas, now proving fee is decided off-chain, so gas used is no longer used on chain.

Sounds good, in the client is it no longer necessary to use parentGasUsed when checking if a proof is valid (ie: we currently do:

       // its valid 
	if parent.GasUsed == parentGasUsed && parent.Hash() == parentHash && blockHash == block.Hash() {
		return true, nil
	}

i can remove all parentGasUsed checks here, or we should keep them still offchain?

You can remove them.

@davidtaikocha davidtaikocha merged commit 3357dad into prover_abstraction_and_protocol_simplification Aug 25, 2023
4 checks passed
@davidtaikocha davidtaikocha deleted the remove_gas_used_from_fork_choice branch August 25, 2023 11:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants