-
Notifications
You must be signed in to change notification settings - Fork 210
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into further-improvements-2
- Loading branch information
Showing
37 changed files
with
236 additions
and
183 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
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
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
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
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
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
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
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
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
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 |
---|---|---|
|
@@ -28,7 +28,6 @@ type ConfigFile struct { | |
Pinning pinningGroup `toml:"pinning"` | ||
Unchained unchainedGroup `toml:"unchained"` | ||
Chains map[string]chainGroup `toml:"chains"` | ||
History historyGroup `toml:"history"` | ||
} | ||
|
||
// init sets up default values for the given configuration | ||
|
@@ -40,24 +39,18 @@ func init() { | |
trueBlocksViper.SetDefault("Settings.IndexPath", PathToRootConfig()+"unchained/") | ||
// The default chain to use if none is provided | ||
trueBlocksViper.SetDefault("Settings.DefaultChain", "mainnet") | ||
// Storage for the last call to particular chifra commands | ||
trueBlocksViper.SetDefault("History.Comment", Reserved) | ||
// The pinning gateway to query when downloading the unchained index | ||
trueBlocksViper.SetDefault("Pinning.GatewayURL", defaultIpfsGateway) | ||
// The local endpoint for the IPFS daemon | ||
trueBlocksViper.SetDefault("Pinning.LocalPinUrl", "http://localhost:5001") | ||
// The remote endpoint for pinning on Pinata | ||
trueBlocksViper.SetDefault("Pinning.GatewayUrl", "https://api.pinata.cloud/pinning/pinFileToIPFS") | ||
// A warning to the user not to edit the [unchained] section of the config file | ||
trueBlocksViper.SetDefault("Unchained.Comment", Reserved) | ||
trueBlocksViper.SetDefault("Unchained.Comment", "Use this to customize the Unchained Index") | ||
// The default publisher of the index of none other is provided | ||
trueBlocksViper.SetDefault("Unchained.PreferredPublisher", "0xf503017d7baf7fbc0fff7492b751025c6a78179b") | ||
// V2: The address of the current version of the Unchained Index | ||
trueBlocksViper.SetDefault("Unchained.SmartContract", "0x0c316b7042b419d07d343f2f4f5bd54ff731183d") | ||
// IPFS hash of the specification for the Unchained Index | ||
trueBlocksViper.SetDefault("Unchained.Specification", "QmUyyU8wKW57c3CuwphhMdZb2QA5bsjt9vVfTE6LcBKmE9") | ||
// The version of the specification and the pre-image of hash in the header of each chunk | ||
trueBlocksViper.SetDefault("Unchained.SpecVersion", "[email protected]") | ||
} | ||
|
||
var configMutex sync.Mutex | ||
|
@@ -205,5 +198,3 @@ func pathFromXDG(envVar string) (string, error) { | |
|
||
return filepath.Join(xdg, "") + "/", nil | ||
} | ||
|
||
var Reserved = "reserved for system use - do not edit unless instructed to do so" |
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.