Skip to content
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.

Commit

Permalink
Change default IPNS QuerySize
Browse files Browse the repository at this point in the history
  • Loading branch information
cpacia committed May 9, 2018
1 parent 55ddc75 commit 96911bf
Show file tree
Hide file tree
Showing 2 changed files with 142 additions and 142 deletions.
2 changes: 1 addition & 1 deletion repo/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ func InitConfig(repoRoot string) (*config.Config, error) {
ResolveCacheSize: 128,
RecordLifetime: "7d",
RepublishPeriod: "24h",
QuerySize: 5,
QuerySize: 1,
UsePersistentCache: true,
},

Expand Down
282 changes: 141 additions & 141 deletions repo/testdata/config
Original file line number Diff line number Diff line change
@@ -1,144 +1,144 @@
{
"API": {
"HTTPHeaders": null
},
"Addresses": {
"API": "",
"Announce": null,
"Gateway": "/ip4/127.0.0.1/tcp/4002",
"NoAnnounce": null,
"Swarm": [
"/ip4/0.0.0.0/tcp/4001",
"/ip4/0.0.0.0/udp/4001/utp",
"/ip6/::/tcp/4001",
"/ip6/::/udp/4001/utp"
]
},
"Bootstrap": [
"/ip4/107.170.133.32/tcp/4001/ipfs/QmboEn7ycZqb8sXH6wJunWE6d3mdT9iVD7XWDmCcKE9jZ5",
"/ip4/139.59.174.197/tcp/4001/ipfs/QmZbLxbrPfGKjhFPwv9g7PkT5jL5DzQ8mF3iioByWMAprj",
"/ip4/139.59.6.222/tcp/4001/ipfs/QmPZkv392E7VxumGSugQDEpfk6bHxfv271HTdVvdUu5Sod"
],
"DataSharing": {
"AcceptStoreRequests": false,
"PushTo": [
"QmZbLxbrPfGKjhFPwv9g7PkT5jL5DzQ8mF3iioByWMAprj",
"QmPZkv392E7VxumGSugQDEpfk6bHxfv271HTdVvdUu5Sod"
]
},
"Datastore": {
"BloomFilterSize": 0,
"GCPeriod": "1h",
"HashOnRead": false,
"Spec": {
"mounts": [
{
"child": {
"path": "blocks",
"shardFunc": "/repo/flatfs/shard/v1/next-to-last/2",
"sync": true,
"type": "flatfs"
},
"mountpoint": "/blocks",
"prefix": "flatfs.datastore",
"type": "measure"
},
{
"child": {
"compression": "none",
"path": "datastore",
"type": "levelds"
},
"mountpoint": "/",
"prefix": "leveldb.datastore",
"type": "measure"
}
],
"type": "mount"
},
"StorageGCWatermark": 90,
"StorageMax": "10GB"
},
"Discovery": {
"MDNS": {
"Enabled": false,
"Interval": 10
}
},
"Dropbox-api-token": "dropbox123",
"Experimental": {
"FilestoreEnabled": false,
"Libp2pStreamMounting": false,
"ShardingEnabled": false
},
"Gateway": {
"HTTPHeaders": null,
"PathPrefixes": [],
"RootRedirect": "",
"Writable": false
},
"Identity": {
"PeerID": "testID",
"PrivKey": "testKey"
},
"Ipns": {
"BackUpAPI": "https://gateway.ob1.io/ob/ipns/",
"QuerySize": 1,
"RecordLifetime": "7d",
"RepublishPeriod": "24h",
"ResolveCacheSize": 128,
"UsePersistentCache": true
},
"JSON-API": {
"AllowedIPs": [
"127.0.0.1"
"API": {
"HTTPHeaders": null
},
"Addresses": {
"API": "",
"Announce": null,
"Gateway": "/ip4/127.0.0.1/tcp/4002",
"NoAnnounce": null,
"Swarm": [
"/ip4/0.0.0.0/tcp/4001",
"/ip4/0.0.0.0/udp/4001/utp",
"/ip6/::/tcp/4001",
"/ip6/::/udp/4001/utp"
]
},
"Bootstrap": [
"/ip4/107.170.133.32/tcp/4001/ipfs/QmboEn7ycZqb8sXH6wJunWE6d3mdT9iVD7XWDmCcKE9jZ5",
"/ip4/139.59.174.197/tcp/4001/ipfs/QmZbLxbrPfGKjhFPwv9g7PkT5jL5DzQ8mF3iioByWMAprj",
"/ip4/139.59.6.222/tcp/4001/ipfs/QmPZkv392E7VxumGSugQDEpfk6bHxfv271HTdVvdUu5Sod"
],
"DataSharing": {
"AcceptStoreRequests": false,
"PushTo": [
"QmZbLxbrPfGKjhFPwv9g7PkT5jL5DzQ8mF3iioByWMAprj",
"QmPZkv392E7VxumGSugQDEpfk6bHxfv271HTdVvdUu5Sod"
]
},
"Datastore": {
"BloomFilterSize": 0,
"GCPeriod": "1h",
"HashOnRead": false,
"Spec": {
"mounts": [
{
"child": {
"path": "blocks",
"shardFunc": "/repo/flatfs/shard/v1/next-to-last/2",
"sync": true,
"type": "flatfs"
},
"mountpoint": "/blocks",
"prefix": "flatfs.datastore",
"type": "measure"
},
{
"child": {
"compression": "none",
"path": "datastore",
"type": "levelds"
},
"mountpoint": "/",
"prefix": "leveldb.datastore",
"type": "measure"
}
],
"Authenticated": true,
"CORS": "*",
"Enabled": true,
"HTTPHeaders": null,
"Password": "TestPassword",
"SSL": true,
"SSLCert": "/path/to/ssl.cert",
"SSLKey": "/path/to/ssl.key",
"Username": "TestUsername"
},
"Mounts": {
"FuseAllowOther": false,
"IPFS": "/ipfs",
"IPNS": "/ipns"
},
"Reprovider": {
"Interval": "",
"Strategy": ""
},
"RepublishInterval": "24h",
"Resolvers": {
".id": "https://resolver.onename.com/"
},
"SupernodeRouting": {
"Servers": null
},
"Swarm": {
"AddrFilters": null,
"DisableBandwidthMetrics": false,
"DisableNatPortMap": false,
"DisableRelay": false,
"EnableRelayHop": false
},
"Tour": {
"Last": ""
},
"Wallet": {
"Binary": "/path/to/bitcoind",
"FeeAPI": "https://btc.fees.openbazaar.org",
"HighFeeDefault": 60,
"LowFeeDefault": 20,
"MaxFee": 2000,
"MediumFeeDefault": 40,
"RPCPassword": "password",
"RPCUser": "username",
"TrustedPeer": "127.0.0.1:8333",
"Type": "spvwallet"
}
"type": "mount"
},
"StorageGCWatermark": 90,
"StorageMax": "10GB"
},
"Discovery": {
"MDNS": {
"Enabled": false,
"Interval": 10
}
},
"Dropbox-api-token": "dropbox123",
"Experimental": {
"FilestoreEnabled": false,
"Libp2pStreamMounting": false,
"ShardingEnabled": false
},
"Gateway": {
"HTTPHeaders": null,
"PathPrefixes": [],
"RootRedirect": "",
"Writable": false
},
"Identity": {
"PeerID": "testID",
"PrivKey": "testKey"
},
"Ipns": {
"BackUpAPI": "https://gateway.ob1.io/ob/ipns/",
"QuerySize": 1,
"RecordLifetime": "7d",
"RepublishPeriod": "24h",
"ResolveCacheSize": 128,
"UsePersistentCache": true
},
"JSON-API": {
"AllowedIPs": [
"127.0.0.1"
],
"Authenticated": true,
"CORS": "*",
"Enabled": true,
"HTTPHeaders": null,
"Password": "TestPassword",
"SSL": true,
"SSLCert": "/path/to/ssl.cert",
"SSLKey": "/path/to/ssl.key",
"Username": "TestUsername"
},
"Mounts": {
"FuseAllowOther": false,
"IPFS": "/ipfs",
"IPNS": "/ipns"
},
"Reprovider": {
"Interval": "",
"Strategy": ""
},
"RepublishInterval": "24h",
"Resolvers": {
".id": "https://resolver.onename.com/"
},
"SupernodeRouting": {
"Servers": null
},
"Swarm": {
"AddrFilters": null,
"DisableBandwidthMetrics": false,
"DisableNatPortMap": false,
"DisableRelay": false,
"EnableRelayHop": false
},
"Tour": {
"Last": ""
},
"Wallet": {
"Binary": "/path/to/bitcoind",
"FeeAPI": "https://btc.fees.openbazaar.org",
"HighFeeDefault": 60,
"LowFeeDefault": 20,
"MaxFee": 2000,
"MediumFeeDefault": 40,
"RPCPassword": "password",
"RPCUser": "username",
"TrustedPeer": "127.0.0.1:8333",
"Type": "spvwallet"
}
}

0 comments on commit 96911bf

Please sign in to comment.