fix waiting for bls signed message
This commit is contained in:
parent
b271e5231a
commit
4f91550851
@ -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)
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user