File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -8,12 +8,13 @@ import (
8
8
"errors"
9
9
"fmt"
10
10
11
+ "google.golang.org/protobuf/proto"
12
+
11
13
pb "github.com/ChainSafe/gossamer/dot/network/proto"
12
14
"github.com/ChainSafe/gossamer/dot/types"
13
15
"github.com/ChainSafe/gossamer/lib/common"
14
16
"github.com/ChainSafe/gossamer/lib/common/variadic"
15
17
"github.com/ChainSafe/gossamer/pkg/scale"
16
- "google.golang.org/protobuf/proto"
17
18
)
18
19
19
20
// Message types for notifications protocol messages. Used internally to map message to protocol.
@@ -305,8 +306,7 @@ func blockDataToProtobuf(bd *types.BlockData) (*pb.BlockData, error) {
305
306
306
307
func protobufToBlockData (pbd * pb.BlockData ) (* types.BlockData , error ) {
307
308
bd := & types.BlockData {
308
- Hash : common .BytesToHash (pbd .Hash ),
309
- Header : types .NewEmptyHeader (),
309
+ Hash : common .BytesToHash (pbd .Hash ),
310
310
}
311
311
312
312
if pbd .Header != nil {
You can’t perform that action at this time.
0 commit comments