fix waiting for bls signed message

This commit is contained in:
whyrusleeping 2019-08-16 15:10:34 -07:00
parent b271e5231a
commit 4f91550851
2 changed files with 6 additions and 0 deletions

View File

@ -55,6 +55,10 @@ func (m *SignedMessage) ToStorageBlock() (block.Block, error) {
}
func (m *SignedMessage) Cid() cid.Cid {
if m.Signature.Type == KTBLS {
return m.Message.Cid()
}
sb, err := m.ToStorageBlock()
if err != nil {
panic(err)

View File

@ -158,6 +158,7 @@ func configureStorageMiner(ctx context.Context, api api.FullNode, addr address.A
Method: actors.MAMethods.UpdatePeerID,
Params: enc,
Nonce: nonce,
Value: types.NewInt(0),
GasPrice: types.NewInt(0),
GasLimit: types.NewInt(1000),
}
@ -171,6 +172,7 @@ func configureStorageMiner(ctx context.Context, api api.FullNode, addr address.A
return err
}
log.Info("Waiting for message: ", smsg.Cid())
ret, err := api.ChainWaitMsg(ctx, smsg.Cid())
if err != nil {
return err