Comments (4)
the GNOHOME environment variable?
from gno.
I am talking specifically on the -home
parameter, which stores the path to the data dir where the keypairs are stored. Not sure if it coincides with GNOHOME/GNOROOT directly.
I'm reading through gnokey
code, it seems that the default is empty, ie from this snippet:
var DefaultBaseOptions = BaseOptions{
Home: "",
Remote: "127.0.0.1:26657",
Quiet: false,
InsecurePasswordStdin: false,
Config: "",
}
The way gnokey infers its home parameter is very weird, and frankly I'm not sure how it works.
from gno.
I'm reading through
gnokey
code, it seems that the default is empty, ie from this snippet:
So, it's a bit different.
The gnokey
binary doesn't actually use client.DefaultBaseOptions
(the variable you posted). Instead, refer to cmd/gnokey/main.go
: this one shows that the true base config used is the following:
baseCfg := client.BaseOptions{
Home: gnoenv.HomeDir(),
Remote: "127.0.0.1:26657",
}
Ie. the default value for -home
1 is gnoenv.HomeDir
.
This is gnovm/pkg/gnoenv/gnohome.go
. In summary: it's GNOHOME
, and if it is not set it falls back to ~/.config/gno
(on UNIX, on Windows it's AppData IIRC).
What we should recommend users, if they want to change their home directory permanently, is to add export GNOHOME=/path/to/gnohome
in their ~/.profile
. (In fact, I think we should remove the -home
flag altogether, as I don't think it's something a user wants to change with each execution, but I digress)
from gno.
Cool, thanks. I'll close this issue in favor of documenting this more clearly.
from gno.
Related Issues (20)
- Rename `baseOf` to avoid overloading the term
- realm maps not initialized with a filetest HOT 2
- security: is there a bug bounty policy? HOT 2
- Requesting GNOLAND added to Trustwallet
- Add high-level section pages to docs.gno.land
- Ensure that block timestamps proposed by validator is not anomalous HOT 1
- In filetests, PrevRealm().Address is std.GetOrigPkgAddr(), instead of std.TestSetOrigCaller's HOT 4
- Add network configurations table to docs
- Feature request: Unique time.Now() per transaction HOT 1
- Conflicting `chainID`s used for network RPC addresses HOT 1
- [RFC] Go-Gno testing framework
- demo/boards Render hangs for multiple messages in avl.Tree HOT 3
- Build gnoland to Trustwallet,
- gnolang/overflow repo and `math/overflow` (ex `p/demo/maths`) should be synced up
- trigger contract in onchain HOT 1
- Make 'Start' button on `gno.land` home page lead to a good resource HOT 1
- bug: no error handling for invalid label
- GnoDev : Logs hard to read HOT 2
- Gno.mod - error HOT 1
- Problem with import 'users' realm HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gno.