Skip to content

Commit

Permalink
Merge pull request #5556 from filecoin-project/feat/network-blockstore
Browse files Browse the repository at this point in the history
feat: add network blockstore
  • Loading branch information
simlecode authored Dec 12, 2022
2 parents 1800fbd + 1900176 commit 59a0c52
Show file tree
Hide file tree
Showing 9 changed files with 1,284 additions and 1 deletion.
4 changes: 4 additions & 0 deletions venus-devtool/api-gen/example.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (
"github.com/filecoin-project/go-state-types/crypto"
"github.com/filecoin-project/go-state-types/exitcode"
"github.com/filecoin-project/venus/venus-shared/types/market"
auuid "github.com/google/uuid"
blocks "github.com/ipfs/go-block-format"
"github.com/ipfs/go-cid"
"github.com/ipfs/go-graphsync"
Expand Down Expand Up @@ -262,6 +263,9 @@ func init() {
addExample(&clientDataSelector)

addExample(client.ImportID(1234))

uuidTmp := auuid.MustParse("102334ec-35a3-4b36-be9f-02883844503a")
addExample(&uuidTmp)
}

func ExampleValue(method string, t, parent reflect.Type) interface{} {
Expand Down
9 changes: 9 additions & 0 deletions venus-devtool/cborgen/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import (
"github.com/filecoin-project/venus/pkg/state/tree"
"github.com/filecoin-project/venus/pkg/vm/dispatch"
"github.com/filecoin-project/venus/venus-devtool/util"
"github.com/filecoin-project/venus/venus-shared/blockstore"
"github.com/filecoin-project/venus/venus-shared/libp2p/exchange"
"github.com/filecoin-project/venus/venus-shared/libp2p/hello"
"github.com/filecoin-project/venus/venus-shared/types"
Expand Down Expand Up @@ -121,6 +122,14 @@ func main() {
fvm.FvmGasCharge{},
},
},
{
dir: "../venus-shared/blockstore",
types: []interface{}{
blockstore.NetRPCReq{},
blockstore.NetRPCResp{},
blockstore.NetRPCErr{},
},
},
}

for _, target := range targets {
Expand Down
3 changes: 2 additions & 1 deletion venus-shared/api/market/client/method.md
Original file line number Diff line number Diff line change
Expand Up @@ -928,7 +928,8 @@ Inputs:
"Address": "f01234",
"ID": "12D3KooWGzxzKZYveHXtpG6AsrUJBcWxHBFS2HsEoGTxrMLvKXtf",
"PieceCID": null
}
},
"RemoteStore": "102334ec-35a3-4b36-be9f-02883844503a"
}
]
```
Expand Down
Loading

0 comments on commit 59a0c52

Please sign in to comment.