refactor: replace all github.com upstream refs with git.cw.tr/mukan-network
Some checks are pending
docker-build-cometbft / vars (push) Waiting to run
docker-build-cometbft / build-images (amd64, ubuntu-24.04) (push) Blocked by required conditions
docker-build-cometbft / build-images (arm64, ubuntu-24.04-arm) (push) Blocked by required conditions
docker-build-cometbft / merge-images (push) Blocked by required conditions
docker-build-e2e-node / vars (push) Waiting to run
docker-build-e2e-node / build-images (amd64, ubuntu-24.04) (push) Blocked by required conditions
docker-build-e2e-node / build-images (arm64, ubuntu-24.04-arm) (push) Blocked by required conditions
docker-build-e2e-node / merge-images (push) Blocked by required conditions

This commit is contained in:
Mukan Erkin TÖRÜK 2026-05-11 03:36:20 +03:00
parent ef24c0b67e
commit c6a41110d1
491 changed files with 1950 additions and 1950 deletions

View file

@ -5,9 +5,9 @@ import (
"fmt" "fmt"
"sync" "sync"
"github.com/cometbft/cometbft/abci/types" "git.cw.tr/mukan-network/mukan-consensus/abci/types"
"github.com/cometbft/cometbft/libs/service" "git.cw.tr/mukan-network/mukan-consensus/libs/service"
cmtsync "github.com/cometbft/cometbft/libs/sync" cmtsync "git.cw.tr/mukan-network/mukan-consensus/libs/sync"
) )
const ( const (

View file

@ -10,9 +10,9 @@ import (
"google.golang.org/grpc" "google.golang.org/grpc"
"google.golang.org/grpc/credentials/insecure" "google.golang.org/grpc/credentials/insecure"
"github.com/cometbft/cometbft/abci/types" "git.cw.tr/mukan-network/mukan-consensus/abci/types"
cmtnet "github.com/cometbft/cometbft/libs/net" cmtnet "git.cw.tr/mukan-network/mukan-consensus/libs/net"
"github.com/cometbft/cometbft/libs/service" "git.cw.tr/mukan-network/mukan-consensus/libs/service"
) )
var _ Client = (*grpcClient)(nil) var _ Client = (*grpcClient)(nil)

View file

@ -14,11 +14,11 @@ import (
"golang.org/x/net/context" "golang.org/x/net/context"
"github.com/cometbft/cometbft/libs/log" "git.cw.tr/mukan-network/mukan-consensus/libs/log"
cmtnet "github.com/cometbft/cometbft/libs/net" cmtnet "git.cw.tr/mukan-network/mukan-consensus/libs/net"
abciserver "github.com/cometbft/cometbft/abci/server" abciserver "git.cw.tr/mukan-network/mukan-consensus/abci/server"
"github.com/cometbft/cometbft/abci/types" "git.cw.tr/mukan-network/mukan-consensus/abci/types"
) )
func TestGRPC(t *testing.T) { func TestGRPC(t *testing.T) {

View file

@ -3,9 +3,9 @@ package abcicli
import ( import (
"context" "context"
types "github.com/cometbft/cometbft/abci/types" types "git.cw.tr/mukan-network/mukan-consensus/abci/types"
"github.com/cometbft/cometbft/libs/service" "git.cw.tr/mukan-network/mukan-consensus/libs/service"
cmtsync "github.com/cometbft/cometbft/libs/sync" cmtsync "git.cw.tr/mukan-network/mukan-consensus/libs/sync"
) )
// NOTE: use defer to unlock mutex because Application might panic (e.g., in // NOTE: use defer to unlock mutex because Application might panic (e.g., in

View file

@ -5,13 +5,13 @@ package mocks
import ( import (
context "context" context "context"
abcicli "github.com/cometbft/cometbft/abci/client" abcicli "git.cw.tr/mukan-network/mukan-consensus/abci/client"
log "github.com/cometbft/cometbft/libs/log" log "git.cw.tr/mukan-network/mukan-consensus/libs/log"
mock "github.com/stretchr/testify/mock" mock "github.com/stretchr/testify/mock"
types "github.com/cometbft/cometbft/abci/types" types "git.cw.tr/mukan-network/mukan-consensus/abci/types"
) )
// Client is an autogenerated mock type for the Client type // Client is an autogenerated mock type for the Client type

View file

@ -11,10 +11,10 @@ import (
"sync" "sync"
"time" "time"
"github.com/cometbft/cometbft/abci/types" "git.cw.tr/mukan-network/mukan-consensus/abci/types"
cmtnet "github.com/cometbft/cometbft/libs/net" cmtnet "git.cw.tr/mukan-network/mukan-consensus/libs/net"
"github.com/cometbft/cometbft/libs/service" "git.cw.tr/mukan-network/mukan-consensus/libs/service"
"github.com/cometbft/cometbft/libs/timer" "git.cw.tr/mukan-network/mukan-consensus/libs/timer"
) )
const ( const (

View file

@ -12,11 +12,11 @@ import (
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
abcicli "github.com/cometbft/cometbft/abci/client" abcicli "git.cw.tr/mukan-network/mukan-consensus/abci/client"
"github.com/cometbft/cometbft/abci/server" "git.cw.tr/mukan-network/mukan-consensus/abci/server"
"github.com/cometbft/cometbft/abci/types" "git.cw.tr/mukan-network/mukan-consensus/abci/types"
cmtrand "github.com/cometbft/cometbft/libs/rand" cmtrand "git.cw.tr/mukan-network/mukan-consensus/libs/rand"
"github.com/cometbft/cometbft/libs/service" "git.cw.tr/mukan-network/mukan-consensus/libs/service"
) )
func TestCalls(t *testing.T) { func TestCalls(t *testing.T) {

View file

@ -11,16 +11,16 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/cometbft/cometbft/libs/log" "git.cw.tr/mukan-network/mukan-consensus/libs/log"
cmtos "github.com/cometbft/cometbft/libs/os" cmtos "git.cw.tr/mukan-network/mukan-consensus/libs/os"
abcicli "github.com/cometbft/cometbft/abci/client" abcicli "git.cw.tr/mukan-network/mukan-consensus/abci/client"
"github.com/cometbft/cometbft/abci/example/kvstore" "git.cw.tr/mukan-network/mukan-consensus/abci/example/kvstore"
"github.com/cometbft/cometbft/abci/server" "git.cw.tr/mukan-network/mukan-consensus/abci/server"
servertest "github.com/cometbft/cometbft/abci/tests/server" servertest "git.cw.tr/mukan-network/mukan-consensus/abci/tests/server"
"github.com/cometbft/cometbft/abci/types" "git.cw.tr/mukan-network/mukan-consensus/abci/types"
"github.com/cometbft/cometbft/abci/version" "git.cw.tr/mukan-network/mukan-consensus/abci/version"
"github.com/cometbft/cometbft/proto/tendermint/crypto" "git.cw.tr/mukan-network/mukan-consensus/proto/tendermint/crypto"
) )
// client is a global variable so it can be reused by the console // client is a global variable so it can be reused by the console

View file

@ -6,10 +6,10 @@ import (
"fmt" "fmt"
"strings" "strings"
"github.com/cometbft/cometbft/abci/types" "git.cw.tr/mukan-network/mukan-consensus/abci/types"
cryptoencoding "github.com/cometbft/cometbft/crypto/encoding" cryptoencoding "git.cw.tr/mukan-network/mukan-consensus/crypto/encoding"
cmtrand "github.com/cometbft/cometbft/libs/rand" cmtrand "git.cw.tr/mukan-network/mukan-consensus/libs/rand"
"github.com/cometbft/cometbft/proto/tendermint/crypto" "git.cw.tr/mukan-network/mukan-consensus/proto/tendermint/crypto"
) )
// RandVal creates one random validator, with a key derived // RandVal creates one random validator, with a key derived

View file

@ -10,13 +10,13 @@ import (
"strconv" "strconv"
"strings" "strings"
dbm "github.com/cometbft/cometbft-db" dbm "git.cw.tr/mukan-network/mukan-consensus-db"
"github.com/cometbft/cometbft/abci/types" "git.cw.tr/mukan-network/mukan-consensus/abci/types"
cryptoencoding "github.com/cometbft/cometbft/crypto/encoding" cryptoencoding "git.cw.tr/mukan-network/mukan-consensus/crypto/encoding"
"github.com/cometbft/cometbft/libs/log" "git.cw.tr/mukan-network/mukan-consensus/libs/log"
cryptoproto "github.com/cometbft/cometbft/proto/tendermint/crypto" cryptoproto "git.cw.tr/mukan-network/mukan-consensus/proto/tendermint/crypto"
"github.com/cometbft/cometbft/version" "git.cw.tr/mukan-network/mukan-consensus/version"
) )
var ( var (

View file

@ -8,12 +8,12 @@ import (
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"github.com/cometbft/cometbft/libs/log" "git.cw.tr/mukan-network/mukan-consensus/libs/log"
"github.com/cometbft/cometbft/libs/service" "git.cw.tr/mukan-network/mukan-consensus/libs/service"
abcicli "github.com/cometbft/cometbft/abci/client" abcicli "git.cw.tr/mukan-network/mukan-consensus/abci/client"
abciserver "github.com/cometbft/cometbft/abci/server" abciserver "git.cw.tr/mukan-network/mukan-consensus/abci/server"
"github.com/cometbft/cometbft/abci/types" "git.cw.tr/mukan-network/mukan-consensus/abci/types"
) )
const ( const (

View file

@ -6,9 +6,9 @@ import (
"google.golang.org/grpc" "google.golang.org/grpc"
"github.com/cometbft/cometbft/abci/types" "git.cw.tr/mukan-network/mukan-consensus/abci/types"
cmtnet "github.com/cometbft/cometbft/libs/net" cmtnet "git.cw.tr/mukan-network/mukan-consensus/libs/net"
"github.com/cometbft/cometbft/libs/service" "git.cw.tr/mukan-network/mukan-consensus/libs/service"
) )
type GRPCServer struct { type GRPCServer struct {

View file

@ -10,8 +10,8 @@ package server
import ( import (
"fmt" "fmt"
"github.com/cometbft/cometbft/abci/types" "git.cw.tr/mukan-network/mukan-consensus/abci/types"
"github.com/cometbft/cometbft/libs/service" "git.cw.tr/mukan-network/mukan-consensus/libs/service"
) )
// NewServer is a utility function for out of process applications to set up either a socket or // NewServer is a utility function for out of process applications to set up either a socket or

View file

@ -10,11 +10,11 @@ import (
"os" "os"
"runtime" "runtime"
"github.com/cometbft/cometbft/abci/types" "git.cw.tr/mukan-network/mukan-consensus/abci/types"
cmtlog "github.com/cometbft/cometbft/libs/log" cmtlog "git.cw.tr/mukan-network/mukan-consensus/libs/log"
cmtnet "github.com/cometbft/cometbft/libs/net" cmtnet "git.cw.tr/mukan-network/mukan-consensus/libs/net"
"github.com/cometbft/cometbft/libs/service" "git.cw.tr/mukan-network/mukan-consensus/libs/service"
cmtsync "github.com/cometbft/cometbft/libs/sync" cmtsync "git.cw.tr/mukan-network/mukan-consensus/libs/sync"
) )
// SocketServer is the server-side implementation of the TSP (Tendermint Socket Protocol) // SocketServer is the server-side implementation of the TSP (Tendermint Socket Protocol)

View file

@ -5,8 +5,8 @@ import (
"fmt" "fmt"
"log" "log"
"github.com/cometbft/cometbft/abci/types" "git.cw.tr/mukan-network/mukan-consensus/abci/types"
cmtnet "github.com/cometbft/cometbft/libs/net" cmtnet "git.cw.tr/mukan-network/mukan-consensus/libs/net"
) )
func main() { func main() {

View file

@ -7,8 +7,8 @@ import (
"log" "log"
"reflect" "reflect"
"github.com/cometbft/cometbft/abci/types" "git.cw.tr/mukan-network/mukan-consensus/abci/types"
cmtnet "github.com/cometbft/cometbft/libs/net" cmtnet "git.cw.tr/mukan-network/mukan-consensus/libs/net"
) )
func main() { func main() {

View file

@ -5,9 +5,9 @@ import (
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
abciclient "github.com/cometbft/cometbft/abci/client" abciclient "git.cw.tr/mukan-network/mukan-consensus/abci/client"
"github.com/cometbft/cometbft/abci/example/kvstore" "git.cw.tr/mukan-network/mukan-consensus/abci/example/kvstore"
abciserver "github.com/cometbft/cometbft/abci/server" abciserver "git.cw.tr/mukan-network/mukan-consensus/abci/server"
) )
func TestClientServerNoAddrPrefix(t *testing.T) { func TestClientServerNoAddrPrefix(t *testing.T) {

View file

@ -6,9 +6,9 @@ import (
"errors" "errors"
"fmt" "fmt"
abcicli "github.com/cometbft/cometbft/abci/client" abcicli "git.cw.tr/mukan-network/mukan-consensus/abci/client"
"github.com/cometbft/cometbft/abci/types" "git.cw.tr/mukan-network/mukan-consensus/abci/types"
cmtrand "github.com/cometbft/cometbft/libs/rand" cmtrand "git.cw.tr/mukan-network/mukan-consensus/libs/rand"
) )
func InitChain(ctx context.Context, client abcicli.Client) error { func InitChain(ctx context.Context, client abcicli.Client) error {

View file

@ -6,7 +6,7 @@ import (
"github.com/cosmos/gogoproto/proto" "github.com/cosmos/gogoproto/proto"
"github.com/cometbft/cometbft/libs/protoio" "git.cw.tr/mukan-network/mukan-consensus/libs/protoio"
) )
const ( const (

View file

@ -9,7 +9,7 @@ import (
"github.com/cosmos/gogoproto/proto" "github.com/cosmos/gogoproto/proto"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" cmtproto "git.cw.tr/mukan-network/mukan-consensus/proto/tendermint/types"
) )
func TestMarshalJSON(t *testing.T) { func TestMarshalJSON(t *testing.T) {

View file

@ -5,7 +5,7 @@ package mocks
import ( import (
context "context" context "context"
types "github.com/cometbft/cometbft/abci/types" types "git.cw.tr/mukan-network/mukan-consensus/abci/types"
mock "github.com/stretchr/testify/mock" mock "github.com/stretchr/testify/mock"
) )

View file

@ -3,9 +3,9 @@ package types
import ( import (
fmt "fmt" fmt "fmt"
"github.com/cometbft/cometbft/crypto/ed25519" "git.cw.tr/mukan-network/mukan-consensus/crypto/ed25519"
cryptoenc "github.com/cometbft/cometbft/crypto/encoding" cryptoenc "git.cw.tr/mukan-network/mukan-consensus/crypto/encoding"
"github.com/cometbft/cometbft/crypto/secp256k1" "git.cw.tr/mukan-network/mukan-consensus/crypto/secp256k1"
) )
func Ed25519ValidatorUpdate(pk []byte, power int64) ValidatorUpdate { func Ed25519ValidatorUpdate(pk []byte, power int64) ValidatorUpdate {

View file

@ -6,8 +6,8 @@ package types
import ( import (
context "context" context "context"
fmt "fmt" fmt "fmt"
crypto "github.com/cometbft/cometbft/proto/tendermint/crypto" crypto "git.cw.tr/mukan-network/mukan-consensus/proto/tendermint/crypto"
types1 "github.com/cometbft/cometbft/proto/tendermint/types" types1 "git.cw.tr/mukan-network/mukan-consensus/proto/tendermint/types"
_ "github.com/cosmos/gogoproto/gogoproto" _ "github.com/cosmos/gogoproto/gogoproto"
grpc1 "github.com/cosmos/gogoproto/grpc" grpc1 "github.com/cosmos/gogoproto/grpc"
proto "github.com/cosmos/gogoproto/proto" proto "github.com/cosmos/gogoproto/proto"

View file

@ -6,8 +6,8 @@ import (
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
abci "github.com/cometbft/cometbft/abci/types" abci "git.cw.tr/mukan-network/mukan-consensus/abci/types"
"github.com/cometbft/cometbft/crypto/merkle" "git.cw.tr/mukan-network/mukan-consensus/crypto/merkle"
) )
func TestHashAndProveResults(t *testing.T) { func TestHashAndProveResults(t *testing.T) {

View file

@ -1,7 +1,7 @@
package version package version
import ( import (
"github.com/cometbft/cometbft/version" "git.cw.tr/mukan-network/mukan-consensus/version"
) )
// TODO: eliminate this after some version refactor // TODO: eliminate this after some version refactor

View file

@ -1,7 +1,7 @@
package blocksync package blocksync
import ( import (
"github.com/cometbft/cometbft/types" "git.cw.tr/mukan-network/mukan-consensus/types"
"github.com/go-kit/kit/metrics" "github.com/go-kit/kit/metrics"
) )

View file

@ -5,8 +5,8 @@ import (
"github.com/cosmos/gogoproto/proto" "github.com/cosmos/gogoproto/proto"
bcproto "github.com/cometbft/cometbft/proto/tendermint/blocksync" bcproto "git.cw.tr/mukan-network/mukan-consensus/proto/tendermint/blocksync"
"github.com/cometbft/cometbft/types" "git.cw.tr/mukan-network/mukan-consensus/types"
) )
const ( const (
@ -31,7 +31,7 @@ func ValidateMsg(pb proto.Message) error {
} }
case *bcproto.BlockResponse: case *bcproto.BlockResponse:
// Avoid double-calling `types.BlockFromProto` for performance reasons. // Avoid double-calling `types.BlockFromProto` for performance reasons.
// See https://github.com/cometbft/cometbft/issues/1964 // See https://git.cw.tr/mukan-network/mukan-consensus/issues/1964
return nil return nil
case *bcproto.NoBlockResponse: case *bcproto.NoBlockResponse:
if msg.Height < 0 { if msg.Height < 0 {

View file

@ -9,9 +9,9 @@ import (
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"github.com/cometbft/cometbft/blocksync" "git.cw.tr/mukan-network/mukan-consensus/blocksync"
bcproto "github.com/cometbft/cometbft/proto/tendermint/blocksync" bcproto "git.cw.tr/mukan-network/mukan-consensus/proto/tendermint/blocksync"
"github.com/cometbft/cometbft/types" "git.cw.tr/mukan-network/mukan-consensus/types"
) )
func TestBcBlockRequestMessageValidateBasic(t *testing.T) { func TestBcBlockRequestMessageValidateBasic(t *testing.T) {

View file

@ -8,13 +8,13 @@ import (
"sync/atomic" "sync/atomic"
"time" "time"
flow "github.com/cometbft/cometbft/libs/flowrate" flow "git.cw.tr/mukan-network/mukan-consensus/libs/flowrate"
"github.com/cometbft/cometbft/libs/log" "git.cw.tr/mukan-network/mukan-consensus/libs/log"
"github.com/cometbft/cometbft/libs/service" "git.cw.tr/mukan-network/mukan-consensus/libs/service"
cmtsync "github.com/cometbft/cometbft/libs/sync" cmtsync "git.cw.tr/mukan-network/mukan-consensus/libs/sync"
"github.com/cometbft/cometbft/p2p" "git.cw.tr/mukan-network/mukan-consensus/p2p"
"github.com/cometbft/cometbft/types" "git.cw.tr/mukan-network/mukan-consensus/types"
cmttime "github.com/cometbft/cometbft/types/time" cmttime "git.cw.tr/mukan-network/mukan-consensus/types/time"
) )
/* /*

View file

@ -9,10 +9,10 @@ import (
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"github.com/cometbft/cometbft/libs/log" "git.cw.tr/mukan-network/mukan-consensus/libs/log"
cmtrand "github.com/cometbft/cometbft/libs/rand" cmtrand "git.cw.tr/mukan-network/mukan-consensus/libs/rand"
"github.com/cometbft/cometbft/p2p" "git.cw.tr/mukan-network/mukan-consensus/p2p"
"github.com/cometbft/cometbft/types" "git.cw.tr/mukan-network/mukan-consensus/types"
) )
func init() { func init() {

View file

@ -6,13 +6,13 @@ import (
"sync" "sync"
"time" "time"
"github.com/cometbft/cometbft/crypto" "git.cw.tr/mukan-network/mukan-consensus/crypto"
"github.com/cometbft/cometbft/libs/log" "git.cw.tr/mukan-network/mukan-consensus/libs/log"
"github.com/cometbft/cometbft/p2p" "git.cw.tr/mukan-network/mukan-consensus/p2p"
bcproto "github.com/cometbft/cometbft/proto/tendermint/blocksync" bcproto "git.cw.tr/mukan-network/mukan-consensus/proto/tendermint/blocksync"
sm "github.com/cometbft/cometbft/state" sm "git.cw.tr/mukan-network/mukan-consensus/state"
"github.com/cometbft/cometbft/store" "git.cw.tr/mukan-network/mukan-consensus/store"
"github.com/cometbft/cometbft/types" "git.cw.tr/mukan-network/mukan-consensus/types"
) )
const ( const (

View file

@ -8,26 +8,26 @@ import (
"testing" "testing"
"time" "time"
bcproto "github.com/cometbft/cometbft/proto/tendermint/blocksync" bcproto "git.cw.tr/mukan-network/mukan-consensus/proto/tendermint/blocksync"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/mock" "github.com/stretchr/testify/mock"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
dbm "github.com/cometbft/cometbft-db" dbm "git.cw.tr/mukan-network/mukan-consensus-db"
abci "github.com/cometbft/cometbft/abci/types" abci "git.cw.tr/mukan-network/mukan-consensus/abci/types"
cfg "github.com/cometbft/cometbft/config" cfg "git.cw.tr/mukan-network/mukan-consensus/config"
"github.com/cometbft/cometbft/internal/test" "git.cw.tr/mukan-network/mukan-consensus/internal/test"
"github.com/cometbft/cometbft/libs/log" "git.cw.tr/mukan-network/mukan-consensus/libs/log"
mpmocks "github.com/cometbft/cometbft/mempool/mocks" mpmocks "git.cw.tr/mukan-network/mukan-consensus/mempool/mocks"
"github.com/cometbft/cometbft/p2p" "git.cw.tr/mukan-network/mukan-consensus/p2p"
cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" cmtproto "git.cw.tr/mukan-network/mukan-consensus/proto/tendermint/types"
"github.com/cometbft/cometbft/proxy" "git.cw.tr/mukan-network/mukan-consensus/proxy"
sm "github.com/cometbft/cometbft/state" sm "git.cw.tr/mukan-network/mukan-consensus/state"
"github.com/cometbft/cometbft/store" "git.cw.tr/mukan-network/mukan-consensus/store"
"github.com/cometbft/cometbft/types" "git.cw.tr/mukan-network/mukan-consensus/types"
cmttime "github.com/cometbft/cometbft/types/time" cmttime "git.cw.tr/mukan-network/mukan-consensus/types/time"
) )
var config *cfg.Config var config *cfg.Config

View file

@ -10,7 +10,7 @@ import (
"github.com/syndtr/goleveldb/leveldb/opt" "github.com/syndtr/goleveldb/leveldb/opt"
"github.com/syndtr/goleveldb/leveldb/util" "github.com/syndtr/goleveldb/leveldb/util"
"github.com/cometbft/cometbft/libs/log" "git.cw.tr/mukan-network/mukan-consensus/libs/log"
) )
var CompactGoLevelDBCmd = &cobra.Command{ var CompactGoLevelDBCmd = &cobra.Command{

View file

@ -5,7 +5,7 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/cometbft/cometbft/libs/log" "git.cw.tr/mukan-network/mukan-consensus/libs/log"
) )
var ( var (

View file

@ -10,9 +10,9 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/spf13/viper" "github.com/spf13/viper"
cfg "github.com/cometbft/cometbft/config" cfg "git.cw.tr/mukan-network/mukan-consensus/config"
"github.com/cometbft/cometbft/libs/cli" "git.cw.tr/mukan-network/mukan-consensus/libs/cli"
rpchttp "github.com/cometbft/cometbft/rpc/client/http" rpchttp "git.cw.tr/mukan-network/mukan-consensus/rpc/client/http"
) )
var dumpCmd = &cobra.Command{ var dumpCmd = &cobra.Command{

View file

@ -13,9 +13,9 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/spf13/viper" "github.com/spf13/viper"
cfg "github.com/cometbft/cometbft/config" cfg "git.cw.tr/mukan-network/mukan-consensus/config"
"github.com/cometbft/cometbft/libs/cli" "git.cw.tr/mukan-network/mukan-consensus/libs/cli"
rpchttp "github.com/cometbft/cometbft/rpc/client/http" rpchttp "git.cw.tr/mukan-network/mukan-consensus/rpc/client/http"
) )
var killCmd = &cobra.Command{ var killCmd = &cobra.Command{

View file

@ -9,8 +9,8 @@ import (
"path" "path"
"path/filepath" "path/filepath"
cfg "github.com/cometbft/cometbft/config" cfg "git.cw.tr/mukan-network/mukan-consensus/config"
rpchttp "github.com/cometbft/cometbft/rpc/client/http" rpchttp "git.cw.tr/mukan-network/mukan-consensus/rpc/client/http"
) )
// dumpStatus gets node status state dump from the CometBFT RPC and writes it // dumpStatus gets node status state dump from the CometBFT RPC and writes it

View file

@ -5,8 +5,8 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
cmtos "github.com/cometbft/cometbft/libs/os" cmtos "git.cw.tr/mukan-network/mukan-consensus/libs/os"
"github.com/cometbft/cometbft/p2p" "git.cw.tr/mukan-network/mukan-consensus/p2p"
) )
// GenNodeKeyCmd allows the generation of a node key. It prints node's ID to // GenNodeKeyCmd allows the generation of a node key. It prints node's ID to

View file

@ -5,8 +5,8 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
cmtjson "github.com/cometbft/cometbft/libs/json" cmtjson "git.cw.tr/mukan-network/mukan-consensus/libs/json"
"github.com/cometbft/cometbft/privval" "git.cw.tr/mukan-network/mukan-consensus/privval"
) )
// GenValidatorCmd allows the generation of a keypair for a // GenValidatorCmd allows the generation of a keypair for a

View file

@ -5,13 +5,13 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
cfg "github.com/cometbft/cometbft/config" cfg "git.cw.tr/mukan-network/mukan-consensus/config"
cmtos "github.com/cometbft/cometbft/libs/os" cmtos "git.cw.tr/mukan-network/mukan-consensus/libs/os"
cmtrand "github.com/cometbft/cometbft/libs/rand" cmtrand "git.cw.tr/mukan-network/mukan-consensus/libs/rand"
"github.com/cometbft/cometbft/p2p" "git.cw.tr/mukan-network/mukan-consensus/p2p"
"github.com/cometbft/cometbft/privval" "git.cw.tr/mukan-network/mukan-consensus/privval"
"github.com/cometbft/cometbft/types" "git.cw.tr/mukan-network/mukan-consensus/types"
cmttime "github.com/cometbft/cometbft/types/time" cmttime "git.cw.tr/mukan-network/mukan-consensus/types/time"
) )
// InitFilesCmd initializes a fresh CometBFT instance. // InitFilesCmd initializes a fresh CometBFT instance.

View file

@ -8,12 +8,12 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
cfg "github.com/cometbft/cometbft/config" cfg "git.cw.tr/mukan-network/mukan-consensus/config"
"github.com/cometbft/cometbft/inspect" "git.cw.tr/mukan-network/mukan-consensus/inspect"
"github.com/cometbft/cometbft/state" "git.cw.tr/mukan-network/mukan-consensus/state"
"github.com/cometbft/cometbft/state/indexer/block" "git.cw.tr/mukan-network/mukan-consensus/state/indexer/block"
"github.com/cometbft/cometbft/store" "git.cw.tr/mukan-network/mukan-consensus/store"
"github.com/cometbft/cometbft/types" "git.cw.tr/mukan-network/mukan-consensus/types"
) )
// InspectCmd is the command for starting an inspect server. // InspectCmd is the command for starting an inspect server.

View file

@ -13,16 +13,16 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
dbm "github.com/cometbft/cometbft-db" dbm "git.cw.tr/mukan-network/mukan-consensus-db"
"github.com/cometbft/cometbft/libs/log" "git.cw.tr/mukan-network/mukan-consensus/libs/log"
cmtmath "github.com/cometbft/cometbft/libs/math" cmtmath "git.cw.tr/mukan-network/mukan-consensus/libs/math"
cmtos "github.com/cometbft/cometbft/libs/os" cmtos "git.cw.tr/mukan-network/mukan-consensus/libs/os"
"github.com/cometbft/cometbft/light" "git.cw.tr/mukan-network/mukan-consensus/light"
lproxy "github.com/cometbft/cometbft/light/proxy" lproxy "git.cw.tr/mukan-network/mukan-consensus/light/proxy"
lrpc "github.com/cometbft/cometbft/light/rpc" lrpc "git.cw.tr/mukan-network/mukan-consensus/light/rpc"
dbs "github.com/cometbft/cometbft/light/store/db" dbs "git.cw.tr/mukan-network/mukan-consensus/light/store/db"
rpcserver "github.com/cometbft/cometbft/rpc/jsonrpc/server" rpcserver "git.cw.tr/mukan-network/mukan-consensus/rpc/jsonrpc/server"
) )
// LightCmd represents the base command when called without any subcommands // LightCmd represents the base command when called without any subcommands

View file

@ -7,18 +7,18 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
dbm "github.com/cometbft/cometbft-db" dbm "git.cw.tr/mukan-network/mukan-consensus-db"
abcitypes "github.com/cometbft/cometbft/abci/types" abcitypes "git.cw.tr/mukan-network/mukan-consensus/abci/types"
cmtcfg "github.com/cometbft/cometbft/config" cmtcfg "git.cw.tr/mukan-network/mukan-consensus/config"
"github.com/cometbft/cometbft/libs/progressbar" "git.cw.tr/mukan-network/mukan-consensus/libs/progressbar"
"github.com/cometbft/cometbft/state" "git.cw.tr/mukan-network/mukan-consensus/state"
"github.com/cometbft/cometbft/state/indexer" "git.cw.tr/mukan-network/mukan-consensus/state/indexer"
blockidxkv "github.com/cometbft/cometbft/state/indexer/block/kv" blockidxkv "git.cw.tr/mukan-network/mukan-consensus/state/indexer/block/kv"
"github.com/cometbft/cometbft/state/indexer/sink/psql" "git.cw.tr/mukan-network/mukan-consensus/state/indexer/sink/psql"
"github.com/cometbft/cometbft/state/txindex" "git.cw.tr/mukan-network/mukan-consensus/state/txindex"
"github.com/cometbft/cometbft/state/txindex/kv" "git.cw.tr/mukan-network/mukan-consensus/state/txindex/kv"
"github.com/cometbft/cometbft/types" "git.cw.tr/mukan-network/mukan-consensus/types"
) )
const ( const (

View file

@ -9,15 +9,15 @@ import (
"github.com/stretchr/testify/mock" "github.com/stretchr/testify/mock"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
dbm "github.com/cometbft/cometbft-db" dbm "git.cw.tr/mukan-network/mukan-consensus-db"
abcitypes "github.com/cometbft/cometbft/abci/types" abcitypes "git.cw.tr/mukan-network/mukan-consensus/abci/types"
cmtcfg "github.com/cometbft/cometbft/config" cmtcfg "git.cw.tr/mukan-network/mukan-consensus/config"
"github.com/cometbft/cometbft/internal/test" "git.cw.tr/mukan-network/mukan-consensus/internal/test"
blockmocks "github.com/cometbft/cometbft/state/indexer/mocks" blockmocks "git.cw.tr/mukan-network/mukan-consensus/state/indexer/mocks"
"github.com/cometbft/cometbft/state/mocks" "git.cw.tr/mukan-network/mukan-consensus/state/mocks"
txmocks "github.com/cometbft/cometbft/state/txindex/mocks" txmocks "git.cw.tr/mukan-network/mukan-consensus/state/txindex/mocks"
"github.com/cometbft/cometbft/types" "git.cw.tr/mukan-network/mukan-consensus/types"
) )
const ( const (

View file

@ -3,7 +3,7 @@ package commands
import ( import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/cometbft/cometbft/consensus" "git.cw.tr/mukan-network/mukan-consensus/consensus"
) )
// ReplayCmd allows replaying of messages from the WAL. // ReplayCmd allows replaying of messages from the WAL.

View file

@ -6,9 +6,9 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/cometbft/cometbft/libs/log" "git.cw.tr/mukan-network/mukan-consensus/libs/log"
cmtos "github.com/cometbft/cometbft/libs/os" cmtos "git.cw.tr/mukan-network/mukan-consensus/libs/os"
"github.com/cometbft/cometbft/privval" "git.cw.tr/mukan-network/mukan-consensus/privval"
) )
// ResetAllCmd removes the database of this CometBFT core // ResetAllCmd removes the database of this CometBFT core

View file

@ -6,8 +6,8 @@ import (
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
cfg "github.com/cometbft/cometbft/config" cfg "git.cw.tr/mukan-network/mukan-consensus/config"
"github.com/cometbft/cometbft/privval" "git.cw.tr/mukan-network/mukan-consensus/privval"
) )
func Test_ResetAll(t *testing.T) { func Test_ResetAll(t *testing.T) {

View file

@ -6,12 +6,12 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
dbm "github.com/cometbft/cometbft-db" dbm "git.cw.tr/mukan-network/mukan-consensus-db"
cfg "github.com/cometbft/cometbft/config" cfg "git.cw.tr/mukan-network/mukan-consensus/config"
"github.com/cometbft/cometbft/libs/os" "git.cw.tr/mukan-network/mukan-consensus/libs/os"
"github.com/cometbft/cometbft/state" "git.cw.tr/mukan-network/mukan-consensus/state"
"github.com/cometbft/cometbft/store" "git.cw.tr/mukan-network/mukan-consensus/store"
) )
var removeBlock = false var removeBlock = false

View file

@ -7,10 +7,10 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/spf13/viper" "github.com/spf13/viper"
cfg "github.com/cometbft/cometbft/config" cfg "git.cw.tr/mukan-network/mukan-consensus/config"
"github.com/cometbft/cometbft/libs/cli" "git.cw.tr/mukan-network/mukan-consensus/libs/cli"
cmtflags "github.com/cometbft/cometbft/libs/cli/flags" cmtflags "git.cw.tr/mukan-network/mukan-consensus/libs/cli/flags"
"github.com/cometbft/cometbft/libs/log" "git.cw.tr/mukan-network/mukan-consensus/libs/log"
) )
var ( var (

View file

@ -12,9 +12,9 @@ import (
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
cfg "github.com/cometbft/cometbft/config" cfg "git.cw.tr/mukan-network/mukan-consensus/config"
"github.com/cometbft/cometbft/libs/cli" "git.cw.tr/mukan-network/mukan-consensus/libs/cli"
cmtos "github.com/cometbft/cometbft/libs/os" cmtos "git.cw.tr/mukan-network/mukan-consensus/libs/os"
) )
// clearConfig clears env vars, the given root dir, and resets viper. // clearConfig clears env vars, the given root dir, and resets viper.

View file

@ -9,9 +9,9 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
cfg "github.com/cometbft/cometbft/config" cfg "git.cw.tr/mukan-network/mukan-consensus/config"
cmtos "github.com/cometbft/cometbft/libs/os" cmtos "git.cw.tr/mukan-network/mukan-consensus/libs/os"
nm "github.com/cometbft/cometbft/node" nm "git.cw.tr/mukan-network/mukan-consensus/node"
) )
var ( var (

View file

@ -5,7 +5,7 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/cometbft/cometbft/p2p" "git.cw.tr/mukan-network/mukan-consensus/p2p"
) )
// ShowNodeIDCmd dumps node's ID to the standard output. // ShowNodeIDCmd dumps node's ID to the standard output.

View file

@ -5,9 +5,9 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
cmtjson "github.com/cometbft/cometbft/libs/json" cmtjson "git.cw.tr/mukan-network/mukan-consensus/libs/json"
cmtos "github.com/cometbft/cometbft/libs/os" cmtos "git.cw.tr/mukan-network/mukan-consensus/libs/os"
"github.com/cometbft/cometbft/privval" "git.cw.tr/mukan-network/mukan-consensus/privval"
) )
// ShowValidatorCmd adds capabilities for showing the validator info. // ShowValidatorCmd adds capabilities for showing the validator info.

View file

@ -10,13 +10,13 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/spf13/viper" "github.com/spf13/viper"
cfg "github.com/cometbft/cometbft/config" cfg "git.cw.tr/mukan-network/mukan-consensus/config"
"github.com/cometbft/cometbft/libs/bytes" "git.cw.tr/mukan-network/mukan-consensus/libs/bytes"
cmtrand "github.com/cometbft/cometbft/libs/rand" cmtrand "git.cw.tr/mukan-network/mukan-consensus/libs/rand"
"github.com/cometbft/cometbft/p2p" "git.cw.tr/mukan-network/mukan-consensus/p2p"
"github.com/cometbft/cometbft/privval" "git.cw.tr/mukan-network/mukan-consensus/privval"
"github.com/cometbft/cometbft/types" "git.cw.tr/mukan-network/mukan-consensus/types"
cmttime "github.com/cometbft/cometbft/types/time" cmttime "git.cw.tr/mukan-network/mukan-consensus/types/time"
) )
var ( var (

View file

@ -6,7 +6,7 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/cometbft/cometbft/version" "git.cw.tr/mukan-network/mukan-consensus/version"
) )
// VersionCmd ... // VersionCmd ...

View file

@ -4,11 +4,11 @@ import (
"os" "os"
"path/filepath" "path/filepath"
cmd "github.com/cometbft/cometbft/cmd/cometbft/commands" cmd "git.cw.tr/mukan-network/mukan-consensus/cmd/cometbft/commands"
"github.com/cometbft/cometbft/cmd/cometbft/commands/debug" "git.cw.tr/mukan-network/mukan-consensus/cmd/cometbft/commands/debug"
cfg "github.com/cometbft/cometbft/config" cfg "git.cw.tr/mukan-network/mukan-consensus/config"
"github.com/cometbft/cometbft/libs/cli" "git.cw.tr/mukan-network/mukan-consensus/libs/cli"
nm "github.com/cometbft/cometbft/node" nm "git.cw.tr/mukan-network/mukan-consensus/node"
) )
func main() { func main() {

View file

@ -5,12 +5,12 @@ import (
"os" "os"
"time" "time"
"github.com/cometbft/cometbft/crypto/ed25519" "git.cw.tr/mukan-network/mukan-consensus/crypto/ed25519"
"github.com/cometbft/cometbft/libs/log" "git.cw.tr/mukan-network/mukan-consensus/libs/log"
cmtnet "github.com/cometbft/cometbft/libs/net" cmtnet "git.cw.tr/mukan-network/mukan-consensus/libs/net"
cmtos "github.com/cometbft/cometbft/libs/os" cmtos "git.cw.tr/mukan-network/mukan-consensus/libs/os"
"github.com/cometbft/cometbft/privval" "git.cw.tr/mukan-network/mukan-consensus/privval"
) )
func main() { func main() {

View file

@ -10,7 +10,7 @@ import (
"regexp" "regexp"
"time" "time"
"github.com/cometbft/cometbft/version" "git.cw.tr/mukan-network/mukan-consensus/version"
) )
const ( const (
@ -706,7 +706,7 @@ func DefaultFuzzConnConfig() *FuzzConnConfig {
// Note: Until v0.37 there was a `Version` field to select which implementation // Note: Until v0.37 there was a `Version` field to select which implementation
// of the mempool to use. Two versions used to exist: the current, default // of the mempool to use. Two versions used to exist: the current, default
// implementation (previously called v0), and a prioritized mempool (v1), which // implementation (previously called v0), and a prioritized mempool (v1), which
// was removed (see https://github.com/cometbft/cometbft/issues/260). // was removed (see https://git.cw.tr/mukan-network/mukan-consensus/issues/260).
type MempoolConfig struct { type MempoolConfig struct {
// The type of mempool for this node to use. // The type of mempool for this node to use.
// //

View file

@ -8,7 +8,7 @@ import (
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"github.com/cometbft/cometbft/config" "git.cw.tr/mukan-network/mukan-consensus/config"
) )
func TestDefaultConfig(t *testing.T) { func TestDefaultConfig(t *testing.T) {

View file

@ -3,10 +3,10 @@ package config
import ( import (
"context" "context"
dbm "github.com/cometbft/cometbft-db" dbm "git.cw.tr/mukan-network/mukan-consensus-db"
"github.com/cometbft/cometbft/libs/log" "git.cw.tr/mukan-network/mukan-consensus/libs/log"
"github.com/cometbft/cometbft/libs/service" "git.cw.tr/mukan-network/mukan-consensus/libs/service"
) )
// ServiceProvider takes a config and a logger and returns a ready to go Node. // ServiceProvider takes a config and a logger and returns a ready to go Node.

View file

@ -6,7 +6,7 @@ import (
"strings" "strings"
"text/template" "text/template"
cmtos "github.com/cometbft/cometbft/libs/os" cmtos "git.cw.tr/mukan-network/mukan-consensus/libs/os"
) )
// DefaultDirPerm is the default permissions used when creating directories. // DefaultDirPerm is the default permissions used when creating directories.

View file

@ -8,8 +8,8 @@ import (
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"github.com/cometbft/cometbft/config" "git.cw.tr/mukan-network/mukan-consensus/config"
"github.com/cometbft/cometbft/internal/test" "git.cw.tr/mukan-network/mukan-consensus/internal/test"
) )
func ensureFiles(t *testing.T, rootDir string, files ...string) { func ensureFiles(t *testing.T, rootDir string, files ...string) {

View file

@ -12,23 +12,23 @@ import (
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
dbm "github.com/cometbft/cometbft-db" dbm "git.cw.tr/mukan-network/mukan-consensus-db"
abcicli "github.com/cometbft/cometbft/abci/client" abcicli "git.cw.tr/mukan-network/mukan-consensus/abci/client"
abci "github.com/cometbft/cometbft/abci/types" abci "git.cw.tr/mukan-network/mukan-consensus/abci/types"
"github.com/cometbft/cometbft/evidence" "git.cw.tr/mukan-network/mukan-consensus/evidence"
"github.com/cometbft/cometbft/libs/log" "git.cw.tr/mukan-network/mukan-consensus/libs/log"
"github.com/cometbft/cometbft/libs/service" "git.cw.tr/mukan-network/mukan-consensus/libs/service"
cmtsync "github.com/cometbft/cometbft/libs/sync" cmtsync "git.cw.tr/mukan-network/mukan-consensus/libs/sync"
mempl "github.com/cometbft/cometbft/mempool" mempl "git.cw.tr/mukan-network/mukan-consensus/mempool"
"github.com/cometbft/cometbft/proxy" "git.cw.tr/mukan-network/mukan-consensus/proxy"
"github.com/cometbft/cometbft/p2p" "git.cw.tr/mukan-network/mukan-consensus/p2p"
cmtcons "github.com/cometbft/cometbft/proto/tendermint/consensus" cmtcons "git.cw.tr/mukan-network/mukan-consensus/proto/tendermint/consensus"
cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" cmtproto "git.cw.tr/mukan-network/mukan-consensus/proto/tendermint/types"
sm "github.com/cometbft/cometbft/state" sm "git.cw.tr/mukan-network/mukan-consensus/state"
"github.com/cometbft/cometbft/store" "git.cw.tr/mukan-network/mukan-consensus/store"
"github.com/cometbft/cometbft/types" "git.cw.tr/mukan-network/mukan-consensus/types"
) )
//---------------------------------------------- //----------------------------------------------

View file

@ -16,28 +16,28 @@ import (
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
dbm "github.com/cometbft/cometbft-db" dbm "git.cw.tr/mukan-network/mukan-consensus-db"
abcicli "github.com/cometbft/cometbft/abci/client" abcicli "git.cw.tr/mukan-network/mukan-consensus/abci/client"
"github.com/cometbft/cometbft/abci/example/kvstore" "git.cw.tr/mukan-network/mukan-consensus/abci/example/kvstore"
abci "github.com/cometbft/cometbft/abci/types" abci "git.cw.tr/mukan-network/mukan-consensus/abci/types"
cfg "github.com/cometbft/cometbft/config" cfg "git.cw.tr/mukan-network/mukan-consensus/config"
cstypes "github.com/cometbft/cometbft/consensus/types" cstypes "git.cw.tr/mukan-network/mukan-consensus/consensus/types"
"github.com/cometbft/cometbft/internal/test" "git.cw.tr/mukan-network/mukan-consensus/internal/test"
cmtbytes "github.com/cometbft/cometbft/libs/bytes" cmtbytes "git.cw.tr/mukan-network/mukan-consensus/libs/bytes"
"github.com/cometbft/cometbft/libs/log" "git.cw.tr/mukan-network/mukan-consensus/libs/log"
cmtos "github.com/cometbft/cometbft/libs/os" cmtos "git.cw.tr/mukan-network/mukan-consensus/libs/os"
cmtpubsub "github.com/cometbft/cometbft/libs/pubsub" cmtpubsub "git.cw.tr/mukan-network/mukan-consensus/libs/pubsub"
cmtsync "github.com/cometbft/cometbft/libs/sync" cmtsync "git.cw.tr/mukan-network/mukan-consensus/libs/sync"
mempl "github.com/cometbft/cometbft/mempool" mempl "git.cw.tr/mukan-network/mukan-consensus/mempool"
"github.com/cometbft/cometbft/p2p" "git.cw.tr/mukan-network/mukan-consensus/p2p"
"github.com/cometbft/cometbft/privval" "git.cw.tr/mukan-network/mukan-consensus/privval"
cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" cmtproto "git.cw.tr/mukan-network/mukan-consensus/proto/tendermint/types"
"github.com/cometbft/cometbft/proxy" "git.cw.tr/mukan-network/mukan-consensus/proxy"
sm "github.com/cometbft/cometbft/state" sm "git.cw.tr/mukan-network/mukan-consensus/state"
"github.com/cometbft/cometbft/store" "git.cw.tr/mukan-network/mukan-consensus/store"
"github.com/cometbft/cometbft/types" "git.cw.tr/mukan-network/mukan-consensus/types"
cmttime "github.com/cometbft/cometbft/types/time" cmttime "git.cw.tr/mukan-network/mukan-consensus/types/time"
) )
const ( const (

View file

@ -4,14 +4,14 @@ import (
"testing" "testing"
"time" "time"
cfg "github.com/cometbft/cometbft/config" cfg "git.cw.tr/mukan-network/mukan-consensus/config"
"github.com/cometbft/cometbft/libs/bytes" "git.cw.tr/mukan-network/mukan-consensus/libs/bytes"
"github.com/cometbft/cometbft/libs/log" "git.cw.tr/mukan-network/mukan-consensus/libs/log"
cmtrand "github.com/cometbft/cometbft/libs/rand" cmtrand "git.cw.tr/mukan-network/mukan-consensus/libs/rand"
"github.com/cometbft/cometbft/p2p" "git.cw.tr/mukan-network/mukan-consensus/p2p"
cmtcons "github.com/cometbft/cometbft/proto/tendermint/consensus" cmtcons "git.cw.tr/mukan-network/mukan-consensus/proto/tendermint/consensus"
cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" cmtproto "git.cw.tr/mukan-network/mukan-consensus/proto/tendermint/types"
"github.com/cometbft/cometbft/types" "git.cw.tr/mukan-network/mukan-consensus/types"
) )
//---------------------------------------------- //----------------------------------------------

View file

@ -10,14 +10,14 @@ import (
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
dbm "github.com/cometbft/cometbft-db" dbm "git.cw.tr/mukan-network/mukan-consensus-db"
"github.com/cometbft/cometbft/abci/example/kvstore" "git.cw.tr/mukan-network/mukan-consensus/abci/example/kvstore"
abci "github.com/cometbft/cometbft/abci/types" abci "git.cw.tr/mukan-network/mukan-consensus/abci/types"
mempl "github.com/cometbft/cometbft/mempool" mempl "git.cw.tr/mukan-network/mukan-consensus/mempool"
"github.com/cometbft/cometbft/proxy" "git.cw.tr/mukan-network/mukan-consensus/proxy"
sm "github.com/cometbft/cometbft/state" sm "git.cw.tr/mukan-network/mukan-consensus/state"
"github.com/cometbft/cometbft/types" "git.cw.tr/mukan-network/mukan-consensus/types"
) )
// for testing // for testing

View file

@ -6,9 +6,9 @@ import (
"github.com/go-kit/kit/metrics" "github.com/go-kit/kit/metrics"
cstypes "github.com/cometbft/cometbft/consensus/types" cstypes "git.cw.tr/mukan-network/mukan-consensus/consensus/types"
cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" cmtproto "git.cw.tr/mukan-network/mukan-consensus/proto/tendermint/types"
types "github.com/cometbft/cometbft/types" types "git.cw.tr/mukan-network/mukan-consensus/types"
) )
const ( const (

View file

@ -6,13 +6,13 @@ import (
"github.com/cosmos/gogoproto/proto" "github.com/cosmos/gogoproto/proto"
cstypes "github.com/cometbft/cometbft/consensus/types" cstypes "git.cw.tr/mukan-network/mukan-consensus/consensus/types"
"github.com/cometbft/cometbft/libs/bits" "git.cw.tr/mukan-network/mukan-consensus/libs/bits"
cmtmath "github.com/cometbft/cometbft/libs/math" cmtmath "git.cw.tr/mukan-network/mukan-consensus/libs/math"
"github.com/cometbft/cometbft/p2p" "git.cw.tr/mukan-network/mukan-consensus/p2p"
cmtcons "github.com/cometbft/cometbft/proto/tendermint/consensus" cmtcons "git.cw.tr/mukan-network/mukan-consensus/proto/tendermint/consensus"
cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" cmtproto "git.cw.tr/mukan-network/mukan-consensus/proto/tendermint/types"
"github.com/cometbft/cometbft/types" "git.cw.tr/mukan-network/mukan-consensus/types"
) )
// MsgToProto takes a consensus message type and returns the proto defined consensus message. // MsgToProto takes a consensus message type and returns the proto defined consensus message.

View file

@ -10,13 +10,13 @@ import (
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"github.com/cometbft/cometbft/crypto/merkle" "git.cw.tr/mukan-network/mukan-consensus/crypto/merkle"
"github.com/cometbft/cometbft/libs/bits" "git.cw.tr/mukan-network/mukan-consensus/libs/bits"
cmtrand "github.com/cometbft/cometbft/libs/rand" cmtrand "git.cw.tr/mukan-network/mukan-consensus/libs/rand"
"github.com/cometbft/cometbft/p2p" "git.cw.tr/mukan-network/mukan-consensus/p2p"
cmtcons "github.com/cometbft/cometbft/proto/tendermint/consensus" cmtcons "git.cw.tr/mukan-network/mukan-consensus/proto/tendermint/consensus"
cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" cmtproto "git.cw.tr/mukan-network/mukan-consensus/proto/tendermint/types"
"github.com/cometbft/cometbft/types" "git.cw.tr/mukan-network/mukan-consensus/types"
) )
func TestMsgToProto(t *testing.T) { func TestMsgToProto(t *testing.T) {

View file

@ -7,18 +7,18 @@ import (
"sync" "sync"
"time" "time"
cstypes "github.com/cometbft/cometbft/consensus/types" cstypes "git.cw.tr/mukan-network/mukan-consensus/consensus/types"
"github.com/cometbft/cometbft/libs/bits" "git.cw.tr/mukan-network/mukan-consensus/libs/bits"
cmtevents "github.com/cometbft/cometbft/libs/events" cmtevents "git.cw.tr/mukan-network/mukan-consensus/libs/events"
cmtjson "github.com/cometbft/cometbft/libs/json" cmtjson "git.cw.tr/mukan-network/mukan-consensus/libs/json"
"github.com/cometbft/cometbft/libs/log" "git.cw.tr/mukan-network/mukan-consensus/libs/log"
cmtsync "github.com/cometbft/cometbft/libs/sync" cmtsync "git.cw.tr/mukan-network/mukan-consensus/libs/sync"
"github.com/cometbft/cometbft/p2p" "git.cw.tr/mukan-network/mukan-consensus/p2p"
cmtcons "github.com/cometbft/cometbft/proto/tendermint/consensus" cmtcons "git.cw.tr/mukan-network/mukan-consensus/proto/tendermint/consensus"
cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" cmtproto "git.cw.tr/mukan-network/mukan-consensus/proto/tendermint/types"
sm "github.com/cometbft/cometbft/state" sm "git.cw.tr/mukan-network/mukan-consensus/state"
"github.com/cometbft/cometbft/types" "git.cw.tr/mukan-network/mukan-consensus/types"
cmttime "github.com/cometbft/cometbft/types/time" cmttime "git.cw.tr/mukan-network/mukan-consensus/types/time"
) )
const ( const (

View file

@ -13,31 +13,31 @@ import (
"github.com/stretchr/testify/mock" "github.com/stretchr/testify/mock"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
dbm "github.com/cometbft/cometbft-db" dbm "git.cw.tr/mukan-network/mukan-consensus-db"
abcicli "github.com/cometbft/cometbft/abci/client" abcicli "git.cw.tr/mukan-network/mukan-consensus/abci/client"
"github.com/cometbft/cometbft/abci/example/kvstore" "git.cw.tr/mukan-network/mukan-consensus/abci/example/kvstore"
abci "github.com/cometbft/cometbft/abci/types" abci "git.cw.tr/mukan-network/mukan-consensus/abci/types"
cfg "github.com/cometbft/cometbft/config" cfg "git.cw.tr/mukan-network/mukan-consensus/config"
cstypes "github.com/cometbft/cometbft/consensus/types" cstypes "git.cw.tr/mukan-network/mukan-consensus/consensus/types"
cryptoenc "github.com/cometbft/cometbft/crypto/encoding" cryptoenc "git.cw.tr/mukan-network/mukan-consensus/crypto/encoding"
"github.com/cometbft/cometbft/crypto/tmhash" "git.cw.tr/mukan-network/mukan-consensus/crypto/tmhash"
"github.com/cometbft/cometbft/libs/bits" "git.cw.tr/mukan-network/mukan-consensus/libs/bits"
"github.com/cometbft/cometbft/libs/bytes" "git.cw.tr/mukan-network/mukan-consensus/libs/bytes"
"github.com/cometbft/cometbft/libs/json" "git.cw.tr/mukan-network/mukan-consensus/libs/json"
"github.com/cometbft/cometbft/libs/log" "git.cw.tr/mukan-network/mukan-consensus/libs/log"
cmtrand "github.com/cometbft/cometbft/libs/rand" cmtrand "git.cw.tr/mukan-network/mukan-consensus/libs/rand"
cmtsync "github.com/cometbft/cometbft/libs/sync" cmtsync "git.cw.tr/mukan-network/mukan-consensus/libs/sync"
mempl "github.com/cometbft/cometbft/mempool" mempl "git.cw.tr/mukan-network/mukan-consensus/mempool"
"github.com/cometbft/cometbft/p2p" "git.cw.tr/mukan-network/mukan-consensus/p2p"
p2pmock "github.com/cometbft/cometbft/p2p/mock" p2pmock "git.cw.tr/mukan-network/mukan-consensus/p2p/mock"
cmtcons "github.com/cometbft/cometbft/proto/tendermint/consensus" cmtcons "git.cw.tr/mukan-network/mukan-consensus/proto/tendermint/consensus"
cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" cmtproto "git.cw.tr/mukan-network/mukan-consensus/proto/tendermint/types"
"github.com/cometbft/cometbft/proxy" "git.cw.tr/mukan-network/mukan-consensus/proxy"
sm "github.com/cometbft/cometbft/state" sm "git.cw.tr/mukan-network/mukan-consensus/state"
statemocks "github.com/cometbft/cometbft/state/mocks" statemocks "git.cw.tr/mukan-network/mukan-consensus/state/mocks"
"github.com/cometbft/cometbft/store" "git.cw.tr/mukan-network/mukan-consensus/store"
"github.com/cometbft/cometbft/types" "git.cw.tr/mukan-network/mukan-consensus/types"
) )
//---------------------------------------------- //----------------------------------------------

View file

@ -9,12 +9,12 @@ import (
"reflect" "reflect"
"time" "time"
abci "github.com/cometbft/cometbft/abci/types" abci "git.cw.tr/mukan-network/mukan-consensus/abci/types"
"github.com/cometbft/cometbft/crypto/merkle" "git.cw.tr/mukan-network/mukan-consensus/crypto/merkle"
"github.com/cometbft/cometbft/libs/log" "git.cw.tr/mukan-network/mukan-consensus/libs/log"
"github.com/cometbft/cometbft/proxy" "git.cw.tr/mukan-network/mukan-consensus/proxy"
sm "github.com/cometbft/cometbft/state" sm "git.cw.tr/mukan-network/mukan-consensus/state"
"github.com/cometbft/cometbft/types" "git.cw.tr/mukan-network/mukan-consensus/types"
) )
var crc32c = crc32.MakeTable(crc32.Castagnoli) var crc32c = crc32.MakeTable(crc32.Castagnoli)

View file

@ -10,15 +10,15 @@ import (
"strconv" "strconv"
"strings" "strings"
dbm "github.com/cometbft/cometbft-db" dbm "git.cw.tr/mukan-network/mukan-consensus-db"
cfg "github.com/cometbft/cometbft/config" cfg "git.cw.tr/mukan-network/mukan-consensus/config"
"github.com/cometbft/cometbft/libs/log" "git.cw.tr/mukan-network/mukan-consensus/libs/log"
cmtos "github.com/cometbft/cometbft/libs/os" cmtos "git.cw.tr/mukan-network/mukan-consensus/libs/os"
"github.com/cometbft/cometbft/proxy" "git.cw.tr/mukan-network/mukan-consensus/proxy"
sm "github.com/cometbft/cometbft/state" sm "git.cw.tr/mukan-network/mukan-consensus/state"
"github.com/cometbft/cometbft/store" "git.cw.tr/mukan-network/mukan-consensus/store"
"github.com/cometbft/cometbft/types" "git.cw.tr/mukan-network/mukan-consensus/types"
) )
const ( const (

View file

@ -3,11 +3,11 @@ package consensus
import ( import (
"context" "context"
abci "github.com/cometbft/cometbft/abci/types" abci "git.cw.tr/mukan-network/mukan-consensus/abci/types"
"github.com/cometbft/cometbft/libs/clist" "git.cw.tr/mukan-network/mukan-consensus/libs/clist"
mempl "github.com/cometbft/cometbft/mempool" mempl "git.cw.tr/mukan-network/mukan-consensus/mempool"
"github.com/cometbft/cometbft/proxy" "git.cw.tr/mukan-network/mukan-consensus/proxy"
"github.com/cometbft/cometbft/types" "git.cw.tr/mukan-network/mukan-consensus/types"
) )
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------

View file

@ -17,23 +17,23 @@ import (
"github.com/stretchr/testify/mock" "github.com/stretchr/testify/mock"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
dbm "github.com/cometbft/cometbft-db" dbm "git.cw.tr/mukan-network/mukan-consensus-db"
"github.com/cometbft/cometbft/abci/example/kvstore" "git.cw.tr/mukan-network/mukan-consensus/abci/example/kvstore"
abci "github.com/cometbft/cometbft/abci/types" abci "git.cw.tr/mukan-network/mukan-consensus/abci/types"
"github.com/cometbft/cometbft/abci/types/mocks" "git.cw.tr/mukan-network/mukan-consensus/abci/types/mocks"
cfg "github.com/cometbft/cometbft/config" cfg "git.cw.tr/mukan-network/mukan-consensus/config"
cryptoenc "github.com/cometbft/cometbft/crypto/encoding" cryptoenc "git.cw.tr/mukan-network/mukan-consensus/crypto/encoding"
"github.com/cometbft/cometbft/internal/test" "git.cw.tr/mukan-network/mukan-consensus/internal/test"
"github.com/cometbft/cometbft/libs/log" "git.cw.tr/mukan-network/mukan-consensus/libs/log"
cmtrand "github.com/cometbft/cometbft/libs/rand" cmtrand "git.cw.tr/mukan-network/mukan-consensus/libs/rand"
"github.com/cometbft/cometbft/mempool" "git.cw.tr/mukan-network/mukan-consensus/mempool"
"github.com/cometbft/cometbft/privval" "git.cw.tr/mukan-network/mukan-consensus/privval"
cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" cmtproto "git.cw.tr/mukan-network/mukan-consensus/proto/tendermint/types"
"github.com/cometbft/cometbft/proxy" "git.cw.tr/mukan-network/mukan-consensus/proxy"
sm "github.com/cometbft/cometbft/state" sm "git.cw.tr/mukan-network/mukan-consensus/state"
smmocks "github.com/cometbft/cometbft/state/mocks" smmocks "git.cw.tr/mukan-network/mukan-consensus/state/mocks"
"github.com/cometbft/cometbft/types" "git.cw.tr/mukan-network/mukan-consensus/types"
) )
func TestMain(m *testing.M) { func TestMain(m *testing.M) {

View file

@ -13,22 +13,22 @@ import (
"github.com/cosmos/gogoproto/proto" "github.com/cosmos/gogoproto/proto"
cfg "github.com/cometbft/cometbft/config" cfg "git.cw.tr/mukan-network/mukan-consensus/config"
cstypes "github.com/cometbft/cometbft/consensus/types" cstypes "git.cw.tr/mukan-network/mukan-consensus/consensus/types"
"github.com/cometbft/cometbft/crypto" "git.cw.tr/mukan-network/mukan-consensus/crypto"
cmtevents "github.com/cometbft/cometbft/libs/events" cmtevents "git.cw.tr/mukan-network/mukan-consensus/libs/events"
"github.com/cometbft/cometbft/libs/fail" "git.cw.tr/mukan-network/mukan-consensus/libs/fail"
cmtjson "github.com/cometbft/cometbft/libs/json" cmtjson "git.cw.tr/mukan-network/mukan-consensus/libs/json"
"github.com/cometbft/cometbft/libs/log" "git.cw.tr/mukan-network/mukan-consensus/libs/log"
cmtmath "github.com/cometbft/cometbft/libs/math" cmtmath "git.cw.tr/mukan-network/mukan-consensus/libs/math"
cmtos "github.com/cometbft/cometbft/libs/os" cmtos "git.cw.tr/mukan-network/mukan-consensus/libs/os"
"github.com/cometbft/cometbft/libs/service" "git.cw.tr/mukan-network/mukan-consensus/libs/service"
cmtsync "github.com/cometbft/cometbft/libs/sync" cmtsync "git.cw.tr/mukan-network/mukan-consensus/libs/sync"
"github.com/cometbft/cometbft/p2p" "git.cw.tr/mukan-network/mukan-consensus/p2p"
cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" cmtproto "git.cw.tr/mukan-network/mukan-consensus/proto/tendermint/types"
sm "github.com/cometbft/cometbft/state" sm "git.cw.tr/mukan-network/mukan-consensus/state"
"github.com/cometbft/cometbft/types" "git.cw.tr/mukan-network/mukan-consensus/types"
cmttime "github.com/cometbft/cometbft/types/time" cmttime "git.cw.tr/mukan-network/mukan-consensus/types/time"
) )
// Consensus sentinel errors // Consensus sentinel errors
@ -1123,7 +1123,7 @@ func (cs *State) needProofBlock(height int64) bool {
lastBlockMeta := cs.blockStore.LoadBlockMeta(height - 1) lastBlockMeta := cs.blockStore.LoadBlockMeta(height - 1)
if lastBlockMeta == nil { if lastBlockMeta == nil {
// See https://github.com/cometbft/cometbft/issues/370 // See https://git.cw.tr/mukan-network/mukan-consensus/issues/370
cs.Logger.Info("short-circuited needProofBlock", "height", height, "InitialHeight", cs.state.InitialHeight) cs.Logger.Info("short-circuited needProofBlock", "height", height, "InitialHeight", cs.state.InitialHeight)
return true return true
} }
@ -2419,10 +2419,10 @@ func (cs *State) voteTime() time.Time {
// Minimum time increment between blocks // Minimum time increment between blocks
const timeIota = time.Millisecond const timeIota = time.Millisecond
// TODO: We should remove next line in case we don't vote for v in case cs.ProposalBlock == nil, // TODO: We should remove next line in case we don't vote for v in case cs.ProposalBlock == nil,
// even if cs.LockedBlock != nil. See https://github.com/cometbft/cometbft/tree/v0.38.x/spec/. // even if cs.LockedBlock != nil. See https://git.cw.tr/mukan-network/mukan-consensus/tree/v0.38.x/spec/.
if cs.LockedBlock != nil { if cs.LockedBlock != nil {
// See the BFT time spec // See the BFT time spec
// https://github.com/cometbft/cometbft/blob/v0.38.x/spec/consensus/bft-time.md // https://git.cw.tr/mukan-network/mukan-consensus/blob/v0.38.x/spec/consensus/bft-time.md
minVoteTime = cs.LockedBlock.Time.Add(timeIota) minVoteTime = cs.LockedBlock.Time.Add(timeIota)
} else if cs.ProposalBlock != nil { } else if cs.ProposalBlock != nil {
minVoteTime = cs.ProposalBlock.Time.Add(timeIota) minVoteTime = cs.ProposalBlock.Time.Add(timeIota)

View file

@ -12,20 +12,20 @@ import (
"github.com/stretchr/testify/mock" "github.com/stretchr/testify/mock"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"github.com/cometbft/cometbft/abci/example/kvstore" "git.cw.tr/mukan-network/mukan-consensus/abci/example/kvstore"
abci "github.com/cometbft/cometbft/abci/types" abci "git.cw.tr/mukan-network/mukan-consensus/abci/types"
abcimocks "github.com/cometbft/cometbft/abci/types/mocks" abcimocks "git.cw.tr/mukan-network/mukan-consensus/abci/types/mocks"
cstypes "github.com/cometbft/cometbft/consensus/types" cstypes "git.cw.tr/mukan-network/mukan-consensus/consensus/types"
"github.com/cometbft/cometbft/crypto/tmhash" "git.cw.tr/mukan-network/mukan-consensus/crypto/tmhash"
"github.com/cometbft/cometbft/internal/test" "git.cw.tr/mukan-network/mukan-consensus/internal/test"
cmtbytes "github.com/cometbft/cometbft/libs/bytes" cmtbytes "git.cw.tr/mukan-network/mukan-consensus/libs/bytes"
"github.com/cometbft/cometbft/libs/log" "git.cw.tr/mukan-network/mukan-consensus/libs/log"
"github.com/cometbft/cometbft/libs/protoio" "git.cw.tr/mukan-network/mukan-consensus/libs/protoio"
cmtpubsub "github.com/cometbft/cometbft/libs/pubsub" cmtpubsub "git.cw.tr/mukan-network/mukan-consensus/libs/pubsub"
cmtrand "github.com/cometbft/cometbft/libs/rand" cmtrand "git.cw.tr/mukan-network/mukan-consensus/libs/rand"
p2pmock "github.com/cometbft/cometbft/p2p/mock" p2pmock "git.cw.tr/mukan-network/mukan-consensus/p2p/mock"
cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" cmtproto "git.cw.tr/mukan-network/mukan-consensus/proto/tendermint/types"
"github.com/cometbft/cometbft/types" "git.cw.tr/mukan-network/mukan-consensus/types"
) )
/* /*

View file

@ -3,8 +3,8 @@ package consensus
import ( import (
"time" "time"
"github.com/cometbft/cometbft/libs/log" "git.cw.tr/mukan-network/mukan-consensus/libs/log"
"github.com/cometbft/cometbft/libs/service" "git.cw.tr/mukan-network/mukan-consensus/libs/service"
) )
var ( var (

View file

@ -6,7 +6,7 @@ import (
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"github.com/cometbft/cometbft/consensus/types" "git.cw.tr/mukan-network/mukan-consensus/consensus/types"
) )
func TestTimeoutTicker(t *testing.T) { func TestTimeoutTicker(t *testing.T) {

View file

@ -6,11 +6,11 @@ import (
"strings" "strings"
"sync" "sync"
cmtjson "github.com/cometbft/cometbft/libs/json" cmtjson "git.cw.tr/mukan-network/mukan-consensus/libs/json"
cmtmath "github.com/cometbft/cometbft/libs/math" cmtmath "git.cw.tr/mukan-network/mukan-consensus/libs/math"
"github.com/cometbft/cometbft/p2p" "git.cw.tr/mukan-network/mukan-consensus/p2p"
cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" cmtproto "git.cw.tr/mukan-network/mukan-consensus/proto/tendermint/types"
"github.com/cometbft/cometbft/types" "git.cw.tr/mukan-network/mukan-consensus/types"
) )
type RoundVoteSet struct { type RoundVoteSet struct {

View file

@ -4,13 +4,13 @@ import (
"os" "os"
"testing" "testing"
cfg "github.com/cometbft/cometbft/config" cfg "git.cw.tr/mukan-network/mukan-consensus/config"
"github.com/cometbft/cometbft/crypto/tmhash" "git.cw.tr/mukan-network/mukan-consensus/crypto/tmhash"
"github.com/cometbft/cometbft/internal/test" "git.cw.tr/mukan-network/mukan-consensus/internal/test"
cmtrand "github.com/cometbft/cometbft/libs/rand" cmtrand "git.cw.tr/mukan-network/mukan-consensus/libs/rand"
cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" cmtproto "git.cw.tr/mukan-network/mukan-consensus/proto/tendermint/types"
"github.com/cometbft/cometbft/types" "git.cw.tr/mukan-network/mukan-consensus/types"
cmttime "github.com/cometbft/cometbft/types/time" cmttime "git.cw.tr/mukan-network/mukan-consensus/types/time"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

View file

@ -4,8 +4,8 @@ import (
"fmt" "fmt"
"time" "time"
"github.com/cometbft/cometbft/libs/bits" "git.cw.tr/mukan-network/mukan-consensus/libs/bits"
"github.com/cometbft/cometbft/types" "git.cw.tr/mukan-network/mukan-consensus/types"
) )
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------

View file

@ -5,8 +5,8 @@ import (
"fmt" "fmt"
"time" "time"
"github.com/cometbft/cometbft/libs/bytes" "git.cw.tr/mukan-network/mukan-consensus/libs/bytes"
"github.com/cometbft/cometbft/types" "git.cw.tr/mukan-network/mukan-consensus/types"
) )
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------

View file

@ -11,13 +11,13 @@ import (
"github.com/cosmos/gogoproto/proto" "github.com/cosmos/gogoproto/proto"
auto "github.com/cometbft/cometbft/libs/autofile" auto "git.cw.tr/mukan-network/mukan-consensus/libs/autofile"
cmtjson "github.com/cometbft/cometbft/libs/json" cmtjson "git.cw.tr/mukan-network/mukan-consensus/libs/json"
"github.com/cometbft/cometbft/libs/log" "git.cw.tr/mukan-network/mukan-consensus/libs/log"
cmtos "github.com/cometbft/cometbft/libs/os" cmtos "git.cw.tr/mukan-network/mukan-consensus/libs/os"
"github.com/cometbft/cometbft/libs/service" "git.cw.tr/mukan-network/mukan-consensus/libs/service"
cmtcons "github.com/cometbft/cometbft/proto/tendermint/consensus" cmtcons "git.cw.tr/mukan-network/mukan-consensus/proto/tendermint/consensus"
cmttime "github.com/cometbft/cometbft/types/time" cmttime "git.cw.tr/mukan-network/mukan-consensus/types/time"
) )
const ( const (

View file

@ -9,18 +9,18 @@ import (
"testing" "testing"
"time" "time"
db "github.com/cometbft/cometbft-db" db "git.cw.tr/mukan-network/mukan-consensus-db"
"github.com/cometbft/cometbft/abci/example/kvstore" "git.cw.tr/mukan-network/mukan-consensus/abci/example/kvstore"
cfg "github.com/cometbft/cometbft/config" cfg "git.cw.tr/mukan-network/mukan-consensus/config"
"github.com/cometbft/cometbft/internal/test" "git.cw.tr/mukan-network/mukan-consensus/internal/test"
"github.com/cometbft/cometbft/libs/log" "git.cw.tr/mukan-network/mukan-consensus/libs/log"
cmtrand "github.com/cometbft/cometbft/libs/rand" cmtrand "git.cw.tr/mukan-network/mukan-consensus/libs/rand"
"github.com/cometbft/cometbft/privval" "git.cw.tr/mukan-network/mukan-consensus/privval"
"github.com/cometbft/cometbft/proxy" "git.cw.tr/mukan-network/mukan-consensus/proxy"
sm "github.com/cometbft/cometbft/state" sm "git.cw.tr/mukan-network/mukan-consensus/state"
"github.com/cometbft/cometbft/store" "git.cw.tr/mukan-network/mukan-consensus/store"
"github.com/cometbft/cometbft/types" "git.cw.tr/mukan-network/mukan-consensus/types"
) )
// WALGenerateNBlocks generates a consensus WAL. It does this by spinning up a // WALGenerateNBlocks generates a consensus WAL. It does this by spinning up a

View file

@ -13,12 +13,12 @@ import (
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"github.com/cometbft/cometbft/consensus/types" "git.cw.tr/mukan-network/mukan-consensus/consensus/types"
"github.com/cometbft/cometbft/crypto/merkle" "git.cw.tr/mukan-network/mukan-consensus/crypto/merkle"
"github.com/cometbft/cometbft/libs/autofile" "git.cw.tr/mukan-network/mukan-consensus/libs/autofile"
"github.com/cometbft/cometbft/libs/log" "git.cw.tr/mukan-network/mukan-consensus/libs/log"
cmttypes "github.com/cometbft/cometbft/types" cmttypes "git.cw.tr/mukan-network/mukan-consensus/types"
cmttime "github.com/cometbft/cometbft/types/time" cmttime "git.cw.tr/mukan-network/mukan-consensus/types/time"
) )
const ( const (

View file

@ -1,9 +1,9 @@
package batch package batch
import ( import (
"github.com/cometbft/cometbft/crypto" "git.cw.tr/mukan-network/mukan-consensus/crypto"
"github.com/cometbft/cometbft/crypto/ed25519" "git.cw.tr/mukan-network/mukan-consensus/crypto/ed25519"
"github.com/cometbft/cometbft/crypto/sr25519" "git.cw.tr/mukan-network/mukan-consensus/crypto/sr25519"
) )
// CreateBatchVerifier checks if a key type implements the batch verifier interface. // CreateBatchVerifier checks if a key type implements the batch verifier interface.

View file

@ -1,8 +1,8 @@
package crypto package crypto
import ( import (
"github.com/cometbft/cometbft/crypto/tmhash" "git.cw.tr/mukan-network/mukan-consensus/crypto/tmhash"
"github.com/cometbft/cometbft/libs/bytes" "git.cw.tr/mukan-network/mukan-consensus/libs/bytes"
) )
const ( const (
@ -42,7 +42,7 @@ type Symmetric interface {
} }
// If a new key type implements batch verification, // If a new key type implements batch verification,
// the key type must be registered in github.com/cometbft/cometbft/crypto/batch // the key type must be registered in git.cw.tr/mukan-network/mukan-consensus/crypto/batch
type BatchVerifier interface { type BatchVerifier interface {
// Add appends an entry into the BatchVerifier. // Add appends an entry into the BatchVerifier.
Add(key PubKey, message, signature []byte) error Add(key PubKey, message, signature []byte) error

View file

@ -7,8 +7,8 @@ import (
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"github.com/cometbft/cometbft/crypto" "git.cw.tr/mukan-network/mukan-consensus/crypto"
"github.com/cometbft/cometbft/crypto/internal/benchmarking" "git.cw.tr/mukan-network/mukan-consensus/crypto/internal/benchmarking"
) )
func BenchmarkKeyGeneration(b *testing.B) { func BenchmarkKeyGeneration(b *testing.B) {

View file

@ -10,9 +10,9 @@ import (
"github.com/oasisprotocol/curve25519-voi/primitives/ed25519" "github.com/oasisprotocol/curve25519-voi/primitives/ed25519"
"github.com/oasisprotocol/curve25519-voi/primitives/ed25519/extra/cache" "github.com/oasisprotocol/curve25519-voi/primitives/ed25519/extra/cache"
"github.com/cometbft/cometbft/crypto" "git.cw.tr/mukan-network/mukan-consensus/crypto"
"github.com/cometbft/cometbft/crypto/tmhash" "git.cw.tr/mukan-network/mukan-consensus/crypto/tmhash"
cmtjson "github.com/cometbft/cometbft/libs/json" cmtjson "git.cw.tr/mukan-network/mukan-consensus/libs/json"
) )
//------------------------------------- //-------------------------------------

View file

@ -6,8 +6,8 @@ import (
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"github.com/cometbft/cometbft/crypto" "git.cw.tr/mukan-network/mukan-consensus/crypto"
"github.com/cometbft/cometbft/crypto/ed25519" "git.cw.tr/mukan-network/mukan-consensus/crypto/ed25519"
) )
func TestSignAndValidateEd25519(t *testing.T) { func TestSignAndValidateEd25519(t *testing.T) {

View file

@ -3,11 +3,11 @@ package encoding
import ( import (
"fmt" "fmt"
"github.com/cometbft/cometbft/crypto" "git.cw.tr/mukan-network/mukan-consensus/crypto"
"github.com/cometbft/cometbft/crypto/ed25519" "git.cw.tr/mukan-network/mukan-consensus/crypto/ed25519"
"github.com/cometbft/cometbft/crypto/secp256k1" "git.cw.tr/mukan-network/mukan-consensus/crypto/secp256k1"
"github.com/cometbft/cometbft/libs/json" "git.cw.tr/mukan-network/mukan-consensus/libs/json"
pc "github.com/cometbft/cometbft/proto/tendermint/crypto" pc "git.cw.tr/mukan-network/mukan-consensus/proto/tendermint/crypto"
) )
func init() { func init() {

View file

@ -3,7 +3,7 @@ package crypto_test
import ( import (
"fmt" "fmt"
"github.com/cometbft/cometbft/crypto" "git.cw.tr/mukan-network/mukan-consensus/crypto"
) )
func ExampleSha256() { func ExampleSha256() {

View file

@ -4,7 +4,7 @@ import (
"io" "io"
"testing" "testing"
"github.com/cometbft/cometbft/crypto" "git.cw.tr/mukan-network/mukan-consensus/crypto"
) )
// The code in this file is adapted from agl/ed25519. // The code in this file is adapted from agl/ed25519.

View file

@ -3,7 +3,7 @@ package merkle
import ( import (
"hash" "hash"
"github.com/cometbft/cometbft/crypto/tmhash" "git.cw.tr/mukan-network/mukan-consensus/crypto/tmhash"
) )
// TODO: make these have a large predefined capacity // TODO: make these have a large predefined capacity

View file

@ -5,8 +5,8 @@ import (
"errors" "errors"
"fmt" "fmt"
"github.com/cometbft/cometbft/crypto/tmhash" "git.cw.tr/mukan-network/mukan-consensus/crypto/tmhash"
cmtcrypto "github.com/cometbft/cometbft/proto/tendermint/crypto" cmtcrypto "git.cw.tr/mukan-network/mukan-consensus/proto/tendermint/crypto"
) )
const ( const (

View file

@ -5,7 +5,7 @@ import (
"errors" "errors"
"fmt" "fmt"
cmtcrypto "github.com/cometbft/cometbft/proto/tendermint/crypto" cmtcrypto "git.cw.tr/mukan-network/mukan-consensus/proto/tendermint/crypto"
) )
//---------------------------------------- //----------------------------------------

View file

@ -9,8 +9,8 @@ import (
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"github.com/cometbft/cometbft/crypto/tmhash" "git.cw.tr/mukan-network/mukan-consensus/crypto/tmhash"
cmtcrypto "github.com/cometbft/cometbft/proto/tendermint/crypto" cmtcrypto "git.cw.tr/mukan-network/mukan-consensus/proto/tendermint/crypto"
) )
const ProofOpDomino = "test:domino" const ProofOpDomino = "test:domino"

View file

@ -4,8 +4,8 @@ import (
"bytes" "bytes"
"fmt" "fmt"
"github.com/cometbft/cometbft/crypto/tmhash" "git.cw.tr/mukan-network/mukan-consensus/crypto/tmhash"
cmtcrypto "github.com/cometbft/cometbft/proto/tendermint/crypto" cmtcrypto "git.cw.tr/mukan-network/mukan-consensus/proto/tendermint/crypto"
) )
const ProofOpValue = "simple:v" const ProofOpValue = "simple:v"

View file

@ -20,7 +20,7 @@ import (
"encoding/hex" "encoding/hex"
"testing" "testing"
"github.com/cometbft/cometbft/crypto/tmhash" "git.cw.tr/mukan-network/mukan-consensus/crypto/tmhash"
) )
func TestRFC6962Hasher(t *testing.T) { func TestRFC6962Hasher(t *testing.T) {

Some files were not shown because too many files have changed in this diff Show more