Skip to content

Commit abb3b78

Browse files
committed
[FAB-1141] Fixed Block metadata per kosta's latest
Orderer requires 4 entries in block metadata for orderer. Added temporary values which are required. Change-Id: I7556a825394a8771a9b7c09ce3efccbd7bda2f4b Signed-off-by: jeffgarratt <[email protected]>
1 parent d903c9c commit abb3b78

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

bddtests/steps/bootstrap_util.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -577,14 +577,19 @@ def createGenesisBlock(context, chainId, consensusType, signedConfigItems = []):
577577
blockData = common_dot_common_pb2.BlockData(Data=[envelope.SerializeToString()])
578578

579579

580+
# Spoke with kostas, for orderer in general
581+
signaturesMetadata = ""
582+
lastConfigurationBlockMetadata = common_dot_common_pb2.Metadata(value=common_dot_common_pb2.LastConfiguration(index=0).SerializeToString()).SerializeToString()
583+
ordererConfigMetadata = ""
584+
transactionFilterMetadata = ""
580585
block = common_dot_common_pb2.Block(
581586
Header=common_dot_common_pb2.BlockHeader(
582587
Number=0,
583588
PreviousHash=None,
584589
DataHash=bootstrapHelper.computeBlockDataHash(blockData),
585590
),
586591
Data=blockData,
587-
Metadata=common_dot_common_pb2.BlockMetadata(Metadata=("",common_dot_common_pb2.Metadata(value=common_dot_common_pb2.LastConfiguration(index=0).SerializeToString()).SerializeToString(),"")),
592+
Metadata=common_dot_common_pb2.BlockMetadata(Metadata=[signaturesMetadata,lastConfigurationBlockMetadata,transactionFilterMetadata, ordererConfigMetadata]),
588593
)
589594

590595
# Add this back once crypto certs are required

0 commit comments

Comments
 (0)