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"
"sync"
"github.com/cometbft/cometbft/abci/types"
"github.com/cometbft/cometbft/libs/service"
cmtsync "github.com/cometbft/cometbft/libs/sync"
"git.cw.tr/mukan-network/mukan-consensus/abci/types"
"git.cw.tr/mukan-network/mukan-consensus/libs/service"
cmtsync "git.cw.tr/mukan-network/mukan-consensus/libs/sync"
)
const (

View file

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

View file

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

View file

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

View file

@ -5,13 +5,13 @@ package mocks
import (
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"
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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -10,8 +10,8 @@ package server
import (
"fmt"
"github.com/cometbft/cometbft/abci/types"
"github.com/cometbft/cometbft/libs/service"
"git.cw.tr/mukan-network/mukan-consensus/abci/types"
"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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -9,7 +9,7 @@ import (
"github.com/cosmos/gogoproto/proto"
"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) {

View file

@ -5,7 +5,7 @@ package mocks
import (
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"
)

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -5,8 +5,8 @@ import (
"github.com/cosmos/gogoproto/proto"
bcproto "github.com/cometbft/cometbft/proto/tendermint/blocksync"
"github.com/cometbft/cometbft/types"
bcproto "git.cw.tr/mukan-network/mukan-consensus/proto/tendermint/blocksync"
"git.cw.tr/mukan-network/mukan-consensus/types"
)
const (
@ -31,7 +31,7 @@ func ValidateMsg(pb proto.Message) error {
}
case *bcproto.BlockResponse:
// 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
case *bcproto.NoBlockResponse:
if msg.Height < 0 {

View file

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

View file

@ -8,13 +8,13 @@ import (
"sync/atomic"
"time"
flow "github.com/cometbft/cometbft/libs/flowrate"
"github.com/cometbft/cometbft/libs/log"
"github.com/cometbft/cometbft/libs/service"
cmtsync "github.com/cometbft/cometbft/libs/sync"
"github.com/cometbft/cometbft/p2p"
"github.com/cometbft/cometbft/types"
cmttime "github.com/cometbft/cometbft/types/time"
flow "git.cw.tr/mukan-network/mukan-consensus/libs/flowrate"
"git.cw.tr/mukan-network/mukan-consensus/libs/log"
"git.cw.tr/mukan-network/mukan-consensus/libs/service"
cmtsync "git.cw.tr/mukan-network/mukan-consensus/libs/sync"
"git.cw.tr/mukan-network/mukan-consensus/p2p"
"git.cw.tr/mukan-network/mukan-consensus/types"
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/require"
"github.com/cometbft/cometbft/libs/log"
cmtrand "github.com/cometbft/cometbft/libs/rand"
"github.com/cometbft/cometbft/p2p"
"github.com/cometbft/cometbft/types"
"git.cw.tr/mukan-network/mukan-consensus/libs/log"
cmtrand "git.cw.tr/mukan-network/mukan-consensus/libs/rand"
"git.cw.tr/mukan-network/mukan-consensus/p2p"
"git.cw.tr/mukan-network/mukan-consensus/types"
)
func init() {

View file

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

View file

@ -8,26 +8,26 @@ import (
"testing"
"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/mock"
"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"
cfg "github.com/cometbft/cometbft/config"
"github.com/cometbft/cometbft/internal/test"
"github.com/cometbft/cometbft/libs/log"
mpmocks "github.com/cometbft/cometbft/mempool/mocks"
"github.com/cometbft/cometbft/p2p"
cmtproto "github.com/cometbft/cometbft/proto/tendermint/types"
"github.com/cometbft/cometbft/proxy"
sm "github.com/cometbft/cometbft/state"
"github.com/cometbft/cometbft/store"
"github.com/cometbft/cometbft/types"
cmttime "github.com/cometbft/cometbft/types/time"
abci "git.cw.tr/mukan-network/mukan-consensus/abci/types"
cfg "git.cw.tr/mukan-network/mukan-consensus/config"
"git.cw.tr/mukan-network/mukan-consensus/internal/test"
"git.cw.tr/mukan-network/mukan-consensus/libs/log"
mpmocks "git.cw.tr/mukan-network/mukan-consensus/mempool/mocks"
"git.cw.tr/mukan-network/mukan-consensus/p2p"
cmtproto "git.cw.tr/mukan-network/mukan-consensus/proto/tendermint/types"
"git.cw.tr/mukan-network/mukan-consensus/proxy"
sm "git.cw.tr/mukan-network/mukan-consensus/state"
"git.cw.tr/mukan-network/mukan-consensus/store"
"git.cw.tr/mukan-network/mukan-consensus/types"
cmttime "git.cw.tr/mukan-network/mukan-consensus/types/time"
)
var config *cfg.Config

View file

@ -10,7 +10,7 @@ import (
"github.com/syndtr/goleveldb/leveldb/opt"
"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{

View file

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

View file

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

View file

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

View file

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

View file

@ -5,8 +5,8 @@ import (
"github.com/spf13/cobra"
cmtos "github.com/cometbft/cometbft/libs/os"
"github.com/cometbft/cometbft/p2p"
cmtos "git.cw.tr/mukan-network/mukan-consensus/libs/os"
"git.cw.tr/mukan-network/mukan-consensus/p2p"
)
// 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"
cmtjson "github.com/cometbft/cometbft/libs/json"
"github.com/cometbft/cometbft/privval"
cmtjson "git.cw.tr/mukan-network/mukan-consensus/libs/json"
"git.cw.tr/mukan-network/mukan-consensus/privval"
)
// GenValidatorCmd allows the generation of a keypair for a

View file

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

View file

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

View file

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

View file

@ -7,18 +7,18 @@ import (
"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"
cmtcfg "github.com/cometbft/cometbft/config"
"github.com/cometbft/cometbft/libs/progressbar"
"github.com/cometbft/cometbft/state"
"github.com/cometbft/cometbft/state/indexer"
blockidxkv "github.com/cometbft/cometbft/state/indexer/block/kv"
"github.com/cometbft/cometbft/state/indexer/sink/psql"
"github.com/cometbft/cometbft/state/txindex"
"github.com/cometbft/cometbft/state/txindex/kv"
"github.com/cometbft/cometbft/types"
abcitypes "git.cw.tr/mukan-network/mukan-consensus/abci/types"
cmtcfg "git.cw.tr/mukan-network/mukan-consensus/config"
"git.cw.tr/mukan-network/mukan-consensus/libs/progressbar"
"git.cw.tr/mukan-network/mukan-consensus/state"
"git.cw.tr/mukan-network/mukan-consensus/state/indexer"
blockidxkv "git.cw.tr/mukan-network/mukan-consensus/state/indexer/block/kv"
"git.cw.tr/mukan-network/mukan-consensus/state/indexer/sink/psql"
"git.cw.tr/mukan-network/mukan-consensus/state/txindex"
"git.cw.tr/mukan-network/mukan-consensus/state/txindex/kv"
"git.cw.tr/mukan-network/mukan-consensus/types"
)
const (

View file

@ -9,15 +9,15 @@ import (
"github.com/stretchr/testify/mock"
"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"
cmtcfg "github.com/cometbft/cometbft/config"
"github.com/cometbft/cometbft/internal/test"
blockmocks "github.com/cometbft/cometbft/state/indexer/mocks"
"github.com/cometbft/cometbft/state/mocks"
txmocks "github.com/cometbft/cometbft/state/txindex/mocks"
"github.com/cometbft/cometbft/types"
abcitypes "git.cw.tr/mukan-network/mukan-consensus/abci/types"
cmtcfg "git.cw.tr/mukan-network/mukan-consensus/config"
"git.cw.tr/mukan-network/mukan-consensus/internal/test"
blockmocks "git.cw.tr/mukan-network/mukan-consensus/state/indexer/mocks"
"git.cw.tr/mukan-network/mukan-consensus/state/mocks"
txmocks "git.cw.tr/mukan-network/mukan-consensus/state/txindex/mocks"
"git.cw.tr/mukan-network/mukan-consensus/types"
)
const (

View file

@ -3,7 +3,7 @@ package commands
import (
"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.

View file

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

View file

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

View file

@ -6,12 +6,12 @@ import (
"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"
"github.com/cometbft/cometbft/libs/os"
"github.com/cometbft/cometbft/state"
"github.com/cometbft/cometbft/store"
cfg "git.cw.tr/mukan-network/mukan-consensus/config"
"git.cw.tr/mukan-network/mukan-consensus/libs/os"
"git.cw.tr/mukan-network/mukan-consensus/state"
"git.cw.tr/mukan-network/mukan-consensus/store"
)
var removeBlock = false

View file

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

View file

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

View file

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

View file

@ -5,7 +5,7 @@ import (
"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.

View file

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

View file

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

View file

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

View file

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

View file

@ -5,12 +5,12 @@ import (
"os"
"time"
"github.com/cometbft/cometbft/crypto/ed25519"
"github.com/cometbft/cometbft/libs/log"
cmtnet "github.com/cometbft/cometbft/libs/net"
cmtos "github.com/cometbft/cometbft/libs/os"
"git.cw.tr/mukan-network/mukan-consensus/crypto/ed25519"
"git.cw.tr/mukan-network/mukan-consensus/libs/log"
cmtnet "git.cw.tr/mukan-network/mukan-consensus/libs/net"
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() {

View file

@ -10,7 +10,7 @@ import (
"regexp"
"time"
"github.com/cometbft/cometbft/version"
"git.cw.tr/mukan-network/mukan-consensus/version"
)
const (
@ -706,7 +706,7 @@ func DefaultFuzzConnConfig() *FuzzConnConfig {
// 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
// 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 {
// 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/require"
"github.com/cometbft/cometbft/config"
"git.cw.tr/mukan-network/mukan-consensus/config"
)
func TestDefaultConfig(t *testing.T) {

View file

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

View file

@ -6,7 +6,7 @@ import (
"strings"
"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.

View file

@ -8,8 +8,8 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/cometbft/cometbft/config"
"github.com/cometbft/cometbft/internal/test"
"git.cw.tr/mukan-network/mukan-consensus/config"
"git.cw.tr/mukan-network/mukan-consensus/internal/test"
)
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/require"
dbm "github.com/cometbft/cometbft-db"
dbm "git.cw.tr/mukan-network/mukan-consensus-db"
abcicli "github.com/cometbft/cometbft/abci/client"
abci "github.com/cometbft/cometbft/abci/types"
"github.com/cometbft/cometbft/evidence"
"github.com/cometbft/cometbft/libs/log"
"github.com/cometbft/cometbft/libs/service"
cmtsync "github.com/cometbft/cometbft/libs/sync"
mempl "github.com/cometbft/cometbft/mempool"
"github.com/cometbft/cometbft/proxy"
abcicli "git.cw.tr/mukan-network/mukan-consensus/abci/client"
abci "git.cw.tr/mukan-network/mukan-consensus/abci/types"
"git.cw.tr/mukan-network/mukan-consensus/evidence"
"git.cw.tr/mukan-network/mukan-consensus/libs/log"
"git.cw.tr/mukan-network/mukan-consensus/libs/service"
cmtsync "git.cw.tr/mukan-network/mukan-consensus/libs/sync"
mempl "git.cw.tr/mukan-network/mukan-consensus/mempool"
"git.cw.tr/mukan-network/mukan-consensus/proxy"
"github.com/cometbft/cometbft/p2p"
cmtcons "github.com/cometbft/cometbft/proto/tendermint/consensus"
cmtproto "github.com/cometbft/cometbft/proto/tendermint/types"
sm "github.com/cometbft/cometbft/state"
"github.com/cometbft/cometbft/store"
"github.com/cometbft/cometbft/types"
"git.cw.tr/mukan-network/mukan-consensus/p2p"
cmtcons "git.cw.tr/mukan-network/mukan-consensus/proto/tendermint/consensus"
cmtproto "git.cw.tr/mukan-network/mukan-consensus/proto/tendermint/types"
sm "git.cw.tr/mukan-network/mukan-consensus/state"
"git.cw.tr/mukan-network/mukan-consensus/store"
"git.cw.tr/mukan-network/mukan-consensus/types"
)
//----------------------------------------------

View file

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

View file

@ -4,14 +4,14 @@ import (
"testing"
"time"
cfg "github.com/cometbft/cometbft/config"
"github.com/cometbft/cometbft/libs/bytes"
"github.com/cometbft/cometbft/libs/log"
cmtrand "github.com/cometbft/cometbft/libs/rand"
"github.com/cometbft/cometbft/p2p"
cmtcons "github.com/cometbft/cometbft/proto/tendermint/consensus"
cmtproto "github.com/cometbft/cometbft/proto/tendermint/types"
"github.com/cometbft/cometbft/types"
cfg "git.cw.tr/mukan-network/mukan-consensus/config"
"git.cw.tr/mukan-network/mukan-consensus/libs/bytes"
"git.cw.tr/mukan-network/mukan-consensus/libs/log"
cmtrand "git.cw.tr/mukan-network/mukan-consensus/libs/rand"
"git.cw.tr/mukan-network/mukan-consensus/p2p"
cmtcons "git.cw.tr/mukan-network/mukan-consensus/proto/tendermint/consensus"
cmtproto "git.cw.tr/mukan-network/mukan-consensus/proto/tendermint/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/require"
dbm "github.com/cometbft/cometbft-db"
dbm "git.cw.tr/mukan-network/mukan-consensus-db"
"github.com/cometbft/cometbft/abci/example/kvstore"
abci "github.com/cometbft/cometbft/abci/types"
mempl "github.com/cometbft/cometbft/mempool"
"github.com/cometbft/cometbft/proxy"
sm "github.com/cometbft/cometbft/state"
"github.com/cometbft/cometbft/types"
"git.cw.tr/mukan-network/mukan-consensus/abci/example/kvstore"
abci "git.cw.tr/mukan-network/mukan-consensus/abci/types"
mempl "git.cw.tr/mukan-network/mukan-consensus/mempool"
"git.cw.tr/mukan-network/mukan-consensus/proxy"
sm "git.cw.tr/mukan-network/mukan-consensus/state"
"git.cw.tr/mukan-network/mukan-consensus/types"
)
// for testing

View file

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

View file

@ -6,13 +6,13 @@ import (
"github.com/cosmos/gogoproto/proto"
cstypes "github.com/cometbft/cometbft/consensus/types"
"github.com/cometbft/cometbft/libs/bits"
cmtmath "github.com/cometbft/cometbft/libs/math"
"github.com/cometbft/cometbft/p2p"
cmtcons "github.com/cometbft/cometbft/proto/tendermint/consensus"
cmtproto "github.com/cometbft/cometbft/proto/tendermint/types"
"github.com/cometbft/cometbft/types"
cstypes "git.cw.tr/mukan-network/mukan-consensus/consensus/types"
"git.cw.tr/mukan-network/mukan-consensus/libs/bits"
cmtmath "git.cw.tr/mukan-network/mukan-consensus/libs/math"
"git.cw.tr/mukan-network/mukan-consensus/p2p"
cmtcons "git.cw.tr/mukan-network/mukan-consensus/proto/tendermint/consensus"
cmtproto "git.cw.tr/mukan-network/mukan-consensus/proto/tendermint/types"
"git.cw.tr/mukan-network/mukan-consensus/types"
)
// 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/require"
"github.com/cometbft/cometbft/crypto/merkle"
"github.com/cometbft/cometbft/libs/bits"
cmtrand "github.com/cometbft/cometbft/libs/rand"
"github.com/cometbft/cometbft/p2p"
cmtcons "github.com/cometbft/cometbft/proto/tendermint/consensus"
cmtproto "github.com/cometbft/cometbft/proto/tendermint/types"
"github.com/cometbft/cometbft/types"
"git.cw.tr/mukan-network/mukan-consensus/crypto/merkle"
"git.cw.tr/mukan-network/mukan-consensus/libs/bits"
cmtrand "git.cw.tr/mukan-network/mukan-consensus/libs/rand"
"git.cw.tr/mukan-network/mukan-consensus/p2p"
cmtcons "git.cw.tr/mukan-network/mukan-consensus/proto/tendermint/consensus"
cmtproto "git.cw.tr/mukan-network/mukan-consensus/proto/tendermint/types"
"git.cw.tr/mukan-network/mukan-consensus/types"
)
func TestMsgToProto(t *testing.T) {

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -13,22 +13,22 @@ import (
"github.com/cosmos/gogoproto/proto"
cfg "github.com/cometbft/cometbft/config"
cstypes "github.com/cometbft/cometbft/consensus/types"
"github.com/cometbft/cometbft/crypto"
cmtevents "github.com/cometbft/cometbft/libs/events"
"github.com/cometbft/cometbft/libs/fail"
cmtjson "github.com/cometbft/cometbft/libs/json"
"github.com/cometbft/cometbft/libs/log"
cmtmath "github.com/cometbft/cometbft/libs/math"
cmtos "github.com/cometbft/cometbft/libs/os"
"github.com/cometbft/cometbft/libs/service"
cmtsync "github.com/cometbft/cometbft/libs/sync"
"github.com/cometbft/cometbft/p2p"
cmtproto "github.com/cometbft/cometbft/proto/tendermint/types"
sm "github.com/cometbft/cometbft/state"
"github.com/cometbft/cometbft/types"
cmttime "github.com/cometbft/cometbft/types/time"
cfg "git.cw.tr/mukan-network/mukan-consensus/config"
cstypes "git.cw.tr/mukan-network/mukan-consensus/consensus/types"
"git.cw.tr/mukan-network/mukan-consensus/crypto"
cmtevents "git.cw.tr/mukan-network/mukan-consensus/libs/events"
"git.cw.tr/mukan-network/mukan-consensus/libs/fail"
cmtjson "git.cw.tr/mukan-network/mukan-consensus/libs/json"
"git.cw.tr/mukan-network/mukan-consensus/libs/log"
cmtmath "git.cw.tr/mukan-network/mukan-consensus/libs/math"
cmtos "git.cw.tr/mukan-network/mukan-consensus/libs/os"
"git.cw.tr/mukan-network/mukan-consensus/libs/service"
cmtsync "git.cw.tr/mukan-network/mukan-consensus/libs/sync"
"git.cw.tr/mukan-network/mukan-consensus/p2p"
cmtproto "git.cw.tr/mukan-network/mukan-consensus/proto/tendermint/types"
sm "git.cw.tr/mukan-network/mukan-consensus/state"
"git.cw.tr/mukan-network/mukan-consensus/types"
cmttime "git.cw.tr/mukan-network/mukan-consensus/types/time"
)
// Consensus sentinel errors
@ -1123,7 +1123,7 @@ func (cs *State) needProofBlock(height int64) bool {
lastBlockMeta := cs.blockStore.LoadBlockMeta(height - 1)
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)
return true
}
@ -2419,10 +2419,10 @@ func (cs *State) voteTime() time.Time {
// Minimum time increment between blocks
const timeIota = time.Millisecond
// 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 {
// 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)
} else if cs.ProposalBlock != nil {
minVoteTime = cs.ProposalBlock.Time.Add(timeIota)

View file

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

View file

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

View file

@ -6,7 +6,7 @@ import (
"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) {

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -9,18 +9,18 @@ import (
"testing"
"time"
db "github.com/cometbft/cometbft-db"
db "git.cw.tr/mukan-network/mukan-consensus-db"
"github.com/cometbft/cometbft/abci/example/kvstore"
cfg "github.com/cometbft/cometbft/config"
"github.com/cometbft/cometbft/internal/test"
"github.com/cometbft/cometbft/libs/log"
cmtrand "github.com/cometbft/cometbft/libs/rand"
"github.com/cometbft/cometbft/privval"
"github.com/cometbft/cometbft/proxy"
sm "github.com/cometbft/cometbft/state"
"github.com/cometbft/cometbft/store"
"github.com/cometbft/cometbft/types"
"git.cw.tr/mukan-network/mukan-consensus/abci/example/kvstore"
cfg "git.cw.tr/mukan-network/mukan-consensus/config"
"git.cw.tr/mukan-network/mukan-consensus/internal/test"
"git.cw.tr/mukan-network/mukan-consensus/libs/log"
cmtrand "git.cw.tr/mukan-network/mukan-consensus/libs/rand"
"git.cw.tr/mukan-network/mukan-consensus/privval"
"git.cw.tr/mukan-network/mukan-consensus/proxy"
sm "git.cw.tr/mukan-network/mukan-consensus/state"
"git.cw.tr/mukan-network/mukan-consensus/store"
"git.cw.tr/mukan-network/mukan-consensus/types"
)
// 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/require"
"github.com/cometbft/cometbft/consensus/types"
"github.com/cometbft/cometbft/crypto/merkle"
"github.com/cometbft/cometbft/libs/autofile"
"github.com/cometbft/cometbft/libs/log"
cmttypes "github.com/cometbft/cometbft/types"
cmttime "github.com/cometbft/cometbft/types/time"
"git.cw.tr/mukan-network/mukan-consensus/consensus/types"
"git.cw.tr/mukan-network/mukan-consensus/crypto/merkle"
"git.cw.tr/mukan-network/mukan-consensus/libs/autofile"
"git.cw.tr/mukan-network/mukan-consensus/libs/log"
cmttypes "git.cw.tr/mukan-network/mukan-consensus/types"
cmttime "git.cw.tr/mukan-network/mukan-consensus/types/time"
)
const (

View file

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

View file

@ -1,8 +1,8 @@
package crypto
import (
"github.com/cometbft/cometbft/crypto/tmhash"
"github.com/cometbft/cometbft/libs/bytes"
"git.cw.tr/mukan-network/mukan-consensus/crypto/tmhash"
"git.cw.tr/mukan-network/mukan-consensus/libs/bytes"
)
const (
@ -42,7 +42,7 @@ type Symmetric interface {
}
// 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 {
// Add appends an entry into the BatchVerifier.
Add(key PubKey, message, signature []byte) error

View file

@ -7,8 +7,8 @@ import (
"github.com/stretchr/testify/require"
"github.com/cometbft/cometbft/crypto"
"github.com/cometbft/cometbft/crypto/internal/benchmarking"
"git.cw.tr/mukan-network/mukan-consensus/crypto"
"git.cw.tr/mukan-network/mukan-consensus/crypto/internal/benchmarking"
)
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/extra/cache"
"github.com/cometbft/cometbft/crypto"
"github.com/cometbft/cometbft/crypto/tmhash"
cmtjson "github.com/cometbft/cometbft/libs/json"
"git.cw.tr/mukan-network/mukan-consensus/crypto"
"git.cw.tr/mukan-network/mukan-consensus/crypto/tmhash"
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/require"
"github.com/cometbft/cometbft/crypto"
"github.com/cometbft/cometbft/crypto/ed25519"
"git.cw.tr/mukan-network/mukan-consensus/crypto"
"git.cw.tr/mukan-network/mukan-consensus/crypto/ed25519"
)
func TestSignAndValidateEd25519(t *testing.T) {

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -5,7 +5,7 @@ import (
"errors"
"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/require"
"github.com/cometbft/cometbft/crypto/tmhash"
cmtcrypto "github.com/cometbft/cometbft/proto/tendermint/crypto"
"git.cw.tr/mukan-network/mukan-consensus/crypto/tmhash"
cmtcrypto "git.cw.tr/mukan-network/mukan-consensus/proto/tendermint/crypto"
)
const ProofOpDomino = "test:domino"

View file

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

View file

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

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