Skip to content

Instantly share code, notes, and snippets.

@jimpick
Last active February 25, 2019 21:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jimpick/ada595aad73eea7c22b79bc64435a693 to your computer and use it in GitHub Desktop.
Save jimpick/ada595aad73eea7c22b79bc64435a693 to your computer and use it in GitHub Desktop.
Filecoin + zfec
Filecoin - Split pictures.tar.gz
================================
Sunday 9:00pm - 22070 + 2880 = 24950
> (env) jpimac:pictures-zfec-3-of-5 filecoin2$ ls -lh
total 294600
-rwxr-xr-x 1 filecoin2 staff 29M Feb 24 21:01 pictures.tar.gz.0_5.fec
-rwxr-xr-x 1 filecoin2 staff 29M Feb 24 21:01 pictures.tar.gz.1_5.fec
-rwxr-xr-x 1 filecoin2 staff 29M Feb 24 21:01 pictures.tar.gz.2_5.fec
-rwxr-xr-x 1 filecoin2 staff 29M Feb 24 21:01 pictures.tar.gz.3_5.fec
-rwxr-xr-x 1 filecoin2 staff 29M Feb 24 21:01 pictures.tar.gz.4_5.fec
(env) jpimac:pictures-zfec-3-of-5 filecoin2$ md5 ../pictures.tar.gz
MD5 (../pictures.tar.gz) = deb486ac4f5450742641c56882f1f3f4
(env) jpimac:pictures-zfec-3-of-5 filecoin2$ ls -lh ../pictures.tar.gz
-rw-r--r-- 1 filecoin2 staff 86M Feb 16 16:05 ../pictures.tar.gz
Part 1 of 5: (jimpicknuc)
"Miner": "fcqn4uzq54kpg7009wmljj5g9mcnc09grvc5r49qc"
"ID": 0
"Price": 5e-12
"Expiry": 24319
(env) jpimac:pictures-zfec-3-of-5 filecoin2$ export CID=`go-filecoin client import ./pictures.tar.gz.0_5.fec`
(env) jpimac:pictures-zfec-3-of-5 filecoin2$ time go-filecoin client propose-storage-deal --allow-duplicates fcqn4uzq54kpg7009wmljj5g9mcnc09grvc5r49qc $CID 0 2880
DealID: zDPWYqFCuZy2iuTwcMBq55PARftF4vjxvVmsBTmL3KZSDadA7xnf
real 0m32.585s
(env) jpimac:pictures-zfec-3-of-5 filecoin2$ go-filecoin miner owner fcqn4uzq54kpg7009wmljj5g9mcnc09grvc5r49qcfcqp8fzj37yzkz7khrw729ungdxun05pf97y67szt
(env) jpimac:pictures-zfec-3-of-5 filecoin2$ go-filecoin paych ls | sort -nk1 | grep szt | tail -2
151: target: fcqp8fzj37yzkz7khrw729ungdxun05pf97y67szt, amt: 0.4343617728, amt redeemed: 0, eol: 26941
Part 2 of 5:
"Miner": "fcq6xr4natyf0p8wvgywljt3xacj0p2x3qvz7qq9e"
"ID": 0
"Price": 1e-09
"Expiry": 86503
(env) jpimac:pictures-zfec-3-of-5 filecoin2$ export CID=`go-filecoin client import ./pictures.tar.gz.1_5.fec`
(env) jpimac:pictures-zfec-3-of-5 filecoin2$ time go-filecoin client propose-storage-deal --allow-duplicates fcq6xr4natyf0p8wvgywljt3xacj0p2x3qvz7qq9e $CID 0 2880
DealID: zDPWYqFCwtPGzhnQ6EcE2ZH7BzbkAUhLiVo2c2geyC22zzhRzhWL
real 0m24.604s
(env) jpimac:pictures-zfec-3-of-5 filecoin2$ go-filecoin miner owner fcq6xr4natyf0p8wvgywljt3xacj0p2x3qvz7qq9efcq78nd5hh55mg3ugtwcfa898p4uv5nt0kw506p04
(env) jpimac:pictures-zfec-3-of-5 filecoin2$ go-filecoin paych ls | sort -nk1 | grep p04 | tail -1
152: target: fcq78nd5hh55mg3ugtwcfa898p4uv5nt0kw506p04, amt: 86.87235456, amt redeemed: 0, eol: 26943
Part 3 of 5: (jimpicknuc)
"Miner": "fcqn4uzq54kpg7009wmljj5g9mcnc09grvc5r49qc"
"ID": 0
"Price": 5e-12
"Expiry": 24319
(env) jpimac:pictures-zfec-3-of-5 filecoin2$ export CID=`go-filecoin client import ./pictures.tar.gz.2_5.fec`
(env) jpimac:pictures-zfec-3-of-5 filecoin2$ time go-filecoin client propose-storage-deal --allow-duplicates fcqn4uzq54kpg7009wmljj5g9mcnc09grvc5r49qc $CID 0 2880
DealID: zDPWYqFCvP5G4tEhugACSU35EArP1BwJ5jmtWyDz3oD27TC6msDg
real 2m55.851s
(env) jpimac:pictures-zfec-3-of-5 filecoin2$ go-filecoin miner owner fcqn4uzq54kpg7009wmljj5g9mcnc09grvc5r49qcfcqp8fzj37yzkz7khrw729ungdxun05pf97y67szt
(env) jpimac:pictures-zfec-3-of-5 filecoin2$ go-filecoin paych ls | sort -nk1 | grep szt | tail -2
153: target: fcqp8fzj37yzkz7khrw729ungdxun05pf97y67szt, amt: 0.4343617728, amt redeemed: 0, eol: 26945
Part 4 of 5:
"Miner": "fcqcdhlujm67dh0x6kjpydel6w7ewt92x3t2xx76j"
"ID": 0
"Price": 2e-09
"Expiry": 299247
(env) jpimac:pictures-zfec-3-of-5 filecoin2$ export CID=`go-filecoin client import ./pictures.tar.gz.3_5.fec`
(env) jpimac:pictures-zfec-3-of-5 filecoin2$ time go-filecoin client propose-storage-deal --allow-duplicates fcqcdhlujm67dh0x6kjpydel6w7ewt92x3t2xx76j $CID 0 2880
DealID: zDPWYqFCqtkwZ4oRKb1bPxyo3Ys6y6uiyscLnfuqwyEVCyE7uw4X
real 3m22.701s
(env) jpimac:pictures-zfec-3-of-5 filecoin2$ go-filecoin miner owner fcqcdhlujm67dh0x6kjpydel6w7ewt92x3t2xx76jfcq4m7wvjqms2vuts6e092674az67ukeyqvafd2sv
(env) jpimac:pictures-zfec-3-of-5 filecoin2$ go-filecoin paych ls | sort -nk1 | grep 2sv | tail -1
156: target: fcq4m7wvjqms2vuts6e092674az67ukeyqvafd2sv, amt: 173.74470912, amt redeemed: 0, eol: 26950
Part 5 of 5:
"Miner": "fcqw9umwcmpt4a2mnagucapv6jzx5347n6rgeclm4"
"ID": 0
"Price": 1e-09
"Expiry": 307045
(env) jpimac:pictures-zfec-3-of-5 filecoin2$ export CID=`go-filecoin client import ./pictures.tar.gz.4_5.fec`
(env) jpimac:pictures-zfec-3-of-5 filecoin2$ time go-filecoin client propose-storage-deal --allow-duplicates fcqw9umwcmpt4a2mnagucapv6jzx5347n6rgeclm4 $CID 0 2880
State: accepted
real 0m39.966s
(env) jpimac:pictures-zfec-3-of-5 filecoin2$ go-filecoin miner owner fcqw9umwcmpt4a2mnagucapv6jzx5347n6rgeclm4fcqmqevuksl6g3ahjamyg9kkf8gjwjccj8wt7exp5
(env) jpimac:pictures-zfec-3-of-5 filecoin2$ go-filecoin paych ls | sort -nk1 | grep xp5 | tail -1
155: target: fcqmqevuksl6g3ahjamyg9kkf8gjwjccj8wt7exp5, amt: 86.87235456, amt redeemed: 0, eol: 26945
Sun 10:15pm Retrieve:
(1 of 5)
(env) jpimac:pictures-zfec-3-of-5 filecoin2$ time go-filecoin retrieval-client retrieve-piece fcqn4uzq54kpg7009wmljj5g9mcnc09grvc5r49qc $CID > retrieve0_5.bin
real 8m46.803s
(2 of 5)
(env) jpimac:pictures-zfec-3-of-5 filecoin2$ time go-filecoin retrieval-client retrieve-piece fcq6xr4natyf0p8wvgywljt3xacj0p2x3qvz7qq9e $CID > retrieve1_5.bin
real 4m9.848s
(3 of 5)
(env) jpimac:pictures-zfec-3-of-5 filecoin2$ time go-filecoin retrieval-client retrieve-piece fcqn4uzq54kpg7009wmljj5g9mcnc09grvc5r49qc $CID > retrieve2_5.bin
real 8m43.423s
(4 of 5)
(env) jpimac:pictures-zfec-3-of-5 filecoin2$ time go-filecoin retrieval-client retrieve-piece fcqcdhlujm67dh0x6kjpydel6w7ewt92x3t2xx76j $CID > retrieve3_5.bin
real 11m43.169s
(5 of 5)
(env) jpimac:pictures-zfec-3-of-5 filecoin2$ time go-filecoin retrieval-client retrieve-piece fcqw9umwcmpt4a2mnagucapv6jzx5347n6rgeclm4 $CID > retrieve4_5.bin
real 7m58.268s
(env) jpimac:pictures-zfec-3-of-5 filecoin2$ md5 *.fec *.bin
MD5 (pictures.tar.gz.0_5.fec) = 30a73ad4f569230145e7b4f426327708
MD5 (pictures.tar.gz.1_5.fec) = de454d5ae6d972947d1e37baf4283b30
MD5 (pictures.tar.gz.2_5.fec) = 7e361c1c199c87748f97efe94a11bee2
MD5 (pictures.tar.gz.3_5.fec) = 4ba6e473c2975e84859c4bf08c80725e
MD5 (pictures.tar.gz.4_5.fec) = e9be5b772776a80e9996086a40b19ff0
MD5 (retrieve0_5.bin) = 30a73ad4f569230145e7b4f426327708
MD5 (retrieve1_5.bin) = de454d5ae6d972947d1e37baf4283b30
MD5 (retrieve2_5.bin) = 7e361c1c199c87748f97efe94a11bee2
MD5 (retrieve3_5.bin) = 4ba6e473c2975e84859c4bf08c80725e
MD5 (retrieve4_5.bin) = e9be5b772776a80e9996086a40b19ff0
Mon 8:47am Retrieve:
(1 of 5)
(env) jpimac:pictures-zfec-3-of-5 filecoin2$ export CID=`go-filecoin client import ./pictures.tar.gz.0_5.fec`
(env) jpimac:pictures-zfec-3-of-5 filecoin2$ time go-filecoin retrieval-client retrieve-piece fcqn4uzq54kpg7009wmljj5g9mcnc09grvc5r49qc $CID > retrieve0_5.bin
real 7m17.371s
(2 of 5)
(env) jpimac:pictures-zfec-3-of-5 filecoin2$ export CID=`go-filecoin client import ./pictures.tar.gz.1_5.fec`
(env) jpimac:pictures-zfec-3-of-5 filecoin2$ time go-filecoin retrieval-client retrieve-piece fcq6xr4natyf0p8wvgywljt3xacj0p2x3qvz7qq9e $CID > retrieve1_5.bin
real 4m5.318s
(3 of 5)
(env) jpimac:pictures-zfec-3-of-5 filecoin2$ export CID=`go-filecoin client import ./pictures.tar.gz.2_5.fec`
(env) jpimac:pictures-zfec-3-of-5 filecoin2$ time go-filecoin retrieval-client retrieve-piece fcqn4uzq54kpg7009wmljj5g9mcnc09grvc5r49qc $CID > retrieve2_5.bin
real 7m44.555s
(4 of 5)
(env) jpimac:pictures-zfec-3-of-5 filecoin2$ export CID=`go-filecoin client import ./pictures.tar.gz.3_5.fec`
(env) jpimac:pictures-zfec-3-of-5 filecoin2$ time go-filecoin retrieval-client retrieve-piece fcqcdhlujm67dh0x6kjpydel6w7ewt92x3t2xx76j $CID > retrieve3_5.bin
real 4m10.462s
(5 of 5)
(env) jpimac:pictures-zfec-3-of-5 filecoin2$ export CID=`go-filecoin client import ./pictures.tar.gz.4_5.fec`
(env) jpimac:pictures-zfec-3-of-5 filecoin2$ time go-filecoin retrieval-client retrieve-piece fcqw9umwcmpt4a2mnagucapv6jzx5347n6rgeclm4 $CID > retrieve4_5.bin
real 8m0.468s
(env) jpimac:pictures-zfec-3-of-5 filecoin2$ md5 *.fec *.bin
MD5 (pictures.tar.gz.0_5.fec) = 30a73ad4f569230145e7b4f426327708
MD5 (pictures.tar.gz.1_5.fec) = de454d5ae6d972947d1e37baf4283b30
MD5 (pictures.tar.gz.2_5.fec) = 7e361c1c199c87748f97efe94a11bee2
MD5 (pictures.tar.gz.3_5.fec) = 4ba6e473c2975e84859c4bf08c80725e
MD5 (pictures.tar.gz.4_5.fec) = e9be5b772776a80e9996086a40b19ff0
MD5 (retrieve0_5.bin) = 30a73ad4f569230145e7b4f426327708
MD5 (retrieve1_5.bin) = de454d5ae6d972947d1e37baf4283b30
MD5 (retrieve2_5.bin) = 7e361c1c199c87748f97efe94a11bee2
MD5 (retrieve3_5.bin) = 4ba6e473c2975e84859c4bf08c80725e
MD5 (retrieve4_5.bin) = e9be5b772776a80e9996086a40b19ff0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment