# Upgrade coming to Flow Epoch Smart contracts for performance and Access Node Slots

**URL:** <https://forum.flow.com/t/upgrade-coming-to-flow-epoch-smart-contracts-for-performance-and-access-node-slots/5397>\
**Category:** Flow Protocol\
**Created:** [November 15, 2023, 5:19pm UTC](https://forum.flow.com/t/upgrade-coming-to-flow-epoch-smart-contracts-for-performance-and-access-node-slots/5397 "2023-11-15T17:19:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![flowjosh](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.flow.com/flowjosh/32/362_2.png) [@flowjosh](https://forum.flow.com/u/flowjosh)\
**Post date:** [November 15, 2023, 5:19pm UTC](https://forum.flow.com/t/upgrade-coming-to-flow-epoch-smart-contracts-for-performance-and-access-node-slots/5397/1 "2023-11-15T17:19:30Z")

</div>

The Flow team has tentative plans to upgrade the epoch smart contracts on mainnet on December 6th. This is mostly a performance upgrade so it will not break any smart contracts, node software, or event listeners, but there are some useful new additions that might be important to some users. More information is below.

Expected dates to get the changes in effect is as follows:

- CanaryNet: Thursday, November 16th

- Testnet: Monday, November 20th

And assuming that the upgrades on the canary and testnet go well,

- Mainnet: Wednesday, December 6th

This will give us enough time to make sure the upgrades are functioning properly on the non-mainnet networks.

The changes to `FlowDKG`, `FlowEpoch` and `FlowIDTableStaking` code that will be used for the upgrade can be found in [this pull request](https://github.com/onflow/flow-core-contracts/pull/379). The changes are documented in the PR.

Most of the changes are performance-related. There are two features that are being added that might be useful to some users though:

- Adds a [`FlowEpoch.EpochStart` event](https://github.com/onflow/flow-core-contracts/pull/379/files#diff-1da2c6b9c85ee2833c92c917dd4f57655a9f505ff07e2d8088977b6bcdb1969bR62) that is emitted at the start of every epoch and includes important information related to `FlowToken` and epoch information.

- Adds a [feature to open up new access node slots](https://github.com/onflow/flow-core-contracts/pull/379/files#diff-65336be374bb3fc9ad7b822243e065a389d73e758c7c16223e52fc3181cea59bR919) each epoch instead of the service account committee having to do it manually

- Adds a new field to the `EpochSetup` event for the [target end time](https://github.com/onflow/flow-core-contracts/pull/379/files#diff-1da2c6b9c85ee2833c92c917dd4f57655a9f505ff07e2d8088977b6bcdb1969bR125) of the upcoming epoch.

_Note - We are open to changing the timeline if the community provides feedback on the suggested change._

If you have any questions regarding these changes, please ask in the PR comments, on Discord in the `#developers` channel, or reply here.

---

<div class="post-metadata">

**Author:** ![flowjosh](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.flow.com/flowjosh/32/362_2.png) [@flowjosh](https://forum.flow.com/u/flowjosh)\
**Post date:** [November 20, 2023, 4:41pm UTC](https://forum.flow.com/t/upgrade-coming-to-flow-epoch-smart-contracts-for-performance-and-access-node-slots/5397/2 "2023-11-20T16:41:43Z")

</div>

We upgraded on Canary on Nov 16th, but we have been delayed in testing on canary, so we’ll be pushing the testnet upgrade to Nov 27th

---

<div class="post-metadata">

**Author:** ![flowjosh](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.flow.com/flowjosh/32/362_2.png) [@flowjosh](https://forum.flow.com/u/flowjosh)\
**Post date:** [November 27, 2023, 5:01pm UTC](https://forum.flow.com/t/upgrade-coming-to-flow-epoch-smart-contracts-for-performance-and-access-node-slots/5397/3 "2023-11-27T17:01:25Z")

</div>

Contracts are updated on testnet. Mainnet upgrade is still scheduled for Dec 6th

---

<div class="post-metadata">

**Author:** ![flowjosh](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.flow.com/flowjosh/32/362_2.png) [@flowjosh](https://forum.flow.com/u/flowjosh)\
**Post date:** [December 6, 2023, 4:04pm UTC](https://forum.flow.com/t/upgrade-coming-to-flow-epoch-smart-contracts-for-performance-and-access-node-slots/5397/4 "2023-12-06T16:04:31Z")

</div>

We upgrade the `FlowDKG` contract today but delayed the staking and epoch upgrades because we had prepped the incorrect transaction process for the multisig. I’ll post again soon with the date we decide on

---

<div class="post-metadata">

**Author:** ![flowjosh](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.flow.com/flowjosh/32/362_2.png) [@flowjosh](https://forum.flow.com/u/flowjosh)\
**Post date:** [December 7, 2023, 4:19pm UTC](https://forum.flow.com/t/upgrade-coming-to-flow-epoch-smart-contracts-for-performance-and-access-node-slots/5397/5 "2023-12-07T16:19:57Z")

</div>

`FlowIDTableStaking` and `FlowEpoch` are now updated on mainnet
