Skip to content

http based mk12 deals #469

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

http based mk12 deals #469

wants to merge 2 commits into from

Conversation

LexLuthr
Copy link
Contributor

@LexLuthr LexLuthr commented Apr 10, 2025

Deal status

root@449dc2039bce:/app# sptool --actor t01000 toolbox mk12-client deal-status --provider t01002 --deal-uuid 70a64a51-9e58-44ce-9702-bd9810eb76d6 --http
got deal status response
  deal uuid: 70a64a51-9e58-44ce-9702-bd9810eb76d6
  deal status: Processing
  deal label: bafykbzacebyqmkqed7ycrvg4funmxbbweqwc7zf2eribfy5jxydu3dqvbin7q
  publish cid: <nil>
  chain deal id: 0

Deal command

root@449dc2039bce:/app# ./sample/http-random-deal.sh 
sptool --actor t01000 toolbox mk12-client generate-rand-car -c=51200 -l=100 -s=5120000 /var/lib/curio-client/data/ | awk '{print }'

sptool --actor t01000 toolbox mk12-client deal --http --provider=t01002 --http-url=http://piece-server:12320/pieces?id=bafykbzacebwq23dejglyqvhqxygmihlqkn5unagvafaqropue6yybfkc7xpco --commp=baga6ea4seaqorodadusjmtcxx6zmznqu2emc7ewedvq4g6eujenxtpshjaduyma --car-size=5129411 --piece-size=8388608 --payload-cid=bafykbzacebwq23dejglyqvhqxygmihlqkn5unagvafaqropue6yybfkc7xpco --storage-price 20000000000

sent deal proposal
  deal uuid: 18cb1790-410b-45e5-8b18-baad0c42405f
  storage provider: t01002
  client wallet: t3smitya7ls3bvi6f6poa5zjkuixn56tgkghehje3kk5s4qnbkrzmcps7txjaw3btkqckb3qm7mbc5ca354mfq
  payload cid: bafykbzacebwq23dejglyqvhqxygmihlqkn5unagvafaqropue6yybfkc7xpco
  url: http://piece-server:12320/pieces?id=bafykbzacebwq23dejglyqvhqxygmihlqkn5unagvafaqropue6yybfkc7xpco
  commp: baga6ea4seaqorodadusjmtcxx6zmznqu2emc7ewedvq4g6eujenxtpshjaduyma
  start epoch: 7338
  end epoch: 525738
  provider collateral: 21.484 μFIL

Logs confirming deal was sent on HTTP interface

2025-04-10 18:58:41 2025-04-10T14:58:41.873Z    INFO    mktdealhdlr     http/http.go:75 received deal proposal  {"id": "68d55d00-8c54-4c24-ae31-02186d231f69"}
2025-04-10 18:58:41 2025-04-10T14:58:41.913Z    INFO    mktdealhdlr     http/http.go:98 send deal proposal response     {"id": "68d55d00-8c54-4c24-ae31-02186d231f69", "id": "68d55d00-8c54-4c24-ae31-02186d231f69", "accepted": true, "msg": "", "peer id": "", "client address": "t3smitya7ls3bvi6f6poa5zjkuixn56tgkghehje3kk5s4qnbkrzmcps7txjaw3btkqckb3qm7mbc5ca354mfq", "provider address": "t01002", "piece cid": "baga6ea4seaqdup7kaf3rc7yoaymmht44smxri6x3muv6lm7ghmq4d3phph3zwaa", "piece size": 8388608, "verified": false, "label": "bafykbzacebykbdlib3fnvrln3ql46d3dmej5y7lq6fcd7kamm54vfk2qjsmfw", "start epoch": "7356", "end epoch": "525756", "price per epoch": "156250000", "duration": "39.753375ms"}

@LexLuthr LexLuthr requested a review from magik6k April 10, 2025 14:59
@LexLuthr LexLuthr changed the title http based 12 deals http based mk12 deals Apr 10, 2025
@LexLuthr LexLuthr marked this pull request as ready for review April 11, 2025 07:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant