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

Enable transaction fees on mainnet #1360

Merged
merged 2 commits into from Sep 30, 2021
Merged

Conversation

janezpodhostnik
Copy link
Contributor

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 non 0.0 when desired.

Checks

I verified that:

  • mainnet tx fees are really set to 0.0
  • having tx fees on and set to 0.0 doesn't lead to any unexpected problems (on the emulator)
  • having tx fees on and set to 0.0 doesn't emit fee deduction events (see the contract)

@codecov-commenter
Copy link

codecov-commenter commented Sep 27, 2021

Codecov Report

Merging #1360 (db05d67) into master (2a21b49) will decrease coverage by 0.90%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            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     
Flag Coverage Δ
unittests 55.39% <0.00%> (-0.91%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
cmd/scaffold.go 0.91% <0.00%> (ø)
...sus/approvals/assignment_collector_statemachine.go 42.30% <0.00%> (-9.62%) ⬇️
cmd/bootstrap/utils/key_generation.go 39.32% <0.00%> (-7.35%) ⬇️
network/p2p/libp2pNode.go 65.45% <0.00%> (ø)
storage/badger/dkg_keys.go 100.00% <0.00%> (ø)
ledger/complete/wal/compactor.go 72.13% <0.00%> (ø)
module/dkg/controller_factory.go 0.00% <0.00%> (ø)
storage/badger/operation/prefix.go 76.00% <0.00%> (ø)
cmd/util/cmd/execution-state-extract/cmd.go 56.25% <0.00%> (ø)
engine/collection/synchronization/engine.go 62.90% <0.00%> (ø)
... and 12 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2a21b49...db05d67. Read the comment docs.

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),
Copy link
Member

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,

Copy link
Member

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?

Copy link
Member

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

Copy link
Contributor Author

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.

@janezpodhostnik
Copy link
Contributor Author

bors merge

@bors
Copy link
Contributor

bors bot commented Sep 30, 2021

@bors bors bot merged commit 1113112 into master Sep 30, 2021
@bors bors bot deleted the janez/enable-tx-fees-on-mainnet branch September 30, 2021 13:01
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.

None yet

5 participants