This commit is contained in:
c4ei 2023-08-23 15:30:52 +09:00
parent ec2df86f13
commit d932206429
863 changed files with 2485 additions and 2485 deletions

View File

@ -5,7 +5,7 @@ Any contribution to Kaspad is very welcome.
## Getting started
If you want to start contributing to Kaspad and don't know where to start, you can pick an issue from
the [list](https://github.com/c4ei/YunSeokYeol/issues).
the [list](https://github.com/c4ei/yunseokyeol/issues).
If you want to make a big change it's better to discuss it first by opening an issue or talk about it in
[Discord](https://discord.gg/WmGhhzk) to avoid duplicate work.

View File

@ -55,7 +55,7 @@ Join our discord server using the following link: https://discord.gg/YNYnNN5Pf2
## Issue Tracker
The [integrated github issue tracker](https://github.com/c4ei/YunSeokYeol/issues)
The [integrated github issue tracker](https://github.com/c4ei/yunseokyeol/issues)
is used for this project.
Issue priorities may be seen at https://github.com/orgs/kaspanet/projects/4

View File

@ -7,17 +7,17 @@ import (
"runtime"
"time"
"github.com/c4ei/YunSeokYeol/infrastructure/config"
"github.com/c4ei/YunSeokYeol/infrastructure/db/database"
"github.com/c4ei/YunSeokYeol/infrastructure/db/database/ldb"
"github.com/c4ei/YunSeokYeol/infrastructure/logger"
"github.com/c4ei/YunSeokYeol/infrastructure/os/execenv"
"github.com/c4ei/YunSeokYeol/infrastructure/os/limits"
"github.com/c4ei/YunSeokYeol/infrastructure/os/signal"
"github.com/c4ei/YunSeokYeol/infrastructure/os/winservice"
"github.com/c4ei/YunSeokYeol/util/panics"
"github.com/c4ei/YunSeokYeol/util/profiling"
"github.com/c4ei/YunSeokYeol/version"
"github.com/c4ei/yunseokyeol/infrastructure/config"
"github.com/c4ei/yunseokyeol/infrastructure/db/database"
"github.com/c4ei/yunseokyeol/infrastructure/db/database/ldb"
"github.com/c4ei/yunseokyeol/infrastructure/logger"
"github.com/c4ei/yunseokyeol/infrastructure/os/execenv"
"github.com/c4ei/yunseokyeol/infrastructure/os/limits"
"github.com/c4ei/yunseokyeol/infrastructure/os/signal"
"github.com/c4ei/yunseokyeol/infrastructure/os/winservice"
"github.com/c4ei/yunseokyeol/util/panics"
"github.com/c4ei/yunseokyeol/util/profiling"
"github.com/c4ei/yunseokyeol/version"
)
const (

View File

@ -2,7 +2,7 @@ wire
====
[![ISC License](http://img.shields.io/badge/license-ISC-blue.svg)](https://choosealicense.com/licenses/isc/)
[![GoDoc](https://img.shields.io/badge/godoc-reference-blue.svg)](http://godoc.org/github.com/c4ei/YunSeokYeol/wire)
[![GoDoc](https://img.shields.io/badge/godoc-reference-blue.svg)](http://godoc.org/github.com/c4ei/yunseokyeol/wire)
=======
Package wire implements the kaspa wire protocol.

View File

@ -1,6 +1,6 @@
package appmessage
import "github.com/c4ei/YunSeokYeol/domain/consensus/model/externalapi"
import "github.com/c4ei/yunseokyeol/domain/consensus/model/externalapi"
// mainnetGenesisHash is the hash of the first block in the block DAG for the
// main network (genesis block).

View File

@ -6,14 +6,14 @@ import (
"github.com/pkg/errors"
"github.com/c4ei/YunSeokYeol/domain/consensus/utils/blockheader"
"github.com/c4ei/YunSeokYeol/domain/consensus/utils/hashes"
"github.com/c4ei/YunSeokYeol/domain/consensus/utils/utxo"
"github.com/c4ei/yunseokyeol/domain/consensus/utils/blockheader"
"github.com/c4ei/yunseokyeol/domain/consensus/utils/hashes"
"github.com/c4ei/yunseokyeol/domain/consensus/utils/utxo"
"github.com/c4ei/YunSeokYeol/domain/consensus/model/externalapi"
"github.com/c4ei/YunSeokYeol/domain/consensus/utils/subnetworks"
"github.com/c4ei/YunSeokYeol/domain/consensus/utils/transactionid"
"github.com/c4ei/YunSeokYeol/util/mstime"
"github.com/c4ei/yunseokyeol/domain/consensus/model/externalapi"
"github.com/c4ei/yunseokyeol/domain/consensus/utils/subnetworks"
"github.com/c4ei/yunseokyeol/domain/consensus/utils/transactionid"
"github.com/c4ei/yunseokyeol/util/mstime"
)
// DomainBlockToMsgBlock converts an externalapi.DomainBlock to MsgBlock

View File

@ -5,7 +5,7 @@
package appmessage
import (
"github.com/c4ei/YunSeokYeol/domain/consensus/model/externalapi"
"github.com/c4ei/yunseokyeol/domain/consensus/model/externalapi"
)
// defaultTransactionAlloc is the default size used for the backing array

View File

@ -9,12 +9,12 @@ import (
"reflect"
"testing"
"github.com/c4ei/YunSeokYeol/util/mstime"
"github.com/c4ei/yunseokyeol/util/mstime"
"github.com/davecgh/go-spew/spew"
"github.com/c4ei/YunSeokYeol/domain/consensus/utils/subnetworks"
"github.com/c4ei/yunseokyeol/domain/consensus/utils/subnetworks"
"github.com/c4ei/YunSeokYeol/domain/consensus/model/externalapi"
"github.com/c4ei/yunseokyeol/domain/consensus/model/externalapi"
)
// TestBlock tests the MsgBlock API.

View File

@ -7,10 +7,10 @@ package appmessage
import (
"math/big"
"github.com/c4ei/YunSeokYeol/domain/consensus/utils/consensushashing"
"github.com/c4ei/yunseokyeol/domain/consensus/utils/consensushashing"
"github.com/c4ei/YunSeokYeol/domain/consensus/model/externalapi"
"github.com/c4ei/YunSeokYeol/util/mstime"
"github.com/c4ei/yunseokyeol/domain/consensus/model/externalapi"
"github.com/c4ei/yunseokyeol/util/mstime"
)
// BaseBlockHeaderPayload is the base number of bytes a block header can be,

View File

@ -9,7 +9,7 @@ import (
"reflect"
"testing"
"github.com/c4ei/YunSeokYeol/domain/consensus/model/externalapi"
"github.com/c4ei/yunseokyeol/domain/consensus/model/externalapi"
"github.com/davecgh/go-spew/spew"
)

View File

@ -1,7 +1,7 @@
package appmessage
import (
"github.com/c4ei/YunSeokYeol/domain/consensus/model/externalapi"
"github.com/c4ei/yunseokyeol/domain/consensus/model/externalapi"
)
// MaxBlockLocatorsPerMsg is the maximum number of block locator hashes allowed

View File

@ -3,7 +3,7 @@ package appmessage
import (
"testing"
"github.com/c4ei/YunSeokYeol/domain/consensus/model/externalapi"
"github.com/c4ei/yunseokyeol/domain/consensus/model/externalapi"
"github.com/davecgh/go-spew/spew"
)

View File

@ -3,7 +3,7 @@ package appmessage
import (
"math/big"
"github.com/c4ei/YunSeokYeol/domain/consensus/model/externalapi"
"github.com/c4ei/yunseokyeol/domain/consensus/model/externalapi"
)
// MsgBlockWithTrustedData represents a kaspa BlockWithTrustedData message

View File

@ -1,7 +1,7 @@
package appmessage
import (
"github.com/c4ei/YunSeokYeol/domain/consensus/model/externalapi"
"github.com/c4ei/yunseokyeol/domain/consensus/model/externalapi"
)
// MsgIBDBlockLocator represents a kaspa ibdBlockLocator message

View File

@ -1,7 +1,7 @@
package appmessage
import (
"github.com/c4ei/YunSeokYeol/domain/consensus/model/externalapi"
"github.com/c4ei/yunseokyeol/domain/consensus/model/externalapi"
)
// MsgIBDBlockLocatorHighestHash represents a kaspa BlockLocatorHighestHash message

View File

@ -1,7 +1,7 @@
package appmessage
import (
"github.com/c4ei/YunSeokYeol/domain/consensus/model/externalapi"
"github.com/c4ei/yunseokyeol/domain/consensus/model/externalapi"
)
// MsgIBDChainBlockLocator implements the Message interface and represents a kaspa

View File

@ -1,7 +1,7 @@
package appmessage
import (
"github.com/c4ei/YunSeokYeol/domain/consensus/model/externalapi"
"github.com/c4ei/yunseokyeol/domain/consensus/model/externalapi"
)
// MsgInvRelayBlock implements the Message interface and represents a kaspa

View File

@ -1,7 +1,7 @@
package appmessage
import (
"github.com/c4ei/YunSeokYeol/domain/consensus/model/externalapi"
"github.com/c4ei/yunseokyeol/domain/consensus/model/externalapi"
)
// MaxInvPerTxInvMsg is the maximum number of hashes that can

View File

@ -1,6 +1,6 @@
package appmessage
import "github.com/c4ei/YunSeokYeol/domain/consensus/model/externalapi"
import "github.com/c4ei/yunseokyeol/domain/consensus/model/externalapi"
// MsgPruningPointUTXOSetChunk represents a kaspa PruningPointUTXOSetChunk message
type MsgPruningPointUTXOSetChunk struct {

View File

@ -5,7 +5,7 @@
package appmessage
import (
"github.com/c4ei/YunSeokYeol/domain/consensus/model/externalapi"
"github.com/c4ei/yunseokyeol/domain/consensus/model/externalapi"
)
// MsgRequestAddresses implements the Message interface and represents a kaspa

View File

@ -5,7 +5,7 @@
package appmessage
import (
"github.com/c4ei/YunSeokYeol/domain/consensus/model/externalapi"
"github.com/c4ei/yunseokyeol/domain/consensus/model/externalapi"
)
// MsgRequestAnticone implements the Message interface and represents a kaspa

View File

@ -1,7 +1,7 @@
package appmessage
import (
"github.com/c4ei/YunSeokYeol/domain/consensus/model/externalapi"
"github.com/c4ei/yunseokyeol/domain/consensus/model/externalapi"
)
// MsgRequestBlockLocator implements the Message interface and represents a kaspa

View File

@ -3,7 +3,7 @@ package appmessage
import (
"testing"
"github.com/c4ei/YunSeokYeol/domain/consensus/model/externalapi"
"github.com/c4ei/yunseokyeol/domain/consensus/model/externalapi"
)
// TestRequestBlockLocator tests the MsgRequestBlockLocator API.

View File

@ -5,7 +5,7 @@
package appmessage
import (
"github.com/c4ei/YunSeokYeol/domain/consensus/model/externalapi"
"github.com/c4ei/yunseokyeol/domain/consensus/model/externalapi"
)
// MsgRequestHeaders implements the Message interface and represents a kaspa

View File

@ -7,7 +7,7 @@ package appmessage
import (
"testing"
"github.com/c4ei/YunSeokYeol/domain/consensus/model/externalapi"
"github.com/c4ei/yunseokyeol/domain/consensus/model/externalapi"
)
// TestRequstIBDBlocks tests the MsgRequestIBDBlocks API.

View File

@ -1,7 +1,7 @@
package appmessage
import (
"github.com/c4ei/YunSeokYeol/domain/consensus/model/externalapi"
"github.com/c4ei/yunseokyeol/domain/consensus/model/externalapi"
)
// MsgRequestIBDBlocks implements the Message interface and represents a kaspa

View File

@ -1,7 +1,7 @@
package appmessage
import (
"github.com/c4ei/YunSeokYeol/domain/consensus/model/externalapi"
"github.com/c4ei/yunseokyeol/domain/consensus/model/externalapi"
)
// MsgRequestIBDChainBlockLocator implements the Message interface and represents a kaspa

View File

@ -1,7 +1,7 @@
package appmessage
import (
"github.com/c4ei/YunSeokYeol/domain/consensus/model/externalapi"
"github.com/c4ei/yunseokyeol/domain/consensus/model/externalapi"
)
// MsgRequestPruningPointUTXOSet represents a kaspa RequestPruningPointUTXOSet message

View File

@ -1,7 +1,7 @@
package appmessage
import (
"github.com/c4ei/YunSeokYeol/domain/consensus/model/externalapi"
"github.com/c4ei/yunseokyeol/domain/consensus/model/externalapi"
)
// MaxRequestRelayBlocksHashes is the maximum number of hashes that can

View File

@ -1,7 +1,7 @@
package appmessage
import (
"github.com/c4ei/YunSeokYeol/domain/consensus/model/externalapi"
"github.com/c4ei/yunseokyeol/domain/consensus/model/externalapi"
)
// MaxInvPerRequestTransactionsMsg is the maximum number of hashes that can

View File

@ -5,7 +5,7 @@
package appmessage
import (
"github.com/c4ei/YunSeokYeol/domain/consensus/model/externalapi"
"github.com/c4ei/yunseokyeol/domain/consensus/model/externalapi"
)
// MsgTransactionNotFound defines a kaspa TransactionNotFound message which is sent in response to

View File

@ -8,11 +8,11 @@ import (
"encoding/binary"
"strconv"
"github.com/c4ei/YunSeokYeol/domain/consensus/utils/consensushashing"
"github.com/c4ei/yunseokyeol/domain/consensus/utils/consensushashing"
"github.com/c4ei/YunSeokYeol/domain/consensus/utils/subnetworks"
"github.com/c4ei/yunseokyeol/domain/consensus/utils/subnetworks"
"github.com/c4ei/YunSeokYeol/domain/consensus/model/externalapi"
"github.com/c4ei/yunseokyeol/domain/consensus/model/externalapi"
)
const (

View File

@ -11,12 +11,12 @@ import (
"reflect"
"testing"
"github.com/c4ei/YunSeokYeol/domain/consensus/utils/constants"
"github.com/c4ei/yunseokyeol/domain/consensus/utils/constants"
"github.com/c4ei/YunSeokYeol/domain/consensus/utils/subnetworks"
"github.com/c4ei/YunSeokYeol/domain/consensus/utils/transactionid"
"github.com/c4ei/yunseokyeol/domain/consensus/utils/subnetworks"
"github.com/c4ei/yunseokyeol/domain/consensus/utils/transactionid"
"github.com/c4ei/YunSeokYeol/domain/consensus/model/externalapi"
"github.com/c4ei/yunseokyeol/domain/consensus/model/externalapi"
"github.com/davecgh/go-spew/spew"
)

View File

@ -8,11 +8,11 @@ import (
"fmt"
"strings"
"github.com/c4ei/YunSeokYeol/domain/consensus/model/externalapi"
"github.com/c4ei/YunSeokYeol/version"
"github.com/c4ei/yunseokyeol/domain/consensus/model/externalapi"
"github.com/c4ei/yunseokyeol/version"
"github.com/c4ei/YunSeokYeol/infrastructure/network/netadapter/id"
"github.com/c4ei/YunSeokYeol/util/mstime"
"github.com/c4ei/yunseokyeol/infrastructure/network/netadapter/id"
"github.com/c4ei/yunseokyeol/util/mstime"
)
// MaxUserAgentLen is the maximum allowed length for the user agent field in a

View File

@ -9,7 +9,7 @@ import (
"reflect"
"testing"
"github.com/c4ei/YunSeokYeol/infrastructure/network/netadapter/id"
"github.com/c4ei/yunseokyeol/infrastructure/network/netadapter/id"
"github.com/davecgh/go-spew/spew"
)

View File

@ -7,7 +7,7 @@ package appmessage
import (
"net"
"github.com/c4ei/YunSeokYeol/util/mstime"
"github.com/c4ei/yunseokyeol/util/mstime"
)
// NetAddress defines information about a peer on the network including the time

View File

@ -1,6 +1,6 @@
package appmessage
import "github.com/c4ei/YunSeokYeol/domain/consensus/model/externalapi"
import "github.com/c4ei/yunseokyeol/domain/consensus/model/externalapi"
// GetBlockCountRequestMessage is an appmessage corresponding to
// its respective RPC message

View File

@ -4,22 +4,22 @@ import (
"fmt"
"sync/atomic"
"github.com/c4ei/YunSeokYeol/domain/consensus/model/externalapi"
"github.com/c4ei/yunseokyeol/domain/consensus/model/externalapi"
"github.com/c4ei/YunSeokYeol/domain/miningmanager/mempool"
"github.com/c4ei/yunseokyeol/domain/miningmanager/mempool"
"github.com/c4ei/YunSeokYeol/app/protocol"
"github.com/c4ei/YunSeokYeol/app/rpc"
"github.com/c4ei/YunSeokYeol/domain"
"github.com/c4ei/YunSeokYeol/domain/consensus"
"github.com/c4ei/YunSeokYeol/domain/utxoindex"
"github.com/c4ei/YunSeokYeol/infrastructure/config"
infrastructuredatabase "github.com/c4ei/YunSeokYeol/infrastructure/db/database"
"github.com/c4ei/YunSeokYeol/infrastructure/network/addressmanager"
"github.com/c4ei/YunSeokYeol/infrastructure/network/connmanager"
"github.com/c4ei/YunSeokYeol/infrastructure/network/netadapter"
"github.com/c4ei/YunSeokYeol/infrastructure/network/netadapter/id"
"github.com/c4ei/YunSeokYeol/util/panics"
"github.com/c4ei/yunseokyeol/app/protocol"
"github.com/c4ei/yunseokyeol/app/rpc"
"github.com/c4ei/yunseokyeol/domain"
"github.com/c4ei/yunseokyeol/domain/consensus"
"github.com/c4ei/yunseokyeol/domain/utxoindex"
"github.com/c4ei/yunseokyeol/infrastructure/config"
infrastructuredatabase "github.com/c4ei/yunseokyeol/infrastructure/db/database"
"github.com/c4ei/yunseokyeol/infrastructure/network/addressmanager"
"github.com/c4ei/yunseokyeol/infrastructure/network/connmanager"
"github.com/c4ei/yunseokyeol/infrastructure/network/netadapter"
"github.com/c4ei/yunseokyeol/infrastructure/network/netadapter/id"
"github.com/c4ei/yunseokyeol/util/panics"
)
// ComponentManager is a wrapper for all the kaspad services

View File

@ -6,7 +6,7 @@
package app
import (
"github.com/c4ei/YunSeokYeol/infrastructure/logger"
"github.com/c4ei/yunseokyeol/infrastructure/logger"
)
var log = logger.RegisterSubSystem("KASD")

View File

@ -3,8 +3,8 @@ package common
import (
"time"
peerpkg "github.com/c4ei/YunSeokYeol/app/protocol/peer"
routerpkg "github.com/c4ei/YunSeokYeol/infrastructure/network/netadapter/router"
peerpkg "github.com/c4ei/yunseokyeol/app/protocol/peer"
routerpkg "github.com/c4ei/yunseokyeol/infrastructure/network/netadapter/router"
"github.com/pkg/errors"
)

View File

@ -1,7 +1,7 @@
package flowcontext
import (
"github.com/c4ei/YunSeokYeol/infrastructure/network/addressmanager"
"github.com/c4ei/yunseokyeol/infrastructure/network/addressmanager"
)
// AddressManager returns the address manager associated to the flow context.

View File

@ -3,14 +3,14 @@ package flowcontext
import (
"time"
peerpkg "github.com/c4ei/YunSeokYeol/app/protocol/peer"
"github.com/c4ei/YunSeokYeol/app/protocol/protocolerrors"
"github.com/c4ei/YunSeokYeol/domain/consensus/model/externalapi"
"github.com/c4ei/YunSeokYeol/domain/consensus/ruleerrors"
"github.com/c4ei/YunSeokYeol/domain/consensus/utils/consensushashing"
peerpkg "github.com/c4ei/yunseokyeol/app/protocol/peer"
"github.com/c4ei/yunseokyeol/app/protocol/protocolerrors"
"github.com/c4ei/yunseokyeol/domain/consensus/model/externalapi"
"github.com/c4ei/yunseokyeol/domain/consensus/ruleerrors"
"github.com/c4ei/yunseokyeol/domain/consensus/utils/consensushashing"
"github.com/pkg/errors"
"github.com/c4ei/YunSeokYeol/app/appmessage"
"github.com/c4ei/yunseokyeol/app/appmessage"
)
// OnNewBlock updates the mempool after a new block arrival, and

View File

@ -1,6 +1,6 @@
package flowcontext
import "github.com/c4ei/YunSeokYeol/infrastructure/config"
import "github.com/c4ei/yunseokyeol/infrastructure/config"
// Config returns an instance of *config.Config associated to the flow context.
func (f *FlowContext) Config() *config.Config {

View File

@ -1,7 +1,7 @@
package flowcontext
import (
"github.com/c4ei/YunSeokYeol/domain"
"github.com/c4ei/yunseokyeol/domain"
)
// Domain returns the Domain object associated to the flow context.

View File

@ -5,9 +5,9 @@ import (
"strings"
"sync/atomic"
"github.com/c4ei/YunSeokYeol/infrastructure/network/netadapter/router"
"github.com/c4ei/yunseokyeol/infrastructure/network/netadapter/router"
"github.com/c4ei/YunSeokYeol/app/protocol/protocolerrors"
"github.com/c4ei/yunseokyeol/app/protocol/protocolerrors"
)
var (

View File

@ -4,18 +4,18 @@ import (
"sync"
"time"
"github.com/c4ei/YunSeokYeol/util/mstime"
"github.com/c4ei/yunseokyeol/util/mstime"
"github.com/c4ei/YunSeokYeol/domain/consensus/model/externalapi"
"github.com/c4ei/yunseokyeol/domain/consensus/model/externalapi"
"github.com/c4ei/YunSeokYeol/domain"
"github.com/c4ei/yunseokyeol/domain"
peerpkg "github.com/c4ei/YunSeokYeol/app/protocol/peer"
"github.com/c4ei/YunSeokYeol/infrastructure/config"
"github.com/c4ei/YunSeokYeol/infrastructure/network/addressmanager"
"github.com/c4ei/YunSeokYeol/infrastructure/network/connmanager"
"github.com/c4ei/YunSeokYeol/infrastructure/network/netadapter"
"github.com/c4ei/YunSeokYeol/infrastructure/network/netadapter/id"
peerpkg "github.com/c4ei/yunseokyeol/app/protocol/peer"
"github.com/c4ei/yunseokyeol/infrastructure/config"
"github.com/c4ei/yunseokyeol/infrastructure/network/addressmanager"
"github.com/c4ei/yunseokyeol/infrastructure/network/connmanager"
"github.com/c4ei/yunseokyeol/infrastructure/network/netadapter"
"github.com/c4ei/yunseokyeol/infrastructure/network/netadapter/id"
)
// OnNewBlockTemplateHandler is a handler function that's triggered when a new block template is available

View File

@ -1,7 +1,7 @@
package flowcontext
import (
"github.com/c4ei/YunSeokYeol/infrastructure/logger"
"github.com/c4ei/yunseokyeol/infrastructure/logger"
)
var log = logger.RegisterSubSystem("PROT")

View File

@ -1,11 +1,11 @@
package flowcontext
import (
"github.com/c4ei/YunSeokYeol/app/appmessage"
"github.com/c4ei/YunSeokYeol/app/protocol/common"
peerpkg "github.com/c4ei/YunSeokYeol/app/protocol/peer"
"github.com/c4ei/YunSeokYeol/infrastructure/network/connmanager"
"github.com/c4ei/YunSeokYeol/infrastructure/network/netadapter"
"github.com/c4ei/yunseokyeol/app/appmessage"
"github.com/c4ei/yunseokyeol/app/protocol/common"
peerpkg "github.com/c4ei/yunseokyeol/app/protocol/peer"
"github.com/c4ei/yunseokyeol/infrastructure/network/connmanager"
"github.com/c4ei/yunseokyeol/infrastructure/network/netadapter"
"github.com/pkg/errors"
)

View File

@ -1,11 +1,11 @@
package flowcontext
import (
"github.com/c4ei/YunSeokYeol/domain/consensus/model/externalapi"
"github.com/c4ei/YunSeokYeol/domain/consensus/ruleerrors"
"github.com/c4ei/YunSeokYeol/domain/consensus/utils/consensushashing"
"github.com/c4ei/YunSeokYeol/domain/consensus/utils/hashset"
"github.com/c4ei/YunSeokYeol/infrastructure/logger"
"github.com/c4ei/yunseokyeol/domain/consensus/model/externalapi"
"github.com/c4ei/yunseokyeol/domain/consensus/ruleerrors"
"github.com/c4ei/yunseokyeol/domain/consensus/utils/consensushashing"
"github.com/c4ei/yunseokyeol/domain/consensus/utils/hashset"
"github.com/c4ei/yunseokyeol/infrastructure/logger"
"github.com/pkg/errors"
)

View File

@ -3,7 +3,7 @@ package flowcontext
import (
"sync"
"github.com/c4ei/YunSeokYeol/domain/consensus/model/externalapi"
"github.com/c4ei/yunseokyeol/domain/consensus/model/externalapi"
)
// SharedRequestedBlocks is a data structure that is shared between peers that

View File

@ -3,7 +3,7 @@ package flowcontext
import (
"sync"
"github.com/c4ei/YunSeokYeol/domain/consensus/model/externalapi"
"github.com/c4ei/yunseokyeol/domain/consensus/model/externalapi"
)
// SharedRequestedTransactions is a data structure that is shared between peers that

View File

@ -3,9 +3,9 @@ package flowcontext
import (
"time"
"github.com/c4ei/YunSeokYeol/app/appmessage"
"github.com/c4ei/YunSeokYeol/domain/consensus/model/externalapi"
"github.com/c4ei/YunSeokYeol/domain/consensus/utils/consensushashing"
"github.com/c4ei/yunseokyeol/app/appmessage"
"github.com/c4ei/yunseokyeol/domain/consensus/model/externalapi"
"github.com/c4ei/yunseokyeol/domain/consensus/utils/consensushashing"
)
// TransactionIDPropagationInterval is the interval between transaction IDs propagations

View File

@ -3,18 +3,18 @@ package handshake
import (
"sync/atomic"
"github.com/c4ei/YunSeokYeol/domain"
"github.com/c4ei/yunseokyeol/domain"
"github.com/c4ei/YunSeokYeol/app/protocol/common"
"github.com/c4ei/YunSeokYeol/app/protocol/protocolerrors"
"github.com/c4ei/YunSeokYeol/infrastructure/network/addressmanager"
"github.com/c4ei/yunseokyeol/app/protocol/common"
"github.com/c4ei/yunseokyeol/app/protocol/protocolerrors"
"github.com/c4ei/yunseokyeol/infrastructure/network/addressmanager"
"github.com/c4ei/YunSeokYeol/infrastructure/config"
"github.com/c4ei/YunSeokYeol/infrastructure/network/netadapter"
"github.com/c4ei/yunseokyeol/infrastructure/config"
"github.com/c4ei/yunseokyeol/infrastructure/network/netadapter"
"github.com/c4ei/YunSeokYeol/app/appmessage"
peerpkg "github.com/c4ei/YunSeokYeol/app/protocol/peer"
routerpkg "github.com/c4ei/YunSeokYeol/infrastructure/network/netadapter/router"
"github.com/c4ei/yunseokyeol/app/appmessage"
peerpkg "github.com/c4ei/yunseokyeol/app/protocol/peer"
routerpkg "github.com/c4ei/yunseokyeol/infrastructure/network/netadapter/router"
"github.com/pkg/errors"
)

View File

@ -1,8 +1,8 @@
package handshake
import (
"github.com/c4ei/YunSeokYeol/infrastructure/logger"
"github.com/c4ei/YunSeokYeol/util/panics"
"github.com/c4ei/yunseokyeol/infrastructure/logger"
"github.com/c4ei/yunseokyeol/util/panics"
)
var log = logger.RegisterSubSystem("PROT")

View File

@ -1,12 +1,12 @@
package handshake
import (
"github.com/c4ei/YunSeokYeol/app/appmessage"
"github.com/c4ei/YunSeokYeol/app/protocol/common"
peerpkg "github.com/c4ei/YunSeokYeol/app/protocol/peer"
"github.com/c4ei/YunSeokYeol/app/protocol/protocolerrors"
"github.com/c4ei/YunSeokYeol/infrastructure/logger"
"github.com/c4ei/YunSeokYeol/infrastructure/network/netadapter/router"
"github.com/c4ei/yunseokyeol/app/appmessage"
"github.com/c4ei/yunseokyeol/app/protocol/common"
peerpkg "github.com/c4ei/yunseokyeol/app/protocol/peer"
"github.com/c4ei/yunseokyeol/app/protocol/protocolerrors"
"github.com/c4ei/yunseokyeol/infrastructure/logger"
"github.com/c4ei/yunseokyeol/infrastructure/network/netadapter/router"
"github.com/pkg/errors"
)

View File

@ -1,12 +1,12 @@
package handshake
import (
"github.com/c4ei/YunSeokYeol/app/appmessage"
"github.com/c4ei/YunSeokYeol/app/protocol/common"
peerpkg "github.com/c4ei/YunSeokYeol/app/protocol/peer"
"github.com/c4ei/YunSeokYeol/infrastructure/logger"
"github.com/c4ei/YunSeokYeol/infrastructure/network/netadapter/router"
"github.com/c4ei/YunSeokYeol/version"
"github.com/c4ei/yunseokyeol/app/appmessage"
"github.com/c4ei/yunseokyeol/app/protocol/common"
peerpkg "github.com/c4ei/yunseokyeol/app/protocol/peer"
"github.com/c4ei/yunseokyeol/infrastructure/logger"
"github.com/c4ei/yunseokyeol/infrastructure/network/netadapter/router"
"github.com/c4ei/yunseokyeol/version"
"github.com/pkg/errors"
)

View File

@ -1,8 +1,8 @@
package ready
import (
"github.com/c4ei/YunSeokYeol/infrastructure/logger"
"github.com/c4ei/YunSeokYeol/util/panics"
"github.com/c4ei/yunseokyeol/infrastructure/logger"
"github.com/c4ei/yunseokyeol/util/panics"
)
var log = logger.RegisterSubSystem("PROT")

View File

@ -3,12 +3,12 @@ package ready
import (
"sync/atomic"
"github.com/c4ei/YunSeokYeol/app/appmessage"
"github.com/c4ei/YunSeokYeol/app/protocol/common"
"github.com/c4ei/yunseokyeol/app/appmessage"
"github.com/c4ei/yunseokyeol/app/protocol/common"
peerpkg "github.com/c4ei/YunSeokYeol/app/protocol/peer"
"github.com/c4ei/YunSeokYeol/app/protocol/protocolerrors"
routerpkg "github.com/c4ei/YunSeokYeol/infrastructure/network/netadapter/router"
peerpkg "github.com/c4ei/yunseokyeol/app/protocol/peer"
"github.com/c4ei/yunseokyeol/app/protocol/protocolerrors"
routerpkg "github.com/c4ei/yunseokyeol/infrastructure/network/netadapter/router"
"github.com/pkg/errors"
)

View File

@ -1,12 +1,12 @@
package addressexchange
import (
"github.com/c4ei/YunSeokYeol/app/appmessage"
"github.com/c4ei/YunSeokYeol/app/protocol/common"
peerpkg "github.com/c4ei/YunSeokYeol/app/protocol/peer"
"github.com/c4ei/YunSeokYeol/app/protocol/protocolerrors"
"github.com/c4ei/YunSeokYeol/infrastructure/network/addressmanager"
"github.com/c4ei/YunSeokYeol/infrastructure/network/netadapter/router"
"github.com/c4ei/yunseokyeol/app/appmessage"
"github.com/c4ei/yunseokyeol/app/protocol/common"
peerpkg "github.com/c4ei/yunseokyeol/app/protocol/peer"
"github.com/c4ei/yunseokyeol/app/protocol/protocolerrors"
"github.com/c4ei/yunseokyeol/infrastructure/network/addressmanager"
"github.com/c4ei/yunseokyeol/infrastructure/network/netadapter/router"
)
// ReceiveAddressesContext is the interface for the context needed for the ReceiveAddresses flow.

View File

@ -3,9 +3,9 @@ package addressexchange
import (
"math/rand"
"github.com/c4ei/YunSeokYeol/app/appmessage"
"github.com/c4ei/YunSeokYeol/infrastructure/network/addressmanager"
"github.com/c4ei/YunSeokYeol/infrastructure/network/netadapter/router"
"github.com/c4ei/yunseokyeol/app/appmessage"
"github.com/c4ei/yunseokyeol/infrastructure/network/addressmanager"
"github.com/c4ei/yunseokyeol/infrastructure/network/netadapter/router"
)
// SendAddressesContext is the interface for the context needed for the SendAddresses flow.

View File

@ -3,7 +3,7 @@ package blockrelay
import (
"testing"
"github.com/c4ei/YunSeokYeol/infrastructure/network/netadapter/router"
"github.com/c4ei/yunseokyeol/infrastructure/network/netadapter/router"
)
func TestIBDBatchSizeLessThanRouteCapacity(t *testing.T) {

View File

@ -1,10 +1,10 @@
package blockrelay
import (
"github.com/c4ei/YunSeokYeol/app/appmessage"
"github.com/c4ei/YunSeokYeol/app/protocol/common"
"github.com/c4ei/YunSeokYeol/app/protocol/protocolerrors"
"github.com/c4ei/YunSeokYeol/domain/consensus/model/externalapi"
"github.com/c4ei/yunseokyeol/app/appmessage"
"github.com/c4ei/yunseokyeol/app/protocol/common"
"github.com/c4ei/yunseokyeol/app/protocol/protocolerrors"
"github.com/c4ei/yunseokyeol/domain/consensus/model/externalapi"
)
func (flow *handleRelayInvsFlow) sendGetBlockLocator(highHash *externalapi.DomainHash, limit uint32) error {

View File

@ -1,11 +1,11 @@
package blockrelay
import (
"github.com/c4ei/YunSeokYeol/app/appmessage"
"github.com/c4ei/YunSeokYeol/app/protocol/peer"
"github.com/c4ei/YunSeokYeol/app/protocol/protocolerrors"
"github.com/c4ei/YunSeokYeol/domain"
"github.com/c4ei/YunSeokYeol/infrastructure/network/netadapter/router"
"github.com/c4ei/yunseokyeol/app/appmessage"
"github.com/c4ei/yunseokyeol/app/protocol/peer"
"github.com/c4ei/yunseokyeol/app/protocol/protocolerrors"
"github.com/c4ei/yunseokyeol/domain"
"github.com/c4ei/yunseokyeol/infrastructure/network/netadapter/router"
)
// HandleIBDBlockLocatorContext is the interface for the context needed for the HandleIBDBlockLocator flow.

View File

@ -1,10 +1,10 @@
package blockrelay
import (
"github.com/c4ei/YunSeokYeol/app/appmessage"
"github.com/c4ei/YunSeokYeol/app/protocol/protocolerrors"
"github.com/c4ei/YunSeokYeol/domain"
"github.com/c4ei/YunSeokYeol/infrastructure/network/netadapter/router"
"github.com/c4ei/yunseokyeol/app/appmessage"
"github.com/c4ei/yunseokyeol/app/protocol/protocolerrors"
"github.com/c4ei/yunseokyeol/domain"
"github.com/c4ei/yunseokyeol/infrastructure/network/netadapter/router"
"github.com/pkg/errors"
)

View File

@ -1,12 +1,12 @@
package blockrelay
import (
"github.com/c4ei/YunSeokYeol/app/appmessage"
"github.com/c4ei/YunSeokYeol/app/protocol/protocolerrors"
"github.com/c4ei/YunSeokYeol/domain"
"github.com/c4ei/YunSeokYeol/domain/consensus/model"
"github.com/c4ei/YunSeokYeol/domain/consensus/model/externalapi"
"github.com/c4ei/YunSeokYeol/infrastructure/network/netadapter/router"
"github.com/c4ei/yunseokyeol/app/appmessage"
"github.com/c4ei/yunseokyeol/app/protocol/protocolerrors"
"github.com/c4ei/yunseokyeol/domain"
"github.com/c4ei/yunseokyeol/domain/consensus/model"
"github.com/c4ei/yunseokyeol/domain/consensus/model/externalapi"
"github.com/c4ei/yunseokyeol/infrastructure/network/netadapter/router"
"github.com/pkg/errors"
)

View File

@ -3,13 +3,13 @@ package blockrelay
import (
"sync/atomic"
"github.com/c4ei/YunSeokYeol/app/appmessage"
peerpkg "github.com/c4ei/YunSeokYeol/app/protocol/peer"
"github.com/c4ei/YunSeokYeol/app/protocol/protocolerrors"
"github.com/c4ei/YunSeokYeol/domain"
"github.com/c4ei/YunSeokYeol/domain/consensus/model/externalapi"
"github.com/c4ei/YunSeokYeol/infrastructure/config"
"github.com/c4ei/YunSeokYeol/infrastructure/network/netadapter/router"
"github.com/c4ei/yunseokyeol/app/appmessage"
peerpkg "github.com/c4ei/yunseokyeol/app/protocol/peer"
"github.com/c4ei/yunseokyeol/app/protocol/protocolerrors"
"github.com/c4ei/yunseokyeol/domain"
"github.com/c4ei/yunseokyeol/domain/consensus/model/externalapi"
"github.com/c4ei/yunseokyeol/infrastructure/config"
"github.com/c4ei/yunseokyeol/infrastructure/network/netadapter/router"
)
// PruningPointAndItsAnticoneRequestsContext is the interface for the context needed for the HandlePruningPointAndItsAnticoneRequests flow.

View File

@ -1,10 +1,10 @@
package blockrelay
import (
"github.com/c4ei/YunSeokYeol/app/appmessage"
peerpkg "github.com/c4ei/YunSeokYeol/app/protocol/peer"
"github.com/c4ei/YunSeokYeol/domain"
"github.com/c4ei/YunSeokYeol/infrastructure/network/netadapter/router"
"github.com/c4ei/yunseokyeol/app/appmessage"
peerpkg "github.com/c4ei/yunseokyeol/app/protocol/peer"
"github.com/c4ei/yunseokyeol/domain"
"github.com/c4ei/yunseokyeol/infrastructure/network/netadapter/router"
)
// PruningPointProofRequestsContext is the interface for the context needed for the HandlePruningPointProofRequests flow.

View File

@ -1,11 +1,11 @@
package blockrelay
import (
"github.com/c4ei/YunSeokYeol/app/appmessage"
peerpkg "github.com/c4ei/YunSeokYeol/app/protocol/peer"
"github.com/c4ei/YunSeokYeol/app/protocol/protocolerrors"
"github.com/c4ei/YunSeokYeol/domain"
"github.com/c4ei/YunSeokYeol/infrastructure/network/netadapter/router"
"github.com/c4ei/yunseokyeol/app/appmessage"
peerpkg "github.com/c4ei/yunseokyeol/app/protocol/peer"
"github.com/c4ei/yunseokyeol/app/protocol/protocolerrors"
"github.com/c4ei/yunseokyeol/domain"
"github.com/c4ei/yunseokyeol/infrastructure/network/netadapter/router"
"github.com/pkg/errors"
)

View File

@ -1,19 +1,19 @@
package blockrelay
import (
"github.com/c4ei/YunSeokYeol/app/appmessage"
"github.com/c4ei/YunSeokYeol/app/protocol/common"
"github.com/c4ei/YunSeokYeol/app/protocol/flowcontext"
peerpkg "github.com/c4ei/YunSeokYeol/app/protocol/peer"
"github.com/c4ei/YunSeokYeol/app/protocol/protocolerrors"
"github.com/c4ei/YunSeokYeol/domain"
"github.com/c4ei/YunSeokYeol/domain/consensus/model"
"github.com/c4ei/YunSeokYeol/domain/consensus/model/externalapi"
"github.com/c4ei/YunSeokYeol/domain/consensus/ruleerrors"
"github.com/c4ei/YunSeokYeol/domain/consensus/utils/consensushashing"
"github.com/c4ei/YunSeokYeol/domain/consensus/utils/hashset"
"github.com/c4ei/YunSeokYeol/infrastructure/config"
"github.com/c4ei/YunSeokYeol/infrastructure/network/netadapter/router"
"github.com/c4ei/yunseokyeol/app/appmessage"
"github.com/c4ei/yunseokyeol/app/protocol/common"
"github.com/c4ei/yunseokyeol/app/protocol/flowcontext"
peerpkg "github.com/c4ei/yunseokyeol/app/protocol/peer"
"github.com/c4ei/yunseokyeol/app/protocol/protocolerrors"
"github.com/c4ei/yunseokyeol/domain"
"github.com/c4ei/yunseokyeol/domain/consensus/model"
"github.com/c4ei/yunseokyeol/domain/consensus/model/externalapi"
"github.com/c4ei/yunseokyeol/domain/consensus/ruleerrors"
"github.com/c4ei/yunseokyeol/domain/consensus/utils/consensushashing"
"github.com/c4ei/yunseokyeol/domain/consensus/utils/hashset"
"github.com/c4ei/yunseokyeol/infrastructure/config"
"github.com/c4ei/yunseokyeol/infrastructure/network/netadapter/router"
"github.com/pkg/errors"
)

View File

@ -3,13 +3,13 @@ package blockrelay
import (
"sort"
"github.com/c4ei/YunSeokYeol/app/appmessage"
"github.com/c4ei/YunSeokYeol/app/protocol/peer"
"github.com/c4ei/YunSeokYeol/app/protocol/protocolerrors"
"github.com/c4ei/YunSeokYeol/domain"
"github.com/c4ei/YunSeokYeol/domain/consensus/model/externalapi"
"github.com/c4ei/YunSeokYeol/infrastructure/config"
"github.com/c4ei/YunSeokYeol/infrastructure/network/netadapter/router"
"github.com/c4ei/yunseokyeol/app/appmessage"
"github.com/c4ei/yunseokyeol/app/protocol/peer"
"github.com/c4ei/yunseokyeol/app/protocol/protocolerrors"
"github.com/c4ei/yunseokyeol/domain"
"github.com/c4ei/yunseokyeol/domain/consensus/model/externalapi"
"github.com/c4ei/yunseokyeol/infrastructure/config"
"github.com/c4ei/yunseokyeol/infrastructure/network/netadapter/router"
)
// RequestAnticoneContext is the interface for the context needed for the HandleRequestHeaders flow.

View File

@ -1,11 +1,11 @@
package blockrelay
import (
"github.com/c4ei/YunSeokYeol/app/appmessage"
"github.com/c4ei/YunSeokYeol/app/protocol/protocolerrors"
"github.com/c4ei/YunSeokYeol/domain"
"github.com/c4ei/YunSeokYeol/domain/consensus/model/externalapi"
"github.com/c4ei/YunSeokYeol/infrastructure/network/netadapter/router"
"github.com/c4ei/yunseokyeol/app/appmessage"
"github.com/c4ei/yunseokyeol/app/protocol/protocolerrors"
"github.com/c4ei/yunseokyeol/domain"
"github.com/c4ei/yunseokyeol/domain/consensus/model/externalapi"
"github.com/c4ei/yunseokyeol/infrastructure/network/netadapter/router"
)
// RequestBlockLocatorContext is the interface for the context needed for the HandleRequestBlockLocator flow.

View File

@ -1,13 +1,13 @@
package blockrelay
import (
"github.com/c4ei/YunSeokYeol/app/protocol/peer"
"github.com/c4ei/YunSeokYeol/app/protocol/protocolerrors"
"github.com/c4ei/YunSeokYeol/domain/consensus/model/externalapi"
"github.com/c4ei/yunseokyeol/app/protocol/peer"
"github.com/c4ei/yunseokyeol/app/protocol/protocolerrors"
"github.com/c4ei/yunseokyeol/domain/consensus/model/externalapi"
"github.com/c4ei/YunSeokYeol/app/appmessage"
"github.com/c4ei/YunSeokYeol/domain"
"github.com/c4ei/YunSeokYeol/infrastructure/network/netadapter/router"
"github.com/c4ei/yunseokyeol/app/appmessage"
"github.com/c4ei/yunseokyeol/domain"
"github.com/c4ei/yunseokyeol/infrastructure/network/netadapter/router"
)
// This constant must be equal at both syncer and syncee. Therefore, never (!!) change this constant unless a new p2p

View File

@ -3,14 +3,14 @@ package blockrelay
import (
"errors"
"github.com/c4ei/YunSeokYeol/app/appmessage"
"github.com/c4ei/YunSeokYeol/app/protocol/common"
"github.com/c4ei/YunSeokYeol/app/protocol/protocolerrors"
"github.com/c4ei/YunSeokYeol/domain"
"github.com/c4ei/YunSeokYeol/domain/consensus/model/externalapi"
"github.com/c4ei/YunSeokYeol/domain/consensus/ruleerrors"
"github.com/c4ei/YunSeokYeol/infrastructure/logger"
"github.com/c4ei/YunSeokYeol/infrastructure/network/netadapter/router"
"github.com/c4ei/yunseokyeol/app/appmessage"
"github.com/c4ei/yunseokyeol/app/protocol/common"
"github.com/c4ei/yunseokyeol/app/protocol/protocolerrors"
"github.com/c4ei/yunseokyeol/domain"
"github.com/c4ei/yunseokyeol/domain/consensus/model/externalapi"
"github.com/c4ei/yunseokyeol/domain/consensus/ruleerrors"
"github.com/c4ei/yunseokyeol/infrastructure/logger"
"github.com/c4ei/yunseokyeol/infrastructure/network/netadapter/router"
)
// HandleRequestPruningPointUTXOSetContext is the interface for the context needed for the HandleRequestPruningPointUTXOSet flow.

View File

@ -4,17 +4,17 @@ import (
"fmt"
"time"
"github.com/c4ei/YunSeokYeol/app/appmessage"
"github.com/c4ei/YunSeokYeol/app/protocol/common"
peerpkg "github.com/c4ei/YunSeokYeol/app/protocol/peer"
"github.com/c4ei/YunSeokYeol/app/protocol/protocolerrors"
"github.com/c4ei/YunSeokYeol/domain"
"github.com/c4ei/YunSeokYeol/domain/consensus/model/externalapi"
"github.com/c4ei/YunSeokYeol/domain/consensus/ruleerrors"
"github.com/c4ei/YunSeokYeol/domain/consensus/utils/consensushashing"
"github.com/c4ei/YunSeokYeol/infrastructure/config"
"github.com/c4ei/YunSeokYeol/infrastructure/logger"
"github.com/c4ei/YunSeokYeol/infrastructure/network/netadapter/router"
"github.com/c4ei/yunseokyeol/app/appmessage"
"github.com/c4ei/yunseokyeol/app/protocol/common"
peerpkg "github.com/c4ei/yunseokyeol/app/protocol/peer"
"github.com/c4ei/yunseokyeol/app/protocol/protocolerrors"
"github.com/c4ei/yunseokyeol/domain"
"github.com/c4ei/yunseokyeol/domain/consensus/model/externalapi"
"github.com/c4ei/yunseokyeol/domain/consensus/ruleerrors"
"github.com/c4ei/yunseokyeol/domain/consensus/utils/consensushashing"
"github.com/c4ei/yunseokyeol/infrastructure/config"
"github.com/c4ei/yunseokyeol/infrastructure/logger"
"github.com/c4ei/yunseokyeol/infrastructure/network/netadapter/router"
"github.com/pkg/errors"
)

View File

@ -4,12 +4,12 @@ import (
"fmt"
"time"
"github.com/c4ei/YunSeokYeol/app/appmessage"
"github.com/c4ei/YunSeokYeol/app/protocol/common"
"github.com/c4ei/YunSeokYeol/app/protocol/protocolerrors"
"github.com/c4ei/YunSeokYeol/domain/consensus/model/externalapi"
"github.com/c4ei/YunSeokYeol/domain/consensus/ruleerrors"
"github.com/c4ei/YunSeokYeol/domain/consensus/utils/consensushashing"
"github.com/c4ei/yunseokyeol/app/appmessage"
"github.com/c4ei/yunseokyeol/app/protocol/common"
"github.com/c4ei/yunseokyeol/app/protocol/protocolerrors"
"github.com/c4ei/yunseokyeol/domain/consensus/model/externalapi"
"github.com/c4ei/yunseokyeol/domain/consensus/ruleerrors"
"github.com/c4ei/yunseokyeol/domain/consensus/utils/consensushashing"
"github.com/pkg/errors"
)

View File

@ -1,8 +1,8 @@
package blockrelay
import (
"github.com/c4ei/YunSeokYeol/infrastructure/logger"
"github.com/c4ei/YunSeokYeol/util/panics"
"github.com/c4ei/yunseokyeol/infrastructure/logger"
"github.com/c4ei/yunseokyeol/util/panics"
)
var log = logger.RegisterSubSystem("PROT")

View File

@ -1,11 +1,11 @@
package blockrelay
import (
"github.com/c4ei/YunSeokYeol/app/appmessage"
peerpkg "github.com/c4ei/YunSeokYeol/app/protocol/peer"
"github.com/c4ei/YunSeokYeol/domain"
"github.com/c4ei/YunSeokYeol/infrastructure/config"
"github.com/c4ei/YunSeokYeol/infrastructure/network/netadapter/router"
"github.com/c4ei/yunseokyeol/app/appmessage"
peerpkg "github.com/c4ei/yunseokyeol/app/protocol/peer"
"github.com/c4ei/yunseokyeol/domain"
"github.com/c4ei/yunseokyeol/infrastructure/config"
"github.com/c4ei/yunseokyeol/infrastructure/network/netadapter/router"
)
// SendVirtualSelectedParentInvContext is the interface for the context needed for the SendVirtualSelectedParentInv flow.

View File

@ -1,8 +1,8 @@
package ping
import (
"github.com/c4ei/YunSeokYeol/app/appmessage"
"github.com/c4ei/YunSeokYeol/infrastructure/network/netadapter/router"
"github.com/c4ei/yunseokyeol/app/appmessage"
"github.com/c4ei/yunseokyeol/infrastructure/network/netadapter/router"
)
// ReceivePingsContext is the interface for the context needed for the ReceivePings flow.

View File

@ -3,15 +3,15 @@ package ping
import (
"time"
"github.com/c4ei/YunSeokYeol/app/protocol/common"
"github.com/c4ei/YunSeokYeol/app/protocol/flowcontext"
"github.com/c4ei/yunseokyeol/app/protocol/common"
"github.com/c4ei/yunseokyeol/app/protocol/flowcontext"
"github.com/pkg/errors"
"github.com/c4ei/YunSeokYeol/app/appmessage"
peerpkg "github.com/c4ei/YunSeokYeol/app/protocol/peer"
"github.com/c4ei/YunSeokYeol/app/protocol/protocolerrors"
"github.com/c4ei/YunSeokYeol/infrastructure/network/netadapter/router"
"github.com/c4ei/YunSeokYeol/util/random"
"github.com/c4ei/yunseokyeol/app/appmessage"
peerpkg "github.com/c4ei/yunseokyeol/app/protocol/peer"
"github.com/c4ei/yunseokyeol/app/protocol/protocolerrors"
"github.com/c4ei/yunseokyeol/infrastructure/network/netadapter/router"
"github.com/c4ei/yunseokyeol/util/random"
)
// SendPingsContext is the interface for the context needed for the SendPings flow.

View File

@ -1,16 +1,16 @@
package v5
import (
"github.com/c4ei/YunSeokYeol/app/appmessage"
"github.com/c4ei/YunSeokYeol/app/protocol/common"
"github.com/c4ei/YunSeokYeol/app/protocol/flowcontext"
"github.com/c4ei/YunSeokYeol/app/protocol/flows/v5/addressexchange"
"github.com/c4ei/YunSeokYeol/app/protocol/flows/v5/blockrelay"
"github.com/c4ei/YunSeokYeol/app/protocol/flows/v5/ping"
"github.com/c4ei/YunSeokYeol/app/protocol/flows/v5/rejects"
"github.com/c4ei/YunSeokYeol/app/protocol/flows/v5/transactionrelay"
peerpkg "github.com/c4ei/YunSeokYeol/app/protocol/peer"
routerpkg "github.com/c4ei/YunSeokYeol/infrastructure/network/netadapter/router"
"github.com/c4ei/yunseokyeol/app/appmessage"
"github.com/c4ei/yunseokyeol/app/protocol/common"
"github.com/c4ei/yunseokyeol/app/protocol/flowcontext"
"github.com/c4ei/yunseokyeol/app/protocol/flows/v5/addressexchange"
"github.com/c4ei/yunseokyeol/app/protocol/flows/v5/blockrelay"
"github.com/c4ei/yunseokyeol/app/protocol/flows/v5/ping"
"github.com/c4ei/yunseokyeol/app/protocol/flows/v5/rejects"
"github.com/c4ei/yunseokyeol/app/protocol/flows/v5/transactionrelay"
peerpkg "github.com/c4ei/yunseokyeol/app/protocol/peer"
routerpkg "github.com/c4ei/yunseokyeol/infrastructure/network/netadapter/router"
)
type protocolManager interface {

View File

@ -1,9 +1,9 @@
package rejects
import (
"github.com/c4ei/YunSeokYeol/app/appmessage"
"github.com/c4ei/YunSeokYeol/app/protocol/protocolerrors"
"github.com/c4ei/YunSeokYeol/infrastructure/network/netadapter/router"
"github.com/c4ei/yunseokyeol/app/appmessage"
"github.com/c4ei/yunseokyeol/app/protocol/protocolerrors"
"github.com/c4ei/yunseokyeol/infrastructure/network/netadapter/router"
)
// HandleRejectsContext is the interface for the context needed for the HandleRejects flow.

View File

@ -4,7 +4,7 @@ import (
"strings"
"testing"
"github.com/c4ei/YunSeokYeol/app/protocol/protocolerrors"
"github.com/c4ei/yunseokyeol/app/protocol/protocolerrors"
"github.com/pkg/errors"
)

View File

@ -4,14 +4,14 @@ import (
"testing"
"time"
"github.com/c4ei/YunSeokYeol/app/protocol/flows/v5/addressexchange"
"github.com/c4ei/yunseokyeol/app/protocol/flows/v5/addressexchange"
"github.com/c4ei/YunSeokYeol/app/appmessage"
peerpkg "github.com/c4ei/YunSeokYeol/app/protocol/peer"
"github.com/c4ei/YunSeokYeol/domain/consensus"
"github.com/c4ei/YunSeokYeol/domain/consensus/utils/testutils"
"github.com/c4ei/YunSeokYeol/infrastructure/network/addressmanager"
"github.com/c4ei/YunSeokYeol/infrastructure/network/netadapter/router"
"github.com/c4ei/yunseokyeol/app/appmessage"
peerpkg "github.com/c4ei/yunseokyeol/app/protocol/peer"
"github.com/c4ei/yunseokyeol/domain/consensus"
"github.com/c4ei/yunseokyeol/domain/consensus/utils/testutils"
"github.com/c4ei/yunseokyeol/infrastructure/network/addressmanager"
"github.com/c4ei/yunseokyeol/infrastructure/network/netadapter/router"
)
type fakeReceiveAddressesContext struct{}

View File

@ -1,16 +1,16 @@
package transactionrelay
import (
"github.com/c4ei/YunSeokYeol/app/appmessage"
"github.com/c4ei/YunSeokYeol/app/protocol/common"
"github.com/c4ei/YunSeokYeol/app/protocol/flowcontext"
"github.com/c4ei/YunSeokYeol/app/protocol/protocolerrors"
"github.com/c4ei/YunSeokYeol/domain"
"github.com/c4ei/YunSeokYeol/domain/consensus/model/externalapi"
"github.com/c4ei/YunSeokYeol/domain/consensus/utils/consensushashing"
"github.com/c4ei/YunSeokYeol/domain/miningmanager/mempool"
"github.com/c4ei/YunSeokYeol/infrastructure/network/netadapter"
"github.com/c4ei/YunSeokYeol/infrastructure/network/netadapter/router"
"github.com/c4ei/yunseokyeol/app/appmessage"
"github.com/c4ei/yunseokyeol/app/protocol/common"
"github.com/c4ei/yunseokyeol/app/protocol/flowcontext"
"github.com/c4ei/yunseokyeol/app/protocol/protocolerrors"
"github.com/c4ei/yunseokyeol/domain"
"github.com/c4ei/yunseokyeol/domain/consensus/model/externalapi"
"github.com/c4ei/yunseokyeol/domain/consensus/utils/consensushashing"
"github.com/c4ei/yunseokyeol/domain/miningmanager/mempool"
"github.com/c4ei/yunseokyeol/infrastructure/network/netadapter"
"github.com/c4ei/yunseokyeol/infrastructure/network/netadapter/router"
"github.com/pkg/errors"
)

View File

@ -5,22 +5,22 @@ import (
"strings"
"testing"
"github.com/c4ei/YunSeokYeol/app/protocol/flowcontext"
"github.com/c4ei/YunSeokYeol/app/protocol/flows/v5/transactionrelay"
"github.com/c4ei/yunseokyeol/app/protocol/flowcontext"
"github.com/c4ei/yunseokyeol/app/protocol/flows/v5/transactionrelay"
"github.com/c4ei/YunSeokYeol/app/protocol/protocolerrors"
"github.com/c4ei/YunSeokYeol/domain"
"github.com/c4ei/YunSeokYeol/domain/consensus"
"github.com/c4ei/YunSeokYeol/domain/consensus/model/externalapi"
"github.com/c4ei/YunSeokYeol/domain/consensus/utils/testutils"
"github.com/c4ei/YunSeokYeol/domain/miningmanager/mempool"
"github.com/c4ei/YunSeokYeol/infrastructure/logger"
"github.com/c4ei/YunSeokYeol/util/panics"
"github.com/c4ei/yunseokyeol/app/protocol/protocolerrors"
"github.com/c4ei/yunseokyeol/domain"
"github.com/c4ei/yunseokyeol/domain/consensus"
"github.com/c4ei/yunseokyeol/domain/consensus/model/externalapi"
"github.com/c4ei/yunseokyeol/domain/consensus/utils/testutils"
"github.com/c4ei/yunseokyeol/domain/miningmanager/mempool"
"github.com/c4ei/yunseokyeol/infrastructure/logger"
"github.com/c4ei/yunseokyeol/util/panics"
"github.com/c4ei/YunSeokYeol/app/appmessage"
"github.com/c4ei/YunSeokYeol/infrastructure/config"
"github.com/c4ei/YunSeokYeol/infrastructure/network/netadapter"
"github.com/c4ei/YunSeokYeol/infrastructure/network/netadapter/router"
"github.com/c4ei/yunseokyeol/app/appmessage"
"github.com/c4ei/yunseokyeol/infrastructure/config"
"github.com/c4ei/yunseokyeol/infrastructure/network/netadapter"
"github.com/c4ei/yunseokyeol/infrastructure/network/netadapter/router"
)
type mocTransactionsRelayContext struct {

View File

@ -1,8 +1,8 @@
package transactionrelay
import (
"github.com/c4ei/YunSeokYeol/app/appmessage"
"github.com/c4ei/YunSeokYeol/infrastructure/network/netadapter/router"
"github.com/c4ei/yunseokyeol/app/appmessage"
"github.com/c4ei/yunseokyeol/infrastructure/network/netadapter/router"
)
type handleRequestedTransactionsFlow struct {

View File

@ -3,20 +3,20 @@ package transactionrelay_test
import (
"testing"
"github.com/c4ei/YunSeokYeol/app/protocol/flowcontext"
"github.com/c4ei/YunSeokYeol/app/protocol/flows/v5/transactionrelay"
"github.com/c4ei/yunseokyeol/app/protocol/flowcontext"
"github.com/c4ei/yunseokyeol/app/protocol/flows/v5/transactionrelay"
"github.com/c4ei/YunSeokYeol/app/appmessage"
"github.com/c4ei/YunSeokYeol/domain"
"github.com/c4ei/YunSeokYeol/domain/consensus"
"github.com/c4ei/YunSeokYeol/domain/consensus/model/externalapi"
"github.com/c4ei/YunSeokYeol/domain/consensus/utils/testutils"
"github.com/c4ei/YunSeokYeol/domain/miningmanager/mempool"
"github.com/c4ei/YunSeokYeol/infrastructure/config"
"github.com/c4ei/YunSeokYeol/infrastructure/logger"
"github.com/c4ei/YunSeokYeol/infrastructure/network/netadapter"
"github.com/c4ei/YunSeokYeol/infrastructure/network/netadapter/router"
"github.com/c4ei/YunSeokYeol/util/panics"
"github.com/c4ei/yunseokyeol/app/appmessage"
"github.com/c4ei/yunseokyeol/domain"
"github.com/c4ei/yunseokyeol/domain/consensus"
"github.com/c4ei/yunseokyeol/domain/consensus/model/externalapi"
"github.com/c4ei/yunseokyeol/domain/consensus/utils/testutils"
"github.com/c4ei/yunseokyeol/domain/miningmanager/mempool"
"github.com/c4ei/yunseokyeol/infrastructure/config"
"github.com/c4ei/yunseokyeol/infrastructure/logger"
"github.com/c4ei/yunseokyeol/infrastructure/network/netadapter"
"github.com/c4ei/yunseokyeol/infrastructure/network/netadapter/router"
"github.com/c4ei/yunseokyeol/util/panics"
"github.com/pkg/errors"
)

View File

@ -1,8 +1,8 @@
package protocol
import (
"github.com/c4ei/YunSeokYeol/infrastructure/logger"
"github.com/c4ei/YunSeokYeol/util/panics"
"github.com/c4ei/yunseokyeol/infrastructure/logger"
"github.com/c4ei/yunseokyeol/util/panics"
)
var log = logger.RegisterSubSystem("PROT")

View File

@ -5,20 +5,20 @@ import (
"sync"
"sync/atomic"
"github.com/c4ei/YunSeokYeol/app/protocol/common"
"github.com/c4ei/yunseokyeol/app/protocol/common"
"github.com/pkg/errors"
"github.com/c4ei/YunSeokYeol/domain"
"github.com/c4ei/yunseokyeol/domain"
"github.com/c4ei/YunSeokYeol/domain/consensus/model/externalapi"
"github.com/c4ei/yunseokyeol/domain/consensus/model/externalapi"
"github.com/c4ei/YunSeokYeol/app/protocol/flowcontext"
peerpkg "github.com/c4ei/YunSeokYeol/app/protocol/peer"
"github.com/c4ei/YunSeokYeol/infrastructure/config"
"github.com/c4ei/YunSeokYeol/infrastructure/network/addressmanager"
"github.com/c4ei/YunSeokYeol/infrastructure/network/connmanager"
"github.com/c4ei/YunSeokYeol/infrastructure/network/netadapter"
"github.com/c4ei/yunseokyeol/app/protocol/flowcontext"
peerpkg "github.com/c4ei/yunseokyeol/app/protocol/peer"
"github.com/c4ei/yunseokyeol/infrastructure/config"
"github.com/c4ei/yunseokyeol/infrastructure/network/addressmanager"
"github.com/c4ei/yunseokyeol/infrastructure/network/connmanager"
"github.com/c4ei/yunseokyeol/infrastructure/network/netadapter"
)
// Manager manages the p2p protocol

View File

@ -1,7 +1,7 @@
package peer
import (
"github.com/c4ei/YunSeokYeol/infrastructure/logger"
"github.com/c4ei/yunseokyeol/infrastructure/logger"
)
var log = logger.RegisterSubSystem("PROT")

View File

@ -4,13 +4,13 @@ import (
"sync"
"time"
"github.com/c4ei/YunSeokYeol/domain/consensus/model/externalapi"
"github.com/c4ei/YunSeokYeol/infrastructure/network/netadapter"
"github.com/c4ei/yunseokyeol/domain/consensus/model/externalapi"
"github.com/c4ei/yunseokyeol/infrastructure/network/netadapter"
"github.com/c4ei/YunSeokYeol/app/appmessage"
"github.com/c4ei/YunSeokYeol/infrastructure/network/netadapter/id"
mathUtil "github.com/c4ei/YunSeokYeol/util/math"
"github.com/c4ei/YunSeokYeol/util/mstime"
"github.com/c4ei/yunseokyeol/app/appmessage"
"github.com/c4ei/yunseokyeol/infrastructure/network/netadapter/id"
mathUtil "github.com/c4ei/yunseokyeol/util/math"
"github.com/c4ei/yunseokyeol/util/mstime"
)
// Peer holds data about a peer.

View File

@ -4,18 +4,18 @@ import (
"sync"
"sync/atomic"
"github.com/c4ei/YunSeokYeol/app/protocol/common"
"github.com/c4ei/YunSeokYeol/app/protocol/flows/ready"
"github.com/c4ei/yunseokyeol/app/protocol/common"
"github.com/c4ei/yunseokyeol/app/protocol/flows/ready"
v5 "github.com/kaspanet/kaspad/app/protocol/flows/v5"
"github.com/c4ei/YunSeokYeol/app/appmessage"
"github.com/c4ei/YunSeokYeol/app/protocol/flows/handshake"
peerpkg "github.com/c4ei/YunSeokYeol/app/protocol/peer"
"github.com/c4ei/YunSeokYeol/app/protocol/protocolerrors"
"github.com/c4ei/YunSeokYeol/infrastructure/network/addressmanager"
"github.com/c4ei/YunSeokYeol/infrastructure/network/connmanager"
"github.com/c4ei/YunSeokYeol/infrastructure/network/netadapter"
routerpkg "github.com/c4ei/YunSeokYeol/infrastructure/network/netadapter/router"
"github.com/c4ei/yunseokyeol/app/appmessage"
"github.com/c4ei/yunseokyeol/app/protocol/flows/handshake"
peerpkg "github.com/c4ei/yunseokyeol/app/protocol/peer"
"github.com/c4ei/yunseokyeol/app/protocol/protocolerrors"
"github.com/c4ei/yunseokyeol/infrastructure/network/addressmanager"
"github.com/c4ei/yunseokyeol/infrastructure/network/connmanager"
"github.com/c4ei/yunseokyeol/infrastructure/network/netadapter"
routerpkg "github.com/c4ei/yunseokyeol/infrastructure/network/netadapter/router"
"github.com/pkg/errors"
)

View File

@ -1,7 +1,7 @@
package protocolerrors
import (
"github.com/c4ei/YunSeokYeol/domain/consensus/ruleerrors"
"github.com/c4ei/yunseokyeol/domain/consensus/ruleerrors"
"github.com/pkg/errors"
)

View File

@ -1,8 +1,8 @@
package rpc
import (
"github.com/c4ei/YunSeokYeol/infrastructure/logger"
"github.com/c4ei/YunSeokYeol/util/panics"
"github.com/c4ei/yunseokyeol/infrastructure/logger"
"github.com/c4ei/yunseokyeol/util/panics"
)
var log = logger.RegisterSubSystem("RPCS")

View File

@ -1,17 +1,17 @@
package rpc
import (
"github.com/c4ei/YunSeokYeol/app/appmessage"
"github.com/c4ei/YunSeokYeol/app/protocol"
"github.com/c4ei/YunSeokYeol/app/rpc/rpccontext"
"github.com/c4ei/YunSeokYeol/domain"
"github.com/c4ei/YunSeokYeol/domain/consensus/model/externalapi"
"github.com/c4ei/YunSeokYeol/domain/utxoindex"
"github.com/c4ei/YunSeokYeol/infrastructure/config"
"github.com/c4ei/YunSeokYeol/infrastructure/logger"
"github.com/c4ei/YunSeokYeol/infrastructure/network/addressmanager"
"github.com/c4ei/YunSeokYeol/infrastructure/network/connmanager"
"github.com/c4ei/YunSeokYeol/infrastructure/network/netadapter"
"github.com/c4ei/yunseokyeol/app/appmessage"
"github.com/c4ei/yunseokyeol/app/protocol"
"github.com/c4ei/yunseokyeol/app/rpc/rpccontext"
"github.com/c4ei/yunseokyeol/domain"
"github.com/c4ei/yunseokyeol/domain/consensus/model/externalapi"
"github.com/c4ei/yunseokyeol/domain/utxoindex"
"github.com/c4ei/yunseokyeol/infrastructure/config"
"github.com/c4ei/yunseokyeol/infrastructure/logger"
"github.com/c4ei/yunseokyeol/infrastructure/network/addressmanager"
"github.com/c4ei/yunseokyeol/infrastructure/network/connmanager"
"github.com/c4ei/yunseokyeol/infrastructure/network/netadapter"
"github.com/pkg/errors"
)

View File

@ -1,11 +1,11 @@
package rpc
import (
"github.com/c4ei/YunSeokYeol/app/appmessage"
"github.com/c4ei/YunSeokYeol/app/rpc/rpccontext"
"github.com/c4ei/YunSeokYeol/app/rpc/rpchandlers"
"github.com/c4ei/YunSeokYeol/infrastructure/network/netadapter"
"github.com/c4ei/YunSeokYeol/infrastructure/network/netadapter/router"
"github.com/c4ei/yunseokyeol/app/appmessage"
"github.com/c4ei/yunseokyeol/app/rpc/rpccontext"
"github.com/c4ei/yunseokyeol/app/rpc/rpchandlers"
"github.com/c4ei/yunseokyeol/infrastructure/network/netadapter"
"github.com/c4ei/yunseokyeol/infrastructure/network/netadapter/router"
"github.com/pkg/errors"
)

View File

@ -1,9 +1,9 @@
package rpccontext
import (
"github.com/c4ei/YunSeokYeol/app/appmessage"
"github.com/c4ei/YunSeokYeol/domain/consensus/model/externalapi"
"github.com/c4ei/YunSeokYeol/domain/consensus/utils/consensushashing"
"github.com/c4ei/yunseokyeol/app/appmessage"
"github.com/c4ei/yunseokyeol/domain/consensus/model/externalapi"
"github.com/c4ei/yunseokyeol/domain/consensus/utils/consensushashing"
)
// ConvertVirtualSelectedParentChainChangesToChainChangedNotificationMessage converts

View File

@ -1,13 +1,13 @@
package rpccontext
import (
"github.com/c4ei/YunSeokYeol/app/protocol"
"github.com/c4ei/YunSeokYeol/domain"
"github.com/c4ei/YunSeokYeol/domain/utxoindex"
"github.com/c4ei/YunSeokYeol/infrastructure/config"
"github.com/c4ei/YunSeokYeol/infrastructure/network/addressmanager"
"github.com/c4ei/YunSeokYeol/infrastructure/network/connmanager"
"github.com/c4ei/YunSeokYeol/infrastructure/network/netadapter"
"github.com/c4ei/yunseokyeol/app/protocol"
"github.com/c4ei/yunseokyeol/domain"
"github.com/c4ei/yunseokyeol/domain/utxoindex"
"github.com/c4ei/yunseokyeol/infrastructure/config"
"github.com/c4ei/yunseokyeol/infrastructure/network/addressmanager"
"github.com/c4ei/yunseokyeol/infrastructure/network/connmanager"
"github.com/c4ei/yunseokyeol/infrastructure/network/netadapter"
)
// Context represents the RPC context

View File

@ -1,7 +1,7 @@
package rpccontext
import (
"github.com/c4ei/YunSeokYeol/infrastructure/logger"
"github.com/c4ei/yunseokyeol/infrastructure/logger"
)
var log = logger.RegisterSubSystem("RPCS")

View File

@ -3,14 +3,14 @@ package rpccontext
import (
"sync"
"github.com/c4ei/YunSeokYeol/domain/dagconfig"
"github.com/c4ei/yunseokyeol/domain/dagconfig"
"github.com/c4ei/YunSeokYeol/domain/consensus/model/externalapi"
"github.com/c4ei/YunSeokYeol/domain/consensus/utils/txscript"
"github.com/c4ei/yunseokyeol/domain/consensus/model/externalapi"
"github.com/c4ei/yunseokyeol/domain/consensus/utils/txscript"
"github.com/c4ei/YunSeokYeol/app/appmessage"
"github.com/c4ei/YunSeokYeol/domain/utxoindex"
routerpkg "github.com/c4ei/YunSeokYeol/infrastructure/network/netadapter/router"
"github.com/c4ei/yunseokyeol/app/appmessage"
"github.com/c4ei/yunseokyeol/domain/utxoindex"
routerpkg "github.com/c4ei/yunseokyeol/infrastructure/network/netadapter/router"
"github.com/pkg/errors"
)

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