This modifies the peer package to handle GetInitState/InitState messages by adding the appropriate listeners. It also bumps the max supported protocol version to version 8, which is needed to be able to decode the messages. Note this modifies the peer package's go.mod to use the local copy of the wire module in order to have access to the new messages.
22 lines
622 B
Modula-2
22 lines
622 B
Modula-2
module github.com/decred/dcrd/peer/v2
|
|
|
|
go 1.11
|
|
|
|
require (
|
|
github.com/davecgh/go-spew v1.1.1
|
|
github.com/decred/dcrd/chaincfg/chainhash v1.0.2
|
|
github.com/decred/dcrd/lru v1.0.0
|
|
github.com/decred/dcrd/txscript/v3 v3.0.0-20200215031403-6b2ce76f0986
|
|
github.com/decred/dcrd/wire v1.3.0
|
|
github.com/decred/go-socks v1.1.0
|
|
github.com/decred/slog v1.0.0
|
|
)
|
|
|
|
replace (
|
|
github.com/decred/dcrd/chaincfg/v3 => ../chaincfg
|
|
github.com/decred/dcrd/dcrec/secp256k1/v3 => ../dcrec/secp256k1
|
|
github.com/decred/dcrd/dcrutil/v3 => ../dcrutil
|
|
github.com/decred/dcrd/txscript/v3 => ../txscript
|
|
github.com/decred/dcrd/wire => ../wire
|
|
)
|