Skip to content

Commit

Permalink
Merge branch 'master' into chore/upgrade-gateway
Browse files Browse the repository at this point in the history
  • Loading branch information
zl03jsj authored Aug 29, 2022
2 parents eae06d8 + b3e26d7 commit 2595c77
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -800,7 +800,7 @@ func (a *API) doRetrieval(ctx context.Context, order types.RetrievalOrder, sel d
return 0, fmt.Errorf("cannot make retrieval deal for zero bytes")
}

ppb := vTypes.BigDiv(order.Total, vTypes.NewInt(order.Size))
ppb := vTypes.BigDiv(big.Add(order.Total, order.UnsealPrice.Neg()), vTypes.NewInt(order.Size))

params, err := retrievalmarket.NewParamsV1(ppb, order.PaymentInterval, order.PaymentIntervalIncrease, sel, order.Piece, order.UnsealPrice)
if err != nil {
Expand Down
14 changes: 7 additions & 7 deletions docs/zh/快速启用.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ Venus Market 一般使用流程如下:



## 启动enus-market和market-client
## 启动venus-market和market-client



### 配置启动Venus-market
### 配置启动venus-market

`venus-market`支持两种运行模式:作为链服务的一部分进行部署,或者作为独立组件进行部署
后面的内容,使用作为链服务的一部分的方式部署`venus-market`组件,用于举例说明。
Expand Down Expand Up @@ -67,7 +67,7 @@ Venus Market 一般使用流程如下:
./venus-market piece-storage add-fs --path="/root/tanlang" --name="local"

# 对象存储
./venus-market piece-storage add-s3 --endpoint="http://oss-cn-shanghai.aliyuncs.com/venus-market-test" --name=oss
./venus-market piece-storage add-s3 --endpoint="http://oss-cn-shanghai.aliyuncs.com/venus-market-test" --name="oss"
```

通过配置文件配置参见 [venus-market存储配置](./venus-market配置解释.md#扇区存储配置)
Expand All @@ -77,9 +77,9 @@ Venus Market 一般使用流程如下:

#### 配置venus-market作为Miner的代理

将venus-market设置为Miner的代理就是将特定miner的订单检索服务的入口设置为当前运行的`venus-market'实例
将venus-market设置为Miner的代理就是将特定miner的订单检索服务的入口设置为当前运行的`venus-market`实例

首先要获取'venus-market'的服务入口地址,可以通过`venus-market`命令行工具进行获取:
首先要获取`venus-market`的服务入口地址,可以通过`venus-market`命令行工具进行获取:

```bash
./venus-market net listen
Expand All @@ -103,7 +103,7 @@ Requested multiaddrs change in message bafy2bzaceceqgxmiledunzjwbajpghzzn4iibvxh

### 配置启动market-client

`market-client`的启动配置要相对简单,只需要配置其接入链服务和`venus--market`提供的订单服务即可。
`market-client`的启动配置要相对简单,只需要配置其接入链服务和`venus-market`提供的订单服务即可。
`market-client`启动的时候需要`--addr` 用来绑定客户的钱包地址,用于支付客户端抵押和检索费用。

#### 配置接入Venus链服务和venus-market订单服务
Expand All @@ -126,7 +126,7 @@ Requested multiaddrs change in message bafy2bzaceceqgxmiledunzjwbajpghzzn4iibvxh

## 利用venus-market发布存储订单定价信息

在完成`venus-market`的启动之后,存储提供商可以通过`market-client`来发布订单定价信息。
在完成`venus-market`的启动之后,存储提供商可以通过`venus-market`来发布订单定价信息。

```bash
./venus-market storage-deals set-ask --miner=t01041 --price=0.02fil --verified-price=0.01fil --min-piece-size=512b --max-piece-size=8M
Expand Down

0 comments on commit 2595c77

Please sign in to comment.