We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
block get
0.4.13
Bug
Using ipfs block put and then ipfs block get can result in an exception being thrown.
ipfs block put
ipfs block get
Easy to demo:
╰─➤ echo '{"hi": "there"}' | ipfs block put --mhtype keccak-256 cZsyN1Re3C3wayTpNMMAHS8NYLbU7CJABUv63cF4V4yT3b ╰─➤ ipfs block get cZsyN1Re3C3wayTpNMMAHS8NYLbU7CJABUv63cF4V4yT3b Error: illegal base32 data at input byte 4
This doesn't happen with other hashing algs (though sha3-256 doesn't work for a different reason):
╰─➤ echo '{"hi": "there"}' | ipfs block put QmctZwqj5wpathnW2vW1dujTGAEWap4kbuGV9uhWGDTqw3 ╰─➤ ipfs block get QmctZwqj5wpathnW2vW1dujTGAEWap4kbuGV9uhWGDTqw3 {"hi": "there"} ╰─➤ echo '{"hi": "there"}' | ipfs block put --mhtype sha3-256 W1ke9EmidoZq1gzEffrPJsCC55iuWijqoXfgaejB1KRv1K ╰─➤ ipfs block get W1ke9EmidoZq1gzEffrPJsCC55iuWijqoXfgaejB1KRv1K Error: selected encoding not supported
It'd be really nice to use keccak-256 because it's the cheapest on Ethereum.
keccak-256
The text was updated successfully, but these errors were encountered:
This is caused by block put not switching to cidv1 when a custom multihash settings are provided. This is already fixed in #4563
block put
Sorry, something went wrong.
No branches or pull requests
Version information:
0.4.13
Type:
Bug
Description:
Using
ipfs block put
and thenipfs block get
can result in an exception being thrown.Easy to demo:
This doesn't happen with other hashing algs (though sha3-256 doesn't work for a different reason):
It'd be really nice to use
keccak-256
because it's the cheapest on Ethereum.The text was updated successfully, but these errors were encountered: