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

Improve data cost estimation when full tx hurts compression ratio #1058

Merged
merged 4 commits into from
Sep 1, 2022

Conversation

PlasmaPower
Copy link
Contributor

No description provided.

@cla-bot cla-bot bot added the s Automatically added by the CLA bot if the creator of a PR is registered as having signed the CLA. label Sep 1, 2022
@PlasmaPower PlasmaPower added the node Changes the node software label Sep 1, 2022
Copy link
Contributor

@edfelten edfelten left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two possible typos.

arbos/l1pricing/l1pricing.go Outdated Show resolved Hide resolved
arbos/l1pricing/l1pricing.go Outdated Show resolved Hide resolved
edfelten
edfelten previously approved these changes Sep 1, 2022
Copy link
Contributor

@edfelten edfelten left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@@ -20,6 +20,8 @@ type ArbGasInfo struct {

var storageArbGas = big.NewInt(int64(storage.StorageWriteCost))

const AssumedSimpleTxSize = 140
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We may want to think about this later, but definitely not now

var randR = crypto.Keccak256Hash([]byte("R")).Big()
var randS = crypto.Keccak256Hash([]byte("S")).Big()

func makeFakeTxForMessage(message core.Message) *types.Transaction {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it may be worth noting that this fake tx is invalid (signature doesn't check out, intentionally large field values, even the wrong tx type sometimes, etc)

Copy link
Contributor

@rachel-bousfield rachel-bousfield left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

@PlasmaPower PlasmaPower merged commit c48b8be into master Sep 1, 2022
@PlasmaPower PlasmaPower deleted the improve-data-cost-estimation branch September 1, 2022 01:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
node Changes the node software s Automatically added by the CLA bot if the creator of a PR is registered as having signed the CLA.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants