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

[Multisig] Transaction Cost #637

Open
kanniec826 opened this issue Mar 1, 2022 · 1 comment
Open

[Multisig] Transaction Cost #637

kanniec826 opened this issue Mar 1, 2022 · 1 comment

Comments

@kanniec826
Copy link

kanniec826 commented Mar 1, 2022

Multisig transaction should be higher that that of the regular transaction. And it should be at least (N+1) times than the regular transaction cost.

N= No. of signatures

Need to specify in UI when user is planning to do the transaction. (In case when their signatures are from different users/sources)

@kwunyeung
Copy link
Member

Currently @calvinkei set the gas-adjustment to 1.5. This is the adjustment multiplier for enlarging the estimated gas. When the tx is posted to do gas estimate, there is no signature and signer info in the tx. The extra 0.5x of gas estimate is to compensate the difference between the final signed tx and the unsigned tx. I would suppose we can consider 0.5x for each pubkey in signer info. Hence, the gas estimate of a multisig transaction can be estimated as

gas = gas_estimate x ( 1 + num_pubkeys x 0.5)

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

No branches or pull requests

2 participants