-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/develop' into feat/integrate-act…
…ivitypub-mastodon-worker
- Loading branch information
Showing
25 changed files
with
4,359 additions
and
226 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package parameter | ||
|
||
import ( | ||
"math/big" | ||
|
||
"github.com/rss3-network/protocol-go/schema/network" | ||
) | ||
|
||
// NumberOfMonthsToCover the number of months that a Node should cover data for | ||
const NumberOfMonthsToCover = 3 | ||
|
||
type NetworkTolerance map[network.Network]uint64 | ||
type NetworkStartBlock map[network.Network]*big.Int | ||
type NetworkCoreWorkerDiskSpacePerMonth map[network.Network]uint | ||
|
||
// CurrentNetworkTolerance should be updated each epoch from vsl | ||
var CurrentNetworkTolerance = NetworkTolerance{} | ||
|
||
// CurrentNetworkStartBlock should be updated each epoch from vsl | ||
var CurrentNetworkStartBlock = NetworkStartBlock{} | ||
|
||
// CurrentNetworkCoreWorkerDiskSpacePerMonth the disk space required for the network's core worker to store a month worth of data | ||
// The data is calculated based on the average disk space usage during 2024 Q1. | ||
// Actually usage may vary depending on the network's activity. | ||
var CurrentNetworkCoreWorkerDiskSpacePerMonth = NetworkCoreWorkerDiskSpacePerMonth{} |
Oops, something went wrong.