Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mybee
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
mybee
Commits
6de5e9c7
Unverified
Commit
6de5e9c7
authored
May 20, 2021
by
acud
Committed by
GitHub
May 20, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: lower reserve capacity (#1775)
parent
5fb06739
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
postagereserve_gc.patch
.github/patches/postagereserve_gc.patch
+1
-1
reserve.go
pkg/postage/batchstore/reserve.go
+2
-3
No files found.
.github/patches/postagereserve_gc.patch
View file @
6de5e9c7
48c48
48c48
< var Capacity = exp2(2
3
)
< var Capacity = exp2(2
2
)
---
---
> var Capacity = exp2(10)
> var Capacity = exp2(10)
pkg/postage/batchstore/reserve.go
View file @
6de5e9c7
...
@@ -42,10 +42,9 @@ var ErrBatchNotFound = errors.New("postage batch not found or expired")
...
@@ -42,10 +42,9 @@ var ErrBatchNotFound = errors.New("postage batch not found or expired")
// DefaultDepth is the initial depth for the reserve
// DefaultDepth is the initial depth for the reserve
var
DefaultDepth
=
uint8
(
12
)
// 12 is the testnet depth at the time of merging to master
var
DefaultDepth
=
uint8
(
12
)
// 12 is the testnet depth at the time of merging to master
// Capacity is the number of chunks in reserve. `2^2
3` (8388608
) was chosen to remain
// Capacity is the number of chunks in reserve. `2^2
2` (4194304
) was chosen to remain
// relatively near the current 5M chunks ~25GB.
// relatively near the current 5M chunks ~25GB.
// Utilization is estimated at 50%-60%, which should result in about 4~5mil chunks in reserve.
var
Capacity
=
exp2
(
22
)
var
Capacity
=
exp2
(
23
)
var
big1
=
big
.
NewInt
(
1
)
var
big1
=
big
.
NewInt
(
1
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment