mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-11-24 14:35:53 +00:00
chg
This commit is contained in:
parent
ec2df86f13
commit
d932206429
@ -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.
|
||||
|
||||
@ -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
|
||||
|
||||
22
app/app.go
22
app/app.go
@ -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 (
|
||||
|
||||
@ -2,7 +2,7 @@ wire
|
||||
====
|
||||
|
||||
[](https://choosealicense.com/licenses/isc/)
|
||||
[](http://godoc.org/github.com/c4ei/YunSeokYeol/wire)
|
||||
[](http://godoc.org/github.com/c4ei/yunseokyeol/wire)
|
||||
=======
|
||||
|
||||
Package wire implements the kaspa wire protocol.
|
||||
|
||||
@ -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).
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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.
|
||||
|
||||
@ -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,
|
||||
|
||||
@ -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"
|
||||
)
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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"
|
||||
)
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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 {
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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.
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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.
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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 (
|
||||
|
||||
@ -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"
|
||||
)
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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"
|
||||
)
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
package app
|
||||
|
||||
import (
|
||||
"github.com/c4ei/YunSeokYeol/infrastructure/logger"
|
||||
"github.com/c4ei/yunseokyeol/infrastructure/logger"
|
||||
)
|
||||
|
||||
var log = logger.RegisterSubSystem("KASD")
|
||||
|
||||
@ -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"
|
||||
)
|
||||
|
||||
@ -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.
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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 {
|
||||
|
||||
@ -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.
|
||||
|
||||
@ -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 (
|
||||
|
||||
@ -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
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
package flowcontext
|
||||
|
||||
import (
|
||||
"github.com/c4ei/YunSeokYeol/infrastructure/logger"
|
||||
"github.com/c4ei/yunseokyeol/infrastructure/logger"
|
||||
)
|
||||
|
||||
var log = logger.RegisterSubSystem("PROT")
|
||||
|
||||
@ -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"
|
||||
)
|
||||
|
||||
|
||||
@ -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"
|
||||
)
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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"
|
||||
)
|
||||
|
||||
|
||||
@ -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")
|
||||
|
||||
@ -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"
|
||||
)
|
||||
|
||||
|
||||
@ -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"
|
||||
)
|
||||
|
||||
|
||||
@ -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")
|
||||
|
||||
@ -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"
|
||||
)
|
||||
|
||||
|
||||
@ -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.
|
||||
|
||||
@ -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.
|
||||
|
||||
@ -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) {
|
||||
|
||||
@ -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 {
|
||||
|
||||
@ -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.
|
||||
|
||||
@ -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"
|
||||
)
|
||||
|
||||
|
||||
@ -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"
|
||||
)
|
||||
|
||||
|
||||
@ -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.
|
||||
|
||||
@ -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.
|
||||
|
||||
@ -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"
|
||||
)
|
||||
|
||||
|
||||
@ -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"
|
||||
)
|
||||
|
||||
|
||||
@ -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.
|
||||
|
||||
@ -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.
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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.
|
||||
|
||||
@ -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"
|
||||
)
|
||||
|
||||
|
||||
@ -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"
|
||||
)
|
||||
|
||||
|
||||
@ -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")
|
||||
|
||||
@ -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.
|
||||
|
||||
@ -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.
|
||||
|
||||
@ -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.
|
||||
|
||||
@ -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 {
|
||||
|
||||
@ -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.
|
||||
|
||||
@ -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"
|
||||
)
|
||||
|
||||
|
||||
@ -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{}
|
||||
|
||||
@ -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"
|
||||
)
|
||||
|
||||
|
||||
@ -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 {
|
||||
|
||||
@ -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 {
|
||||
|
||||
@ -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"
|
||||
)
|
||||
|
||||
|
||||
@ -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")
|
||||
|
||||
@ -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
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
package peer
|
||||
|
||||
import (
|
||||
"github.com/c4ei/YunSeokYeol/infrastructure/logger"
|
||||
"github.com/c4ei/yunseokyeol/infrastructure/logger"
|
||||
)
|
||||
|
||||
var log = logger.RegisterSubSystem("PROT")
|
||||
|
||||
@ -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.
|
||||
|
||||
@ -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"
|
||||
)
|
||||
|
||||
|
||||
@ -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"
|
||||
)
|
||||
|
||||
|
||||
@ -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")
|
||||
|
||||
@ -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"
|
||||
)
|
||||
|
||||
|
||||
@ -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"
|
||||
)
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
package rpccontext
|
||||
|
||||
import (
|
||||
"github.com/c4ei/YunSeokYeol/infrastructure/logger"
|
||||
"github.com/c4ei/yunseokyeol/infrastructure/logger"
|
||||
)
|
||||
|
||||
var log = logger.RegisterSubSystem("RPCS")
|
||||
|
||||
@ -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
Loading…
x
Reference in New Issue
Block a user