Skip to content

Commit

Permalink
replace tendermint/tendermint with cometbft/cometbft pkg and disable …
Browse files Browse the repository at this point in the history
…local node mode
  • Loading branch information
MonikaCat committed Jan 3, 2024
1 parent 5896c30 commit bc4b946
Show file tree
Hide file tree
Showing 19 changed files with 1,224 additions and 1,364 deletions.
2 changes: 1 addition & 1 deletion cmd/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ import (

"github.com/forbole/juno/v4/types"

"github.com/cometbft/cometbft/libs/cli"
"github.com/spf13/cobra"
"github.com/tendermint/tendermint/libs/cli"
)

var (
Expand Down
251 changes: 130 additions & 121 deletions go.mod

Large diffs are not rendered by default.

762 changes: 307 additions & 455 deletions go.sum

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion logging/default.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import (

"github.com/gogo/protobuf/proto"

tmctypes "github.com/cometbft/cometbft/rpc/core/types"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/rs/zerolog"
"github.com/rs/zerolog/log"
tmctypes "github.com/tendermint/tendermint/rpc/core/types"

"github.com/forbole/juno/v4/modules"
"github.com/forbole/juno/v4/types"
Expand Down
2 changes: 1 addition & 1 deletion logging/logger.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package logging

import (
tmctypes "github.com/cometbft/cometbft/rpc/core/types"
sdk "github.com/cosmos/cosmos-sdk/types"
tmctypes "github.com/tendermint/tendermint/rpc/core/types"

"github.com/forbole/juno/v4/modules"
"github.com/forbole/juno/v4/types"
Expand Down
4 changes: 2 additions & 2 deletions modules/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import (

"github.com/cosmos/cosmos-sdk/x/authz"

tmctypes "github.com/cometbft/cometbft/rpc/core/types"
tmtypes "github.com/cometbft/cometbft/types"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/go-co-op/gocron"
tmctypes "github.com/tendermint/tendermint/rpc/core/types"
tmtypes "github.com/tendermint/tendermint/types"

"github.com/forbole/juno/v4/types"
)
Expand Down
2 changes: 1 addition & 1 deletion modules/pruning/handle_block.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package pruning
import (
"fmt"

tmctypes "github.com/tendermint/tendermint/rpc/core/types"
tmctypes "github.com/cometbft/cometbft/rpc/core/types"

"github.com/forbole/juno/v4/database"
"github.com/forbole/juno/v4/types"
Expand Down
3 changes: 1 addition & 2 deletions node/builder/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (

"github.com/forbole/juno/v4/node"
nodeconfig "github.com/forbole/juno/v4/node/config"
"github.com/forbole/juno/v4/node/local"
"github.com/forbole/juno/v4/node/remote"
)

Expand All @@ -16,7 +15,7 @@ func BuildNode(cfg nodeconfig.Config, encodingConfig *params.EncodingConfig) (no
case nodeconfig.TypeRemote:
return remote.NewNode(cfg.Details.(*remote.Details), encodingConfig.Codec)
case nodeconfig.TypeLocal:
return local.NewNode(cfg.Details.(*local.Details), encodingConfig.TxConfig, encodingConfig.Codec)
return nil, fmt.Errorf("local mode is currently not supported")
case nodeconfig.TypeNone:
return nil, nil

Expand Down
Loading

0 comments on commit bc4b946

Please sign in to comment.