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
Enable transaction fees on mainnet #1360
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1360 +/- ##
==========================================
- Coverage 56.29% 55.39% -0.91%
==========================================
Files 502 510 +8
Lines 31208 31893 +685
==========================================
+ Hits 17570 17667 +97
- Misses 11263 11852 +589
+ Partials 2375 2374 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
cmd/scaffold.go
Outdated
@@ -671,11 +671,11 @@ func (fnb *FlowNodeBuilder) initFvmOptions() { | |||
fvm.WithChain(fnb.RootChainID.Chain()), | |||
fvm.WithBlocks(blockFinder), | |||
fvm.WithAccountStorageLimit(true), | |||
fvm.WithTransactionFeesEnabled(true), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is the impact of this on localnet and benchnet, it might break loaders, was wondering if we could still filter it by chainID be mainnet,
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we've used the loaders on canary before no? And i believe fees are enabled there.
Or did we do extra setup to get the loaders to work for canary?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you mean the marketplace simulator? I was talking about the default loader that we have for localnet, not sure if we have run it against canary before
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We ran in on both testnet and canary chain before... do the localnet and benchnet have a separate chain id? It might be better to exclude those then.
bors merge |
Context
Fees will get turned on on mainnet soon. Currently they are both disabled and set to
0.0
. They need to be enabled (with this PR) during a spork. After that they can be set to non0.0
when desired.Checks
I verified that:
0.0
0.0
doesn't lead to any unexpected problems (on the emulator)0.0
doesn't emit fee deduction events (see the contract)