Merge pull request #308 from filecoin-project/fix/tostoragebls
Fix ToStorageBlock on BLS msgs
This commit is contained in:
commit
289332c497
@ -9,6 +9,10 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func (m *SignedMessage) ToStorageBlock() (block.Block, error) {
|
func (m *SignedMessage) ToStorageBlock() (block.Block, error) {
|
||||||
|
if m.Signature.Type == KTBLS {
|
||||||
|
return m.Message.ToStorageBlock()
|
||||||
|
}
|
||||||
|
|
||||||
data, err := m.Serialize()
|
data, err := m.Serialize()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
Loading…
Reference in New Issue
Block a user