mirror of
https://github.com/PeernetOfficial/core.git
synced 2026-07-17 02:47:51 +01:00
Fork btcec to remove external dependency. This significantly reduces the count of indirect modules (cuts it by half). Close #7
Update the other Go modules.
This commit is contained in:
@@ -7,7 +7,7 @@ Author: Peter Kleissner
|
||||
package protocol
|
||||
|
||||
import (
|
||||
"github.com/btcsuite/btcd/btcec"
|
||||
"github.com/PeernetOfficial/core/btcec"
|
||||
"lukechampine.com/blake3"
|
||||
)
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ import (
|
||||
"time"
|
||||
"unicode/utf8"
|
||||
|
||||
"github.com/btcsuite/btcd/btcec"
|
||||
"github.com/PeernetOfficial/core/btcec"
|
||||
)
|
||||
|
||||
// MessageResponse is the decoded response message.
|
||||
|
||||
@@ -18,7 +18,7 @@ import (
|
||||
"encoding/binary"
|
||||
"errors"
|
||||
|
||||
"github.com/btcsuite/btcd/btcec"
|
||||
"github.com/PeernetOfficial/core/btcec"
|
||||
)
|
||||
|
||||
// MessageTransfer is the decoded transfer message.
|
||||
|
||||
@@ -12,7 +12,7 @@ import (
|
||||
"net"
|
||||
"time"
|
||||
|
||||
"github.com/btcsuite/btcd/btcec"
|
||||
"github.com/PeernetOfficial/core/btcec"
|
||||
)
|
||||
|
||||
// MessageTraverse is the decoded traverse message.
|
||||
|
||||
@@ -9,7 +9,7 @@ Intermediary between low-level packets and high-level interpretation.
|
||||
package protocol
|
||||
|
||||
import (
|
||||
"github.com/btcsuite/btcd/btcec"
|
||||
"github.com/PeernetOfficial/core/btcec"
|
||||
)
|
||||
|
||||
// ProtocolVersion is the current protocol version
|
||||
|
||||
@@ -26,7 +26,7 @@ import (
|
||||
"errors"
|
||||
"math/rand"
|
||||
|
||||
"github.com/btcsuite/btcd/btcec"
|
||||
"github.com/PeernetOfficial/core/btcec"
|
||||
"golang.org/x/crypto/salsa20"
|
||||
)
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@ import (
|
||||
"sync/atomic"
|
||||
"time"
|
||||
|
||||
"github.com/btcsuite/btcd/btcec"
|
||||
"github.com/PeernetOfficial/core/btcec"
|
||||
)
|
||||
|
||||
// SequenceManager stores all message sequence numbers that are valid at the moment
|
||||
|
||||
@@ -5,7 +5,7 @@ import (
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
"github.com/btcsuite/btcd/btcec"
|
||||
"github.com/PeernetOfficial/core/btcec"
|
||||
)
|
||||
|
||||
func TestMessageEncodingAnnouncement(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user