Skip to content

Commit

Permalink
Merge "[FAB-1141] Fixed Block metadata per kosta's latest"
Browse files Browse the repository at this point in the history
  • Loading branch information
binhn authored and Gerrit Code Review committed Jan 23, 2017
2 parents b71ecc7 + abb3b78 commit 6f8939f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bddtests/steps/bootstrap_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -577,14 +577,19 @@ def createGenesisBlock(context, chainId, consensusType, signedConfigItems = []):
blockData = common_dot_common_pb2.BlockData(Data=[envelope.SerializeToString()])


# Spoke with kostas, for orderer in general
signaturesMetadata = ""
lastConfigurationBlockMetadata = common_dot_common_pb2.Metadata(value=common_dot_common_pb2.LastConfiguration(index=0).SerializeToString()).SerializeToString()
ordererConfigMetadata = ""
transactionFilterMetadata = ""
block = common_dot_common_pb2.Block(
Header=common_dot_common_pb2.BlockHeader(
Number=0,
PreviousHash=None,
DataHash=bootstrapHelper.computeBlockDataHash(blockData),
),
Data=blockData,
Metadata=common_dot_common_pb2.BlockMetadata(Metadata=("",common_dot_common_pb2.Metadata(value=common_dot_common_pb2.LastConfiguration(index=0).SerializeToString()).SerializeToString(),"")),
Metadata=common_dot_common_pb2.BlockMetadata(Metadata=[signaturesMetadata,lastConfigurationBlockMetadata,transactionFilterMetadata, ordererConfigMetadata]),
)

# Add this back once crypto certs are required
Expand Down

0 comments on commit 6f8939f

Please sign in to comment.