Merge pull request #308 from filecoin-project/fix/tostoragebls

Fix ToStorageBlock on BLS msgs
This commit is contained in:
Łukasz Magiera 2019-10-09 15:08:26 +02:00 committed by GitHub
commit 289332c497
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,6 +9,10 @@ import (
)
func (m *SignedMessage) ToStorageBlock() (block.Block, error) {
if m.Signature.Type == KTBLS {
return m.Message.ToStorageBlock()
}
data, err := m.Serialize()
if err != nil {
return nil, err