Skip to content
This repository has been archived by the owner on Aug 23, 2021. It is now read-only.

Test extension (post-Bruno PR merge) with these additional CIDs #111

Open
16 of 18 tasks
ghost opened this issue Nov 4, 2020 · 4 comments
Open
16 of 18 tasks

Test extension (post-Bruno PR merge) with these additional CIDs #111

ghost opened this issue Nov 4, 2020 · 4 comments
Assignees

Comments

@ghost
Copy link

ghost commented Nov 4, 2020

Build the latest tip of master and do these tests:

Small CID (~4 kb)

  • Download bafk2bzacebhlhbcnhmvover42qq5bx773c522skieho6nhtbz7d2ow3f4sw24 on storage miner f019243
  • Click the blue down arrow next to bafk2bzacebhlhbcnhmvover42qq5bx773c522skieho6nhtbz7d2ow3f4sw24 and save the file on your desktop.
  • Confirm its MD5 sum is 56a9ae23c7e71f7f9a118f186d39209a
  • Confirm size is 3776 bytes exactly
  • Repeat test on Firefox
  • Repeat test on Chrome

Medium CID (~4 MB)

  • Download bafykbzacecp5ijz6n2hoy6nwferyxajnnftfny52kntbmqv5ywo734yivekw4 on storage miner f019243
  • Click the blue down arrow next to bafykbzacecp5ijz6n2hoy6nwferyxajnnftfny52kntbmqv5ywo734yivekw4 and save the file on your desktop.
  • Confirm its MD5 sum is bf93259f0681238daa317f1c3d1131ea
  • Confirm size is 4194304 bytes exactly
  • Repeat test on Firefox
  • Repeat test on Chrome

Large CID (~105 MB)

  • Download bafykbzacecdt3sxmqj2xi6ntatf4ikycu6korkyv3pd632zot64lah5oonftw on storage miner f019243
  • Click the blue down arrow next to bafykbzacecdt3sxmqj2xi6ntatf4ikycu6korkyv3pd632zot64lah5oonftw and save the file on your desktop.
  • Confirm its MD5 sum is 94d3f4456599e2253b9a0312e33c3d0f
  • Confirm its size is 110100480 bytes exactly
  • Repeat test on Firefox
  • Repeat test on Chrome

Other CIDs (all on miner f019243)

CID                                                            MD5 checksum                      Size
bafk2bzaced3qzrjfppals7u5kkxfdrpfxlwiyqa6q2w47hvfhbapg5em32irc 969c088e4c8fae744a2961e5183b9ad6  64kb.bin
bafk2bzaceadqbih2be3gksadbltxfezzioflc3mslzc3sjhezh2xmm4rubria 4637b3deeb106c94b8521138fcdfe366  512kb.bin
bafk2bzacedcbyjkrq4duqsqdytbm2zzdjzpwdxqejb5otuschvslymwcc4gxs 05577ae31a416bd095e20633ee85c4de  1mb.bin
bafykbzaceb7xzlm65omwugcavfxxcxclhnwamjbcodz5rz4kbyhenq7m4pivg 4ed6b58eb5c7ff089c0a3344da35700a  2.1mb.bin
bafykbzacea3mkd2ktlizw4k2xtercwfe3sy5p76fzjj4xogbrwy7g5ptufvdw 5ac368bc62eb7837f347ae6a8888448b  1gb.bin
@ionutiorgulescu
Copy link
Collaborator

image

For this CID bafk2bzacebhlhbcnhmvover42qq5bx773c522skieho6nhtbz7d2ow3f4sw24 size is 3776 not 3775, check the image.

@ionutiorgulescu
Copy link
Collaborator

image
The second CID his sum is not bf93259f0681238daa317f1c3d1131ea it is A6C8BF68E50EE1DCDCF34C436AE0A406 check the image above.

@ionutiorgulescu
Copy link
Collaborator

ionutiorgulescu commented Nov 18, 2020

The big file CID can't be retrieve from storage miner.

image

Logs:

