github.com/hyperledger/fabric/protos has been removed, so changed it to github.com/hyperledger/fabric-protos-go in each import statement
github.com/hyperledger/fabric/protos/common.BlockHeader.Hash() function has been removed from github.com/hyperledger/fabric-protos-go (to allow configurable hashing algorithms), we have to calculate the hash. We do it the way it was implemented until now: util.ComputeSHA256(h.Bytes())
But github.com/hyperledger/fabric-protos-go/common.BlockHeader.Bytes() is also missing, so we have to implement the Byte() function the way it was until now...
github.com/hyperledger/fabric/protos
has been removed, so changed it togithub.com/hyperledger/fabric-protos-go
in each import statementgithub.com/hyperledger/fabric/protos/common.BlockHeader.Hash()
function has been removed fromgithub.com/hyperledger/fabric-protos-go
(to allow configurable hashing algorithms), we have to calculate the hash. We do it the way it was implemented until now:util.ComputeSHA256(h.Bytes())
github.com/hyperledger/fabric-protos-go/common.BlockHeader.Bytes()
is also missing, so we have to implement the Byte() function the way it was until now...All new implementations are based on this link.
Signed-off-by: Balazs Prehoda prehoda.balazs@gmail.com