mirror of
https://github.com/luxfi/node.git
synced 2026-07-27 03:39:39 +00:00
19 lines
519 B
Go
19 lines
519 B
Go
//go:build grpc
|
|
|
|
// Copyright (C) 2019-2025, Lux Industries Inc. All rights reserved.
|
|
// See the file LICENSE for licensing terms.
|
|
|
|
package message
|
|
|
|
import "github.com/luxfi/node/proto/p2p"
|
|
|
|
// newMessageBFT creates a BFT message wrapper (gRPC version - uses Simplex)
|
|
func newMessageBFT(msg *p2p.BFT) *p2p.Message_BFT {
|
|
return &p2p.Message_BFT{Simplex: msg}
|
|
}
|
|
|
|
// extractBFT extracts the BFT message from the wrapper (gRPC version - uses Simplex)
|
|
func extractBFT(msg *p2p.Message_BFT) *p2p.BFT {
|
|
return msg.Simplex
|
|
}
|