DEBUG: global chrome: case messageTypes.query
INFO: querying proxy for bafykbzacecdt3sxmqj2xi6ntatf4ikycu6korkyv3pd632zot64lah5oonftw , minerID:  f019243
INFO: querying peers for bafykbzacecdt3sxmqj2xi6ntatf4ikycu6korkyv3pd632zot64lah5oonftw
DEBUG: publishing message {"messageType":"RetrievalQuery","cid":"bafykbzacecdt3sxmqj2xi6ntatf4ikycu6korkyv3pd632zot64lah5oonftw","peerId":"QmcBU4X6i53p7faohpAJUu3tU9QiPr5DTsj7BmNDKFkNGd"}
DEBUG: global chrome: case messageTypes.downloadFile
DEBUG:  Node.downloadFile:
  cid:'bafykbzacecdt3sxmqj2xi6ntatf4ikycu6korkyv3pd632zot64lah5oonftw'
  offer={ address: 'wss://retrievalproxy.browser-retrieval.filecoin.io:443',
  params: 
   { clientToken: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJtZXNzYWdlIjoicXVlcnlfY2lkIiwiY2lkIjoiYmFmeWtiemFjZWNkdDNzeG1xajJ4aTZudGF0ZjRpa3ljdTZrb3JreXYzcGQ2MzJ6b3Q2NGxhaDVvb25mdHciLCJtaW5lciI6ImYwMTkyNDMiLCJpYXQiOjE2MDU2OTY4MTgsImV4cCI6MTYwNjMwMTYxOH0.efuHW4Q_TFVmODawm5-nAPy5mqsQjgFiLtzBNDzvoZw',
     paymentWallet: 'f1mgj5szxkup7tupit7377nt2j6arsu2dwg4iuayi',
     price: '101033072037694',
     size: 134217728 },
  price: '101033072037694' }
