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

Allow --piperx=0 (stdin). #452

Merged
merged 1 commit into from Dec 12, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion config.go
Expand Up @@ -98,7 +98,7 @@ type config struct {
AllowHighFees bool `long:"allowhighfees" description:"Force the RPC client to use the 'allowHighFees' flag when sending transactions"`
RelayFee float64 `long:"txfee" description:"Sets the wallet's tx fee per kb (default: 0.01)"`
TicketFee float64 `long:"ticketfee" description:"Sets the wallet's ticket fee per kb (default: 0.01)"`
PipeRx uint `long:"piperx" description:"File descriptor of read end pipe to enable parent -> child process communication"`
PipeRx *uint `long:"piperx" description:"File descriptor of read end pipe to enable parent -> child process communication"`

// RPC client options
RPCConnect string `short:"c" long:"rpcconnect" description:"Hostname/IP and port of dcrd RPC server to connect to (default localhost:9109, testnet: localhost:19109, simnet: localhost:18556)"`
Expand Down
4 changes: 2 additions & 2 deletions dcrwallet.go
Expand Up @@ -149,8 +149,8 @@ func walletMain() error {
}
}

if cfg.PipeRx != 0 {
go serviceControlPipeRx(uintptr(cfg.PipeRx))
if cfg.PipeRx != nil {
go serviceControlPipeRx(uintptr(*cfg.PipeRx))
}

// Add interrupt handlers to shutdown the various process components
Expand Down