diff --git a/relay/prover.go b/relay/prover.go index 01f1e3c..3133382 100644 --- a/relay/prover.go +++ b/relay/prover.go @@ -62,6 +62,8 @@ func (pr *Prover) GetOriginProver() core.Prover { // Init initializes the chain func (pr *Prover) Init(homePath string, timeout time.Duration, codec codec.ProtoCodecMarshaler, debug bool) error { + pr.homePath = homePath + pr.codec = codec if debug { ias.SetAllowDebugEnclaves() } @@ -74,8 +76,6 @@ func (pr *Prover) Init(homePath string, timeout time.Duration, codec codec.Proto if err := os.MkdirAll(pr.dbPath(), os.ModePerm); err != nil { return err } - pr.homePath = homePath - pr.codec = codec return nil }