DEBUG:  Node._downloadFromPeer: starting
DEBUG:  Node._downloadFromPeer:  offer={"address":"wss://retrievalproxy.browser-retrieval.filecoin.io:443","params":{"clientToken":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJtZXNzYWdlIjoicXVlcnlfY2lkIiwiY2lkIjoiYmFmeWtiemFjZWNkdDNzeG1xajJ4aTZudGF0ZjRpa3ljdTZrb3JreXYzcGQ2MzJ6b3Q2NGxhaDVvb25mdHciLCJtaW5lciI6ImYwMTkyNDMiLCJpYXQiOjE2MDU2OTY4MTgsImV4cCI6MTYwNjMwMTYxOH0.efuHW4Q_TFVmODawm5-nAPy5mqsQjgFiLtzBNDzvoZw","paymentWallet":"f1mgj5szxkup7tupit7377nt2j6arsu2dwg4iuayi","price":"101033072037694","size":134217728},"price":"101033072037694"}
DEBUG:  Node._downloadFromPeer:
  CID: bafykbzacecdt3sxmqj2xi6ntatf4ikycu6korkyv3pd632zot64lah5oonftw
  from: wss://retrievalproxy.browser-retrieval.filecoin.io:443
  price: 101033072037694 attoFil
DEBUG: SocketClient.query: cidVersion 1 hashAlg blake2b-256 rawLeaves true format dag-pb
DEBUG: Datastore.putContent:  options={ cidVersion: 1,
  hashAlg: 'blake2b-256',
  rawLeaves: true,
  maxChunkSize: 1048576,
  maxChildrenPerNode: 1024 }
DEBUG: SocketClient._handleCidAvailability: creating Lotus instance
DEBUG: entering Lotus.create
DEBUG: Lotus.initialize:  entering
DEBUG: Lotus.initialize:  leaving
DEBUG: leaving Lotus.create
DEBUG: SocketClient._handleCidAvailability: sending 101033072037694 attofil to f1mgj5szxkup7tupit7377nt2j6arsu2dwg4iuayi
DEBUG: lotus.sendFunds(): sending 101033072037694 to f1mgj5szxkup7tupit7377nt2j6arsu2dwg4iuayi
DEBUG: entering Lotus.getNonce
DEBUG: Lotus.getNonce:
  addr=f13ffbsxfeiriwz3n66vqoy6nopxkwo64v5akcqxy
  this.headers={ Authorization: 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJBbGxvdyI6WyJyZWFkIiwid3JpdGUiLCJzaWduIiwiYWRtaW4iXX0.jtLE4n-cWr1lzvFVDj9wupSHqDJgvQFIRP2takFTbAo' }
  this.lotusEndpoint=http://3.231.219.184:80/rpc/v0
DEBUG: leaving Lotus.getNonce (ret = 188)
DEBUG: lotus.sendFunds(): nonce: 188
DEBUG: lotus.sendFunds(): unsignedMessageJson = {
    "To": "f1mgj5szxkup7tupit7377nt2j6arsu2dwg4iuayi",
    "From": "f13ffbsxfeiriwz3n66vqoy6nopxkwo64v5akcqxy",
    "Nonce": 188,
    "Value": "101033072037694",
    "Method": 0,
    "Params": "",
    "GasLimit": 10000000,
    "GasFeeCap": "16251176117",
    "GasPremium": "140625002"
}
DEBUG: lotus.sendFunds(): signedMessage = { Message: 
   { From: 'f13ffbsxfeiriwz3n66vqoy6nopxkwo64v5akcqxy',
     GasFeeCap: '16251176117',
     GasLimit: 10000000,
     GasPremium: '140625002',
     Method: 0,
     Nonce: 188,
     Params: '',
     To: 'f1mgj5szxkup7tupit7377nt2j6arsu2dwg4iuayi',
     Value: '101033072037694' },
  Signature: 
   { Data: 'KXnYe2zxx6CDdf7CatcSazyVfKLkLdyXvhT0IyyqZdNXlhxJwrhJvNCGRS9LkSS8qADzzyMXr8hqbVHmu9j9FgA=',
     Type: 1 } }
DEBUG: entering Lotus.mpoolPush (signedMessage={ Message: 
   { From: 'f13ffbsxfeiriwz3n66vqoy6nopxkwo64v5akcqxy',
     GasFeeCap: '16251176117',
     GasLimit: 10000000,
     GasPremium: '140625002',
     Method: 0,
     Nonce: 188,
     Params: '',
     To: 'f1mgj5szxkup7tupit7377nt2j6arsu2dwg4iuayi',
     Value: '101033072037694' },
  Signature: 
   { Data: 'KXnYe2zxx6CDdf7CatcSazyVfKLkLdyXvhT0IyyqZdNXlhxJwrhJvNCGRS9LkSS8qADzzyMXr8hqbVHmu9j9FgA=',
     Type: 1 } })
DEBUG: Lotus.mpoolPush: response.data = { jsonrpc: '2.0',
  result: { '/': 'bafy2bzacedp3u72doas2kul2vpc76kru5u3gyda2pxjthbxwa7lr6yvi3idse' },
  id: 1 }
DEBUG: Lotus.mpoolPush => { '/': 'bafy2bzacedp3u72doas2kul2vpc76kru5u3gyda2pxjthbxwa7lr6yvi3idse' }
DEBUG: Lotus.sendFunds:  msgCid = { '/': 'bafy2bzacedp3u72doas2kul2vpc76kru5u3gyda2pxjthbxwa7lr6yvi3idse' }
INFO: begining StateWaitMsg. This will take a while...
--------------------------------------------------------------------------------------------------
DEBUG: Lotus.stateWaitMsg => { jsonrpc: '2.0',
  result: 
   { Message: { '/': 'bafy2bzacedp3u72doas2kul2vpc76kru5u3gyda2pxjthbxwa7lr6yvi3idse' },
     Receipt: { ExitCode: 0, Return: null, GasUsed: 1751648 },
     ReturnDec: null,
     TipSet: [ [Object] ],
     Height: 246350 },
  id: 1 } ; { Message: { '/': 'bafy2bzacedp3u72doas2kul2vpc76kru5u3gyda2pxjthbxwa7lr6yvi3idse' },
  Receipt: { ExitCode: 0, Return: null, GasUsed: 1751648 },
  ReturnDec: null,
  TipSet: [ { '/': 'bafy2bzacedxwj5evpvas7ogh4h6dhmk2xoxajuxm2pmqadghc4mednxzabgai' } ],
  Height: 246350 }
--------------------------------------------------------------------------------------------------
DEBUG: Lotus.sendFunds: response.data: { jsonrpc: '2.0',
  result: 
   { Message: { '/': 'bafy2bzacedp3u72doas2kul2vpc76kru5u3gyda2pxjthbxwa7lr6yvi3idse' },
     Receipt: { ExitCode: 0, Return: null, GasUsed: 1751648 },
     ReturnDec: null,
     TipSet: [ [Object] ],
     Height: 246350 },
  id: 1 }
DEBUG: Lotus.sendFunds: receipt indicates no errors ==> returning true

@ghost
Copy link
Author

ghost commented Nov 18, 2020

See #164 for a couple of approaches to the underestimating funds needed problem

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant