Author Topic: GUIDE: How to remove unneeded keys from Bitshares 0.9.3 export_keys json  (Read 16359 times)

0 Members and 1 Guest are viewing this topic.

Offline svk

Instructions for the novice Windows user:

You will need to download nodejs, git, and Python 3 first and foremost.

  • Open a command prompt by typing "cmd" in your windows search in the start menu
  • Clone the graphene-ui repoby typing "git clone https://github.com/cryptonomex/graphene-ui.git" in the cmd window. (remember that what ever directory/file location is showing on the prompt is where the graphen-ui download will be located
  • Now change the directory to the graphene-ui file location, type
Code: [Select]
cd C:\your\file\location\graphene-ui\bloom_filter
  • then type
Code: [Select]
npm install
  • Now find the wallet file you downloaded from Bitshares 0.93 and change the wallet name to
Code: [Select]
wallet.json
  • Copy the newly named wallet.json file
  • open the graphene-ui file location (the actual file, not in the cmd). Then open the "bloom_filter" file and paste the new wallet.json file inside
  • Go back to the command prompt and type
Code: [Select]
npm run start-windows

    In the cmd window you will see it start to run and depending on how many keys you have it could take a little while. Also you should see the sha 1 sum at the beginning too (3cee441d8d28.......)
    When it is finished you will have the a file with only the necessary keys linked to accounts and balances.

    The new key file is in the graphene-ui/bloom_filter file and it is called
    Code: [Select]
    filtered_wallet.json
    This just worked for me again to make sure my directions were correct. Unless someone changes things in the graphene-ui file you download from git.

    Thanks for the write-up!
    Worker: dev.bitsharesblocks

    Offline Bitshiz

    • Jr. Member
    • **
    • Posts: 37
      • View Profile
    Instructions for the novice Windows user:

    You will need to download nodejs, git, and Python 3 first and foremost.

    • Open a command prompt by typing "cmd" in your windows search in the start menu
    • Clone the graphene-ui repoby typing "git clone https://github.com/cryptonomex/graphene-ui.git" in the cmd window. (remember that what ever directory/file location is showing on the prompt is where the graphen-ui download will be located
    • Now change the directory to the graphene-ui file location, type
    Code: [Select]
    cd C:\your\file\location\graphene-ui\bloom_filter
    • then type
    Code: [Select]
    npm install
    • Now find the wallet file you downloaded from Bitshares 0.93 and change the wallet name to
    Code: [Select]
    wallet.json
    • Copy the newly named wallet.json file
    • open the graphene-ui file location (the actual file, not in the cmd). Then open the "bloom_filter" file and paste the new wallet.json file inside
    • Go back to the command prompt and type
    Code: [Select]
    npm run start-windows

      In the cmd window you will see it start to run and depending on how many keys you have it could take a little while. Also you should see the sha 1 sum at the beginning too (3cee441d8d28.......)
      When it is finished you will have the a file with only the necessary keys linked to accounts and balances.

      The new key file is in the graphene-ui/bloom_filter file and it is called
      Code: [Select]
      filtered_wallet.json
      This just worked for me again to make sure my directions were correct. Unless someone changes things in the graphene-ui file you download from git.
      « Last Edit: January 23, 2017, 11:49:21 pm by Bitshiz »


      Offline svk

      Well I just got this error now:
      Quote
      C:\Users\skysc\graphene-ui\bloom_filter>npm run start-windows

      > bitshares-keys-bloom-filter@1.0.0 start-windows C:\Users\skysc\graphene-ui\bloom_filter
      > type wallet.json | node bloom_filter_wallet.js > filtered_wallet.json

      bloom_bitshares.dat (1048576 bytes) sha1 3cee441d8d28ab3b26aea149630fa2a96a91845c

      C:\Users\skysc\graphene-ui\bloom_filter\bloom_filter_wallet.js:59
              var inputJSON = inputChunks.join("")
                                          ^

      RangeError: Invalid string length
          at Array.join (native)
          at Socket.<anonymous> (C:\Users\skysc\graphene-ui\bloom_filter\bloom_filter_wallet.js:59:37)
          at emitNone (events.js:91:20)
          at Socket.emit (events.js:185:7)
          at endReadableNT (_stream_readable.js:974:12)
          at _combinedTickCallback (internal/process/next_tick.js:74:11)
          at process._tickCallback (internal/process/next_tick.js:98:9)

      npm ERR! Windows_NT 10.0.14393
      npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "start-windows"
      npm ERR! node v6.9.4
      npm ERR! npm  v3.10.10
      npm ERR! code ELIFECYCLE
      npm ERR! bitshares-keys-bloom-filter@1.0.0 start-windows: `type wallet.json | node bloom_filter_wallet.js > filtered_wallet.json`
      npm ERR! Exit status 1
      npm ERR!
      npm ERR! Failed at the bitshares-keys-bloom-filter@1.0.0 start-windows script 'type wallet.json | node bloom_filter_wallet.js > filtered_wallet.json'.
      npm ERR! Make sure you have the latest version of node.js and npm installed.
      npm ERR! If you do, this is most likely a problem with the bitshares-keys-bloom-filter package,
      npm ERR! not with npm itself.
      npm ERR! Tell the author that this fails on your system:
      npm ERR!     type wallet.json | node bloom_filter_wallet.js > filtered_wallet.json
      npm ERR! You can get information on how to open an issue for this project with:
      npm ERR!     npm bugs bitshares-keys-bloom-filter
      npm ERR! Or if that isn't available, you can get their info via:
      npm ERR!     npm owner ls bitshares-keys-bloom-filter
      npm ERR! There is likely additional logging output above.

      npm ERR! Please include the following file with any support request:
      npm ERR!     C:\Users\skysc\graphene-ui\bloom_filter\npm-debug.log



      I deleted graphene-ui and cloned it again before I ran this. I then ran "npm install" and copied my wallet.json(I changed the name to wallet.json) file to the bloom_filter folder.

      I figured it out! Kind of. My json file is over a 1,013,686KB. So it is too big of a json file. I tried on another wallet file that is only 90,252KB and it is working. Is there any way to get this to work on a larger file? I don't think I am missing any balances but just curious what the limit or why there would be a limit on the json file size?

      Quote
      kept 2099 of 534165 keys

      kept 2102 of 534168 keys

      kept 2103 of 534169 keys
      Thanks @svk

      Wow that is a lot of keys! I have a 16MB json file myself but it only has around 85k keys.

      If you're able to edit the file it's certainly possible to cut and paste the keys inside and assemble multiple smaller files. You'll have to do that by hand though, I recommend sublime editor for big JSON files like that.
      Worker: dev.bitsharesblocks

      Offline Bitshiz

      • Jr. Member
      • **
      • Posts: 37
        • View Profile
      Well I just got this error now:
      Quote
      C:\Users\skysc\graphene-ui\bloom_filter>npm run start-windows

      > bitshares-keys-bloom-filter@1.0.0 start-windows C:\Users\skysc\graphene-ui\bloom_filter
      > type wallet.json | node bloom_filter_wallet.js > filtered_wallet.json

      bloom_bitshares.dat (1048576 bytes) sha1 3cee441d8d28ab3b26aea149630fa2a96a91845c

      C:\Users\skysc\graphene-ui\bloom_filter\bloom_filter_wallet.js:59
              var inputJSON = inputChunks.join("")
                                          ^

      RangeError: Invalid string length
          at Array.join (native)
          at Socket.<anonymous> (C:\Users\skysc\graphene-ui\bloom_filter\bloom_filter_wallet.js:59:37)
          at emitNone (events.js:91:20)
          at Socket.emit (events.js:185:7)
          at endReadableNT (_stream_readable.js:974:12)
          at _combinedTickCallback (internal/process/next_tick.js:74:11)
          at process._tickCallback (internal/process/next_tick.js:98:9)

      npm ERR! Windows_NT 10.0.14393
      npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "start-windows"
      npm ERR! node v6.9.4
      npm ERR! npm  v3.10.10
      npm ERR! code ELIFECYCLE
      npm ERR! bitshares-keys-bloom-filter@1.0.0 start-windows: `type wallet.json | node bloom_filter_wallet.js > filtered_wallet.json`
      npm ERR! Exit status 1
      npm ERR!
      npm ERR! Failed at the bitshares-keys-bloom-filter@1.0.0 start-windows script 'type wallet.json | node bloom_filter_wallet.js > filtered_wallet.json'.
      npm ERR! Make sure you have the latest version of node.js and npm installed.
      npm ERR! If you do, this is most likely a problem with the bitshares-keys-bloom-filter package,
      npm ERR! not with npm itself.
      npm ERR! Tell the author that this fails on your system:
      npm ERR!     type wallet.json | node bloom_filter_wallet.js > filtered_wallet.json
      npm ERR! You can get information on how to open an issue for this project with:
      npm ERR!     npm bugs bitshares-keys-bloom-filter
      npm ERR! Or if that isn't available, you can get their info via:
      npm ERR!     npm owner ls bitshares-keys-bloom-filter
      npm ERR! There is likely additional logging output above.

      npm ERR! Please include the following file with any support request:
      npm ERR!     C:\Users\skysc\graphene-ui\bloom_filter\npm-debug.log



      I deleted graphene-ui and cloned it again before I ran this. I then ran "npm install" and copied my wallet.json(I changed the name to wallet.json) file to the bloom_filter folder.

      I figured it out! Kind of. My json file is over a 1,013,686KB. So it is too big of a json file. I tried on another wallet file that is only 90,252KB and it is working. Is there any way to get this to work on a larger file? I don't think I am missing any balances but just curious what the limit or why there would be a limit on the json file size?

      Quote
      kept 2099 of 534165 keys

      kept 2102 of 534168 keys

      kept 2103 of 534169 keys
      Thanks @svk 
      « Last Edit: January 18, 2017, 06:00:56 pm by Bitshiz »

      Offline svk

      Any help with this error. I cant upload my .json to the web client because I have too many keys and it crashes every fucking time. been trying to access my BTS for over a year and finally tried this manual but am getting this error. ANyone know what this is? And how to fix? This happens after I run
      Code: [Select]
      OLD_WALLET_NAME.json | node ./bloom_filter_wallet.js > NEW_WALLET_NAME.json but with my wallet names. Doing this through windows 10 64 and I have downloaded everything this tutorial says.


      Code: [Select]
      module.js:471
          throw err;
          ^

      Error: Cannot find module '../web/lib/common/hash'
          at Function.Module._resolveFilename (module.js:469:15)
          at Function.Module._load (module.js:417:25)
          at Module.require (module.js:497:17)
          at require (internal/module.js:20:19)
          at Object.<anonymous> (C:\Users\skysc\graphene-ui\programs\bloom_filter_wallet.js:20:9)
          at Module._compile (module.js:570:32)
          at Object.Module._extensions..js (module.js:579:10)
          at Module.load (module.js:487:32)
          at tryModuleLoad (module.js:446:12)
          at Function.Module._load (module.js:438:3)
          at Module.runMain (module.js:604:10)
          at run (bootstrap_node.js:394:7)
          at startup (bootstrap_node.js:149:9)
          at bootstrap_node.js:509:3

      Ok I had a look and it was indeed trying to load modules that no longer exist. I pushed an update and also included a bloom_bitshares.dat file that you can use if don't want to compile your own.

      To run the filter now, just go to the "bloom_filter" folder, run "npm i" to get the dependencies, name your old wallet file "wallet.json" then  do "npm start". The output will be in a file called "filtered_wallet.json"

      I didn't have an old wallet.json file to test it with so the npm start method might not work properly, if so just run it manually like the original instructions said.

      so I tried it and got this error because of the 'cat' command:
      Code: [Select]
      'cat' is not recognized as an internal or external command,
      operable program or batch file.

      npm ERR! Windows_NT 10.0.14393
      npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "start"
      npm ERR! node v6.9.4
      npm ERR! npm  v3.10.10
      npm ERR! code ELIFECYCLE
      npm ERR! bitshares-keys-bloom-filter@1.0.0 start: `cat wallet.json | node bloom_filter_wallet.js > filtered_wallet.json`
      npm ERR! Exit status 255
      npm ERR!
      npm ERR! Failed at the bitshares-keys-bloom-filter@1.0.0 start script 'cat wallet.json | node bloom_filter_wallet.js > filtered_wallet.json'.
      npm ERR! Make sure you have the latest version of node.js and npm installed.
      npm ERR! If you do, this is most likely a problem with the bitshares-keys-bloom-filter package,
      npm ERR! not with npm itself.
      npm ERR! Tell the author that this fails on your system:
      npm ERR!     cat wallet.json | node bloom_filter_wallet.js > filtered_wallet.json
      npm ERR! You can get information on how to open an issue for this project with:
      npm ERR!     npm bugs bitshares-keys-bloom-filter
      npm ERR! Or if that isn't available, you can get their info via:
      npm ERR!     npm owner ls bitshares-keys-bloom-filter
      npm ERR! There is likely additional logging output above.

      npm ERR! Please include the following file with any support request:
      npm ERR!     C:\Users\skysc\graphene-ui\bloom_filter\npm-debug.log

      C:\Users\skysc\graphene-ui\bloom_filter>

      I then tried to follow instructions from the original post and got error:

      Code: [Select]
      C:\Users\skysc\graphene-ui\bloom_filter>wallet.json | node ./bloom_filter_wallet.js > filtered_wallet.json'
      C:\Users\skysc\graphene-ui\bloom_filter\bloom_filter_wallet.js:29
          if (err) throw err
                   ^

      Error: ENOENT: no such file or directory, open 'C:\Users\skysc\graphene-ui\bloom_filter\bloom.dat'
          at Error (native)


      So then i decided to switch out my original bloom.dat file I created yesterday instaed of using the bloom_bitshares.dat and then got this error:

      Code: [Select]
      C:\Users\skysc\graphene-ui\bloom_filter>wallet.json | node ./bloom_filter_wallet.js > filtered_wallet.json
      bloom_bitshares.dat (1048576 bytes) sha

      undefined:1



      SyntaxError: Unexpected end of JSON input
          at Object.parse (native)
          at Socket.<anonymous> (C:\Users\skysc\graphene-ui\bloom_filter\bloom_filter_wallet.js:59:27)
          at emitNone (events.js:91:20)
          at Socket.emit (events.js:185:7)
          at endReadableNT (_stream_readable.js:974:12)
          at _combinedTickCallback (internal/process/next_tick.js:74:11)
          at process._tickCallback (internal/process/next_tick.js:98:9)

      Those instructions assume a Linux environment, the cat command is not available on Windows. You also need to fetch the latest version, there is no long a reference to web/lib/common/hash so apparently you're not using the latest release.

      I've identified a bug however so I've pushed a new version just now, and this time I've tested it with an old wallet.json I had lying around so I know it works. I've also added a npm script for windows that you can use, try this in your node console:

      Code: [Select]
      npm run start-windows
      Your wallet  json file must be called wallet.json for this to work.
      Worker: dev.bitsharesblocks

      Offline Bitshiz

      • Jr. Member
      • **
      • Posts: 37
        • View Profile
      Any help with this error. I cant upload my .json to the web client because I have too many keys and it crashes every fucking time. been trying to access my BTS for over a year and finally tried this manual but am getting this error. ANyone know what this is? And how to fix? This happens after I run
      Code: [Select]
      OLD_WALLET_NAME.json | node ./bloom_filter_wallet.js > NEW_WALLET_NAME.json but with my wallet names. Doing this through windows 10 64 and I have downloaded everything this tutorial says.


      Code: [Select]
      module.js:471
          throw err;
          ^

      Error: Cannot find module '../web/lib/common/hash'
          at Function.Module._resolveFilename (module.js:469:15)
          at Function.Module._load (module.js:417:25)
          at Module.require (module.js:497:17)
          at require (internal/module.js:20:19)
          at Object.<anonymous> (C:\Users\skysc\graphene-ui\programs\bloom_filter_wallet.js:20:9)
          at Module._compile (module.js:570:32)
          at Object.Module._extensions..js (module.js:579:10)
          at Module.load (module.js:487:32)
          at tryModuleLoad (module.js:446:12)
          at Function.Module._load (module.js:438:3)
          at Module.runMain (module.js:604:10)
          at run (bootstrap_node.js:394:7)
          at startup (bootstrap_node.js:149:9)
          at bootstrap_node.js:509:3

      Ok I had a look and it was indeed trying to load modules that no longer exist. I pushed an update and also included a bloom_bitshares.dat file that you can use if don't want to compile your own.

      To run the filter now, just go to the "bloom_filter" folder, run "npm i" to get the dependencies, name your old wallet file "wallet.json" then  do "npm start". The output will be in a file called "filtered_wallet.json"

      I didn't have an old wallet.json file to test it with so the npm start method might not work properly, if so just run it manually like the original instructions said.

      so I tried it and got this error because of the 'cat' command:
      Code: [Select]
      'cat' is not recognized as an internal or external command,
      operable program or batch file.

      npm ERR! Windows_NT 10.0.14393
      npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "start"
      npm ERR! node v6.9.4
      npm ERR! npm  v3.10.10
      npm ERR! code ELIFECYCLE
      npm ERR! bitshares-keys-bloom-filter@1.0.0 start: `cat wallet.json | node bloom_filter_wallet.js > filtered_wallet.json`
      npm ERR! Exit status 255
      npm ERR!
      npm ERR! Failed at the bitshares-keys-bloom-filter@1.0.0 start script 'cat wallet.json | node bloom_filter_wallet.js > filtered_wallet.json'.
      npm ERR! Make sure you have the latest version of node.js and npm installed.
      npm ERR! If you do, this is most likely a problem with the bitshares-keys-bloom-filter package,
      npm ERR! not with npm itself.
      npm ERR! Tell the author that this fails on your system:
      npm ERR!     cat wallet.json | node bloom_filter_wallet.js > filtered_wallet.json
      npm ERR! You can get information on how to open an issue for this project with:
      npm ERR!     npm bugs bitshares-keys-bloom-filter
      npm ERR! Or if that isn't available, you can get their info via:
      npm ERR!     npm owner ls bitshares-keys-bloom-filter
      npm ERR! There is likely additional logging output above.

      npm ERR! Please include the following file with any support request:
      npm ERR!     C:\Users\skysc\graphene-ui\bloom_filter\npm-debug.log

      C:\Users\skysc\graphene-ui\bloom_filter>

      I then tried to follow instructions from the original post and got error:

      Code: [Select]
      C:\Users\skysc\graphene-ui\bloom_filter>wallet.json | node ./bloom_filter_wallet.js > filtered_wallet.json'
      C:\Users\skysc\graphene-ui\bloom_filter\bloom_filter_wallet.js:29
          if (err) throw err
                   ^

      Error: ENOENT: no such file or directory, open 'C:\Users\skysc\graphene-ui\bloom_filter\bloom.dat'
          at Error (native)


      So then i decided to switch out my original bloom.dat file I created yesterday instaed of using the bloom_bitshares.dat and then got this error:

      Code: [Select]
      C:\Users\skysc\graphene-ui\bloom_filter>wallet.json | node ./bloom_filter_wallet.js > filtered_wallet.json
      bloom_bitshares.dat (1048576 bytes) sha

      undefined:1



      SyntaxError: Unexpected end of JSON input
          at Object.parse (native)
          at Socket.<anonymous> (C:\Users\skysc\graphene-ui\bloom_filter\bloom_filter_wallet.js:59:27)
          at emitNone (events.js:91:20)
          at Socket.emit (events.js:185:7)
          at endReadableNT (_stream_readable.js:974:12)
          at _combinedTickCallback (internal/process/next_tick.js:74:11)
          at process._tickCallback (internal/process/next_tick.js:98:9)
      « Last Edit: January 17, 2017, 05:34:26 pm by Bitshiz »

      Offline Bitshiz

      • Jr. Member
      • **
      • Posts: 37
        • View Profile
      Any help with this error. I cant upload my .json to the web client because I have too many keys and it crashes every fucking time. been trying to access my BTS for over a year and finally tried this manual but am getting this error. ANyone know what this is? And how to fix? This happens after I run
      Code: [Select]
      OLD_WALLET_NAME.json | node ./bloom_filter_wallet.js > NEW_WALLET_NAME.json but with my wallet names. Doing this through windows 10 64 and I have downloaded everything this tutorial says.


      Code: [Select]
      module.js:471
          throw err;
          ^

      Error: Cannot find module '../web/lib/common/hash'
          at Function.Module._resolveFilename (module.js:469:15)
          at Function.Module._load (module.js:417:25)
          at Module.require (module.js:497:17)
          at require (internal/module.js:20:19)
          at Object.<anonymous> (C:\Users\skysc\graphene-ui\programs\bloom_filter_wallet.js:20:9)
          at Module._compile (module.js:570:32)
          at Object.Module._extensions..js (module.js:579:10)
          at Module.load (module.js:487:32)
          at tryModuleLoad (module.js:446:12)
          at Function.Module._load (module.js:438:3)
          at Module.runMain (module.js:604:10)
          at run (bootstrap_node.js:394:7)
          at startup (bootstrap_node.js:149:9)
          at bootstrap_node.js:509:3

      Ok I had a look and it was indeed trying to load modules that no longer exist. I pushed an update and also included a bloom_bitshares.dat file that you can use if don't want to compile your own.

      To run the filter now, just go to the "bloom_filter" folder, run "npm i" to get the dependencies, name your old wallet file "wallet.json" then  do "npm start". The output will be in a file called "filtered_wallet.json"

      I didn't have an old wallet.json file to test it with so the npm start method might not work properly, if so just run it manually like the original instructions said.
      Thank you! I will try it today.

      Offline Bitshiz

      • Jr. Member
      • **
      • Posts: 37
        • View Profile
      Any help with this error. I cant upload my .json to the web client because I have too many keys and it crashes every fucking time. been trying to access my BTS for over a year and finally tried this manual but am getting this error. ANyone know what this is? And how to fix? This happens after I run
      Code: [Select]
      OLD_WALLET_NAME.json | node ./bloom_filter_wallet.js > NEW_WALLET_NAME.json but with my wallet names. Doing this through windows 10 64 and I have downloaded everything this tutorial says.


      Code: [Select]
      module.js:471
          throw err;
          ^

      Error: Cannot find module '../web/lib/common/hash'
          at Function.Module._resolveFilename (module.js:469:15)
          at Function.Module._load (module.js:417:25)
          at Module.require (module.js:497:17)
          at require (internal/module.js:20:19)
          at Object.<anonymous> (C:\Users\skysc\graphene-ui\programs\bloom_filter_wallet.js:20:9)
          at Module._compile (module.js:570:32)
          at Object.Module._extensions..js (module.js:579:10)
          at Module.load (module.js:487:32)
          at tryModuleLoad (module.js:446:12)
          at Function.Module._load (module.js:438:3)
          at Module.runMain (module.js:604:10)
          at run (bootstrap_node.js:394:7)
          at startup (bootstrap_node.js:149:9)
          at bootstrap_node.js:509:3

      Like Chris mentioned you could try the light wallet as it includes the bloom filter directly, as does https://bitshares.org/wallet I believe.

      The bloom filter program in the graphene-ui repo is probably out of sync with the location of files in the repo right now after I moved a lot of things around, I'll have a look and update it if necessary.
      The light wallet crashes every time I try to load it. I suspect it is because my account has so many keys as in BTSX I was trading every day, many trades a day. I also have about 35 accounts but only used probably 4 of them although I did send small amounts to about 10  others out of the 35. The wallet file I am trying to import only had 3 acounts attached and is 1,013,686 KB, so it is a large json file. But every time i try to load it into the light client, after about 10 minutes the entire screen goes white. I have smaller wallet files with more accounts because it was before I regenerated many keys and when I load those it will eventually list all my accounts in the light client but when I hit claim balances, after an hour or more the client freezes up too.

      Offline svk

      Any help with this error. I cant upload my .json to the web client because I have too many keys and it crashes every fucking time. been trying to access my BTS for over a year and finally tried this manual but am getting this error. ANyone know what this is? And how to fix? This happens after I run
      Code: [Select]
      OLD_WALLET_NAME.json | node ./bloom_filter_wallet.js > NEW_WALLET_NAME.json but with my wallet names. Doing this through windows 10 64 and I have downloaded everything this tutorial says.


      Code: [Select]
      module.js:471
          throw err;
          ^

      Error: Cannot find module '../web/lib/common/hash'
          at Function.Module._resolveFilename (module.js:469:15)
          at Function.Module._load (module.js:417:25)
          at Module.require (module.js:497:17)
          at require (internal/module.js:20:19)
          at Object.<anonymous> (C:\Users\skysc\graphene-ui\programs\bloom_filter_wallet.js:20:9)
          at Module._compile (module.js:570:32)
          at Object.Module._extensions..js (module.js:579:10)
          at Module.load (module.js:487:32)
          at tryModuleLoad (module.js:446:12)
          at Function.Module._load (module.js:438:3)
          at Module.runMain (module.js:604:10)
          at run (bootstrap_node.js:394:7)
          at startup (bootstrap_node.js:149:9)
          at bootstrap_node.js:509:3

      Ok I had a look and it was indeed trying to load modules that no longer exist. I pushed an update and also included a bloom_bitshares.dat file that you can use if don't want to compile your own.

      To run the filter now, just go to the "bloom_filter" folder, run "npm i" to get the dependencies, name your old wallet file "wallet.json" then  do "npm start". The output will be in a file called "filtered_wallet.json"

      I didn't have an old wallet.json file to test it with so the npm start method might not work properly, if so just run it manually like the original instructions said.
      Worker: dev.bitsharesblocks

      Offline svk

      Any help with this error. I cant upload my .json to the web client because I have too many keys and it crashes every fucking time. been trying to access my BTS for over a year and finally tried this manual but am getting this error. ANyone know what this is? And how to fix? This happens after I run
      Code: [Select]
      OLD_WALLET_NAME.json | node ./bloom_filter_wallet.js > NEW_WALLET_NAME.json but with my wallet names. Doing this through windows 10 64 and I have downloaded everything this tutorial says.


      Code: [Select]
      module.js:471
          throw err;
          ^

      Error: Cannot find module '../web/lib/common/hash'
          at Function.Module._resolveFilename (module.js:469:15)
          at Function.Module._load (module.js:417:25)
          at Module.require (module.js:497:17)
          at require (internal/module.js:20:19)
          at Object.<anonymous> (C:\Users\skysc\graphene-ui\programs\bloom_filter_wallet.js:20:9)
          at Module._compile (module.js:570:32)
          at Object.Module._extensions..js (module.js:579:10)
          at Module.load (module.js:487:32)
          at tryModuleLoad (module.js:446:12)
          at Function.Module._load (module.js:438:3)
          at Module.runMain (module.js:604:10)
          at run (bootstrap_node.js:394:7)
          at startup (bootstrap_node.js:149:9)
          at bootstrap_node.js:509:3

      Like Chris mentioned you could try the light wallet as it includes the bloom filter directly, as does https://bitshares.org/wallet I believe.

      The bloom filter program in the graphene-ui repo is probably out of sync with the location of files in the repo right now after I moved a lot of things around, I'll have a look and update it if necessary.
      Worker: dev.bitsharesblocks

      Offline Bitshiz

      • Jr. Member
      • **
      • Posts: 37
        • View Profile
      Any help with this error. I cant upload my .json to the web client because I have too many keys and it crashes every fucking time. been trying to access my BTS for over a year and finally tried this manual but am getting this error. ANyone know what this is? And how to fix? This happens after I run
      Code: [Select]
      OLD_WALLET_NAME.json | node ./bloom_filter_wallet.js > NEW_WALLET_NAME.json but with my wallet names. Doing this through windows 10 64 and I have downloaded everything this tutorial says.


      Code: [Select]
      module.js:471
          throw err;
          ^

      Error: Cannot find module '../web/lib/common/hash'
          at Function.Module._resolveFilename (module.js:469:15)
          at Function.Module._load (module.js:417:25)
          at Module.require (module.js:497:17)
          at require (internal/module.js:20:19)
          at Object.<anonymous> (C:\Users\skysc\graphene-ui\programs\bloom_filter_wallet.js:20:9)
          at Module._compile (module.js:570:32)
          at Object.Module._extensions..js (module.js:579:10)
          at Module.load (module.js:487:32)
          at tryModuleLoad (module.js:446:12)
          at Function.Module._load (module.js:438:3)
          at Module.runMain (module.js:604:10)
          at run (bootstrap_node.js:394:7)
          at startup (bootstrap_node.js:149:9)
          at bootstrap_node.js:509:3

      Offline Chris4210

      • Sr. Member
      • ****
      • Posts: 431
      • Keep Building!
        • View Profile
        • www.payger.com
      • BitShares: chris4210
      Yes, the filter is integrated in the light wallet too.

      Just download the standard Windows light client and upload your backup to integrate to 2.0 .
      Vote Chris4210 for Committee Member http://bit.ly/1WKC03B! | www.Payger.com - Payments + Messenger | www.BitShareshub.io - Community based fanpage for the BitShares Blockchain

      Offline ripplexiaoshan

      • Board Moderator
      • Hero Member
      • *****
      • Posts: 2300
        • View Profile
      • BitShares: jademont
      BTS committee member:jademont

      Offline cass

      • Hero Member
      • *****
      • Posts: 4311
      • /(┬.┬)\
        • View Profile
      works like a charme .. at least for me .. thx for this script!
      █║▌║║█  - - -  The quieter you become, the more you are able to hear  - - -  █║▌║║█