Skip to content

Commit

Permalink
always use filePv to sign oracle votes, instead of remote signer
Browse files Browse the repository at this point in the history
  • Loading branch information
yan-soon authored and yan-soon committed Jul 1, 2024
1 parent 388af56 commit 628f00c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,9 @@ func NewNodeWithContext(ctx context.Context,
return nil, err
}

// use to store file private validator, if remote signer is enabled
filePv := privValidator

// If an address is provided, listen on the socket for a connection from an
// external signing process.
if config.PrivValidatorListenAddr != "" {
Expand Down Expand Up @@ -377,7 +380,8 @@ func NewNodeWithContext(ctx context.Context,
}

// Make OracleReactor
oracleReactor := oracle.NewReactor(config.Oracle, pubKey, privValidator, proxyApp.Consensus())
// always use filePv to sign oracle votes, even if remote signer is used for signing block proposal and votes
oracleReactor := oracle.NewReactor(config.Oracle, pubKey, filePv, proxyApp.Consensus())
oracleInfo := oracleReactor.OracleInfo

// make block executor for consensus and blocksync reactors to execute blocks
Expand Down

0 comments on commit 628f00c

Please sign in to comment.