github.com/decred/dcrlnd@v0.7.6/internal/testutils/remotewallet_common.go (about)

     1  //go:build !windows
     2  // +build !windows
     3  
     4  package testutils
     5  
     6  import (
     7  	"os"
     8  	"os/exec"
     9  )
    10  
    11  // setOSWalletCmdOptions sets platform-specific options needed to run dcrwallet.
    12  func setOSWalletCmdOptions(pipeTX, pipeRX *ipcPipePair, cmd *exec.Cmd) {
    13  	cmd.ExtraFiles = []*os.File{
    14  		pipeTX.w,
    15  		pipeRX.r,
    16  	}
    17  }
    18  
    19  // appendOSWalletArgs appends platform-specific arguments needed to run dcrwallet.
    20  func appendOSWalletArgs(pipeTX, pipeRX *ipcPipePair, args []string) []string {
    21  	args = append(args, "--pipetx=3")
    22  	args = append(args, "--piperx=4")
    23  	return args
    24  }