7 day validity window for order limits (#2520)

* 7 day limit
This commit is contained in:
Bill Thorp 2019-07-10 17:17:00 -04:00 committed by GitHub
parent 32e0227c45
commit 0e463dccfd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 3 additions and 8 deletions

View File

@ -133,7 +133,6 @@ func (planet *Planet) newSatellites(count int) ([]*satellite.Peer, error) {
MinRemoteSegmentSize: 0, // TODO: fix tests to work with 1024
MaxInlineSegmentSize: 8000,
Overlay: true,
BwExpiration: 45,
RS: metainfo.RSConfig{
MaxSegmentSize: 64 * memory.MiB,
MaxBufferMem: memory.Size(256),
@ -146,7 +145,7 @@ func (planet *Planet) newSatellites(count int) ([]*satellite.Peer, error) {
},
},
Orders: orders.Config{
Expiration: 45 * 24 * time.Hour,
Expiration: 7 * 24 * time.Hour,
},
Checker: checker.Config{
Interval: 30 * time.Second,

View File

@ -37,7 +37,6 @@ type Config struct {
MinRemoteSegmentSize memory.Size `default:"1240" help:"minimum remote segment size"`
MaxInlineSegmentSize memory.Size `default:"8000" help:"maximum inline segment size"`
Overlay bool `default:"true" help:"toggle flag if overlay is enabled"`
BwExpiration int `default:"45" help:"lifespan of bandwidth agreements in days"`
RS RSConfig `help:"redundancy scheme configuration"`
}

View File

@ -23,7 +23,7 @@ import (
// Config is a configuration struct for orders Service.
type Config struct {
Expiration time.Duration `help:"how long until an order expires" default:"1080h"`
Expiration time.Duration `help:"how long until an order expires" default:"168h"` // 7 days
}
// Service for creating order limits.

View File

@ -166,9 +166,6 @@ kademlia.operator.wallet: ""
# path to static resources
# marketing.static-dir: ""
# lifespan of bandwidth agreements in days
# metainfo.bw-expiration: 45
# the database connection string to use
# metainfo.database-url: "postgres://"
@ -224,7 +221,7 @@ kademlia.operator.wallet: ""
# monkit.hw.oomlog: "/var/log/kern.log"
# how long until an order expires
# orders.expiration: 1080h0m0s
# orders.expiration: 168h0m0s
# the number of times a node has been audited to not be considered a New Node
# overlay.node.audit-count: 100