Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

R4R: LCD proof verification #3449

Merged
merged 16 commits into from
Jan 30, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
rename ResetTestRoot -> ResetTestRootWithChainID
  • Loading branch information
mossid committed Jan 20, 2019
commit b5cb13b373da61dc6856b30469f7629aa560dfe9
8 changes: 4 additions & 4 deletions client/lcd/test_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,16 +74,16 @@ func makePathname() (string, string) {
panic(err)
}

uniq := fmt.Sprintf("%d", rand.Int()%1000000)
chainid := fmt.Sprintf("%d", rand.Int()%1000000)

sep := string(filepath.Separator)
return strings.Replace(p, sep, "_", -1), uniq
return strings.Replace(p, sep, "_", -1), chainid
}

// GetConfig returns a Tendermint config for the test cases.
func GetConfig() *tmcfg.Config {
pathname, uniq := makePathname()
config := tmcfg.ResetTestRoot(pathname, uniq)
pathname, chainid := makePathname()
config := tmcfg.ResetTestRootWithChainID(pathname, chainid)

tmAddr, _, err := server.FreeTCPAddr()
if err != nil {
Expand Down