Skip to content

Latest commit

 

History

History
22 lines (14 loc) · 1.31 KB

设置优先打包.md

File metadata and controls

22 lines (14 loc) · 1.31 KB

这个是官方推出的是允许的

curl -X POST
-H "Content-Type: application/json"
-H "Authorization: Bearer $(cat /home/xxx/.lotus/token)"
--data '{ "jsonrpc": "2.0", "method": "Filecoin.MpoolSetConfig", "params": [{"PriorityAddrs":["f3xxxxxxxxxxxxxx"],"SizeLimitHigh":3000,"SizeLimitLow":2000,"ReplaceByFeeRatio":1.25,"PruneCooldown":60000000000,"GasLimitOverestimation":1.25}], "id": 3}'
http://$(cat /home/xxx/.lotus/api | awk -F/ '{printf "%s:%s", $3, $5}')/rpc/v0

检查是否确认 能看到自己的钱包地址就行

curl -X POST
-H "Content-Type: application/json"
-H "Authorization: Bearer $(cat /home/cat/.lotus/token)"
--data '{ "jsonrpc": "2.0", "method": "Filecoin.MpoolGetConfig", "params": [], "id": 3}'
http://$(cat /home/cat/.lotus/api | awk -F/ '{printf "%s:%s", $3, $5}')/rpc/v0 | jq

或者使用:

lotus mpool config '{"PriorityAddrs":["f3rfurvushzaeeuo5yxtopcsrqtobve2xgae4n7tspgmnlzwowhhwq26xinsfkc7yk27bzclxh35knrp22hyqa","f3tdrxm22rsmuvl6y6msu2rhgxz7g4olni45jyzhsdwlxe4hyjphy52odfkhzuw3u2ccepvlpd5soinyybog2q","f3qaioudyvacp7klferipdjtuvbkbewzyck72vfhd4bjzez45nmoooxum57mpkbuzkslr7vdvp2d33fhzlm7oa"],"SizeLimitHigh":3000,"SizeLimitLow":2000,"ReplaceByFeeRatio":1.25,"PruneCooldown":60000000000,"GasLimitOverestimation":1.5}'