fix
This commit is contained in:
parent
95d3213936
commit
0a6bf8d8d5
|
@ -2,4 +2,4 @@ const fs = require("fs");
|
|||
const micro_ipfs = require('./micro_ipfs.js');
|
||||
const jsonp = fs.readFileSync(process.argv[2], 'utf-8');
|
||||
const directory_hashes = JSON.parse(jsonp.substring('jsonp_ipfs_directory_hashes('.length, jsonp.length - ');\n'.length));
|
||||
console.log(micro_ipfs.ipfs_self_hash.find_vanity_node(null, 'soy', 0, directory_hashes));
|
||||
console.log(micro_ipfs.ipfs_self_hash.find_vanity_node(null, process.argv[3], 0, directory_hashes));
|
|
@ -21,6 +21,7 @@ cat > "$directory/ipfs-add.sh" <<'EOF'
|
|||
set -euET -o pipefail
|
||||
ipfs cid base32 "$(ipfs add --ignore-rules-path result/www/.ipfsignore --pin=false --hidden -Qr "$(dirname "$0")")"
|
||||
EOF
|
||||
chmod +x "$directory/ipfs-add.sh"
|
||||
|
||||
# TODO: use ipfs dag get instead of ipfs object get
|
||||
partial_hash="$(ipfs add --ignore-rules-path "$directory/.ipfsignore" --pin=false --hidden -Qr "$directory")"
|
||||
|
@ -32,7 +33,7 @@ write_directory_hashes() {
|
|||
}
|
||||
|
||||
write_directory_hashes "0"
|
||||
vanity_number="$(node "$(dirname "$0")/find_vanity.js" "$directory/directory_hashes.js")"
|
||||
vanity_number="$(node "$(dirname "$0")/find_vanity.js" "$directory/directory_hashes.js" "$vanity_text")"
|
||||
printf 'Found vanity number: %s\n' $vanity_number >&2
|
||||
write_directory_hashes "$vanity_number"
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user