Skip to content

Commit

Permalink
WIP: change the timing when pr.homePath (and pr.codec) is initialized
Browse files Browse the repository at this point in the history
Signed-off-by: Masanori Yoshida <[email protected]>
  • Loading branch information
siburu committed Apr 11, 2024
1 parent 3be9df5 commit 41b676e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions relay/prover.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand All @@ -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
}

Expand Down

0 comments on commit 41b676e

Please sign in to comment.