feat(markets): update to markets v0.3.2
Update to markets v0.3.2, which neccesitates merging master & adding one more node function
This commit is contained in:
1 parent
a03d8b3c3f
commit
be29f3bd99
4 files changed
+22
-6
No files matched your search
@@ -5,6 +5,7 @@ package storageadapter
|
||||
import (
|
||||
"bytes"
|
||||
"context"
|
||||
|
||||
"github.com/filecoin-project/lotus/api"
|
||||
"github.com/filecoin-project/lotus/chain/events/state"
|
||||
|
||||
@@ -412,7 +413,7 @@ func (c *ClientNodeAdapter) OnDealExpiredOrSlashed(ctx context.Context, dealID a
|
||||
preds := state.NewStatePredicates(c)
|
||||
dealDiff := preds.OnStorageMarketActorChanged(
|
||||
preds.OnDealStateChanged(
|
||||
preds.DealStateChangedForIDs([]abi.DealID{dealID})))
|
||||
preds.DealStateChangedForIDs([]abi.DealID{dealID})))
|
||||
match := func(oldTs, newTs *types.TipSet) (bool, events.StateChange, error) {
|
||||
return dealDiff(ctx, oldTs, newTs)
|
||||
}
|
||||
@@ -520,4 +521,17 @@ func (n *ClientNodeAdapter) GetMinerInfo(ctx context.Context, addr address.Addre
|
||||
return &out, nil
|
||||
}
|
||||
|
||||
func (n *ClientNodeAdapter) SignBytes(ctx context.Context, signer address.Address, b []byte) (*crypto.Signature, error) {
|
||||
signer, err := n.StateAccountKey(ctx, signer, types.EmptyTSK)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
localSignature, err := n.Wallet.Sign(ctx, signer, b)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return localSignature, nil
|
||||
}
|
||||
|
||||
var _ storagemarket.StorageClientNode = &ClientNodeAdapter{}
|
||||
Reference in new issue
Block a user