This commit is contained in:
Zahoor Mohamed 2017-01-05 10:57:36 +00:00 committed by GitHub
commit 9c9b986abe
2 changed files with 5 additions and 1 deletions

View file

@ -252,6 +252,10 @@ func registerBzzService(ctx *cli.Context, stack *node.Node) {
if len(bzzport) > 0 {
bzzconfig.Port = bzzport
}
networkId := ctx.GlobalUint64(SwarmNetworkIdFlag.Name)
if networkId > 0 {
bzzconfig.NetworkId = networkId
}
swapEnabled := ctx.GlobalBool(SwarmSwapEnabled.Name)
syncEnabled := ctx.GlobalBoolT(SwarmSyncEnabled.Name)

View file

@ -333,7 +333,7 @@ func RegularSlashes(path string) (res string) {
}
func (self *manifestTrie) getEntry(spath string) (entry *manifestTrieEntry, fullpath string) {
path := RegularSlashes(spath)
path := RegularSlashes(spath) + "/"
var pos int
quitC := make(chan bool)
entry, pos = self.findPrefixOf(path, quitC)