build(deps): update comet (backport #21586) (#21598)

Co-authored-by: Marko <marko@baricevic.me>
Co-authored-by: marbar3778 <marbar3778@yahoo.com>
This commit is contained in:
mergify[bot]
2024-09-09 08:24:36 +00:00
committed by GitHub
co-authored by Marko marbar3778
parent 46ff3d5fb3
commit 01c0e9ba35
57 changed files with 1066 additions and 1080 deletions
+10 -1
View File
@@ -9,6 +9,8 @@ import (
"path/filepath"
cmtcfg "github.com/cometbft/cometbft/config"
cmtcrypto "github.com/cometbft/cometbft/crypto"
"github.com/cometbft/cometbft/crypto/ed25519"
"github.com/cometbft/cometbft/node"
"github.com/cometbft/cometbft/p2p"
pvm "github.com/cometbft/cometbft/privval"
@@ -66,10 +68,17 @@ func startInProcess(cfg Config, val *Validator) error {
}
cmtApp := server.NewCometABCIWrapper(app)
pv, err := pvm.LoadOrGenFilePV(cmtCfg.PrivValidatorKeyFile(), cmtCfg.PrivValidatorStateFile(), func() (cmtcrypto.PrivKey, error) {
return ed25519.GenPrivKey(), nil
})
if err != nil {
return err
}
tmNode, err := node.NewNode( //resleak:notresource
context.TODO(),
cmtCfg,
pvm.LoadOrGenFilePV(cmtCfg.PrivValidatorKeyFile(), cmtCfg.PrivValidatorStateFile()),
pv,
nodeKey,
proxy.NewLocalClientCreator(cmtApp),
appGenesisProvider,