mirror of
https://github.com/PeernetOfficial/core.git
synced 2026-07-22 20:57:50 +01:00
Moving FeatureSupport() and UserBlockchain.Header() calls out of Message Encoding.
This paves the way for refactoring the message code into the protocol package.
This commit is contained in:
@@ -136,7 +136,8 @@ func (network *Network) MulticastIPv6Listen() {
|
||||
|
||||
// MulticastIPv6Send sends out a single multicast messages to discover peers at the same site
|
||||
func (network *Network) MulticastIPv6Send() (err error) {
|
||||
packets := msgEncodeAnnouncement(true, true, nil, nil, nil)
|
||||
_, blockchainHeight, blockchainVersion := UserBlockchain.Header()
|
||||
packets := msgEncodeAnnouncement(true, true, nil, nil, nil, FeatureSupport(), blockchainHeight, blockchainVersion)
|
||||
if len(packets) == 0 || packets[0].err != nil {
|
||||
return packets[0].err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user