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

Commit

Permalink
Update suggested CID; don't break V0 cids
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Goelzer committed Nov 12, 2020
1 parent 37d2fd2 commit 2d24b4d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/background/Node.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,9 @@ class Node {
}

const decoded = decodeCID(cid);
ports.postLog(`DEBUG: handleQueryResponse: decoded cid = ${inspect(decoded)}`);

if (decoded.format !== 'raw') {
if ((decoded.format !== 'raw') && (decoded.version === 1)) {
ports.alertError(`CIDs >2MB not yet supported`);
ports.postLog(`DEBUG: CIDs >2MB not yet supported. Format not supported: ${decoded.format}`);
return;
Expand Down
2 changes: 1 addition & 1 deletion src/popup/App/Home/QueryForm/QueryForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function QueryForm(props) {
Query Retrieval Network by CID
</Label>
<SubLabel className="mb-2 sublabel-text">
(Tip: try QmVmEHjr6xtNxHDbJ7kXenYMH6C4ZGpjqNnMeAEk9dQcR3)
(Tip: try bafk2bzacebhlhbcnhmvover42qq5bx773c522skieho6nhtbz7d2ow3f4sw24 on miner f019243)
</SubLabel>
<div className="flex">
<Input ref={register({ required: 'Required' })} name="cid" className="flex-1 mr-4" />
Expand Down

0 comments on commit 2d24b4d

Please sign in to comment.