diff --git a/rvgo/cmd/process_preimage_oracle.go b/rvgo/cmd/process_preimage_oracle.go index 864e3256..440e7e15 100644 --- a/rvgo/cmd/process_preimage_oracle.go +++ b/rvgo/cmd/process_preimage_oracle.go @@ -85,10 +85,6 @@ func (p *ProcessPreimageOracle) GetPreimage(k [32]byte) []byte { return p.pCl.Get(rawKey(k)) } -func (p *ProcessPreimageOracle) GetCmd() *exec.Cmd { - return p.cmd -} - func (p *ProcessPreimageOracle) Start() error { if p.cmd == nil { return nil diff --git a/rvgo/cmd/run.go b/rvgo/cmd/run.go index 7b88580a..5c21928b 100644 --- a/rvgo/cmd/run.go +++ b/rvgo/cmd/run.go @@ -134,9 +134,8 @@ func Run(ctx *cli.Context) error { snapshotFmt := ctx.String(cannon.RunSnapshotFmtFlag.Name) stepFn := us.Step - poCmd := po.GetCmd() - if poCmd != nil { - stepFn = Guard(poCmd.ProcessState, stepFn) + if po.cmd != nil { + stepFn = Guard(po.cmd.ProcessState, stepFn) } start := time.Now()