Skip to content

Instantly share code, notes, and snippets.

@matiu
Created November 11, 2014 14:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matiu/64730ea6a76053ba609b to your computer and use it in GitHub Desktop.
Save matiu/64730ea6a76053ba609b to your computer and use it in GitHub Desktop.
Test Copay
  1. Insight commit 70fc47f343417a5bd71241d42bd579c2949b54ef Author: Rainer Koirikivi rainer@koirikivi.fi Date: Mon Nov 3 22:59:38 2014 +0200

    Friendlier error reporting for sendRawTransaction

  2. borro emailstorage db

  3. corro insight: ⚡ ENABLE_MAILBOX='true' ENABLE_EMAILSTORE='true' npm start

  4. copay: commit 40a13ecef8d4a02095d71c0741ae2d9e45058438 Author: Matias Alejo Garcia ematiu@gmail.com Date: Sat Nov 1 22:01:36 2014 -0300

    New release v0.7.2

  5. grunt

  6. voy a la config y pongo

EncryptedInsightStorage: { // THIS IS WRONG BUT DO NOT CHANGE IT WITH OUT A MIGRATION PLAN // ALSO CHANGE THE DEFAULT AT js/plugins/InsightStorage.js // //url: 'https://test-insight.bitpay.com:443/api/email' url: 'http://localhost:3001/api/email' },

  1. corro copay: npm start

  2. borro el localstorage completo

  3. voy a settings y pongo http://localhost:3001 en testnet y livenet y log level: DEBUG

  4. voy a create profile: 1@1.com , pass: 1 crea. Hago 2 addresses. Veo en Insight: POST /api/email/register 200 3ms - 16b

  5. Paro insight

  6. traigo: $ git pull --rebase b master $ git pull --rebase origin feature/tools2

  7. migro: $ node util/migration.js $ mv ~/.insight/testnet/emailstore ~/.insight/testnet/emailstore.old $ mv ~/.insight/testnet/emailstore.migrated/ ~/.insight/testnet/emailstore

  8. corro insight: ENABLE_MAILBOX='true' ENABLE_EMAILSTORE='true' npm start

  9. SIN tratar de entrar con copay 0.7.2 hago, traigo

  10. git stash; git checkout fix/encrypt-compat ; grunt

  11. voy a settings y pongo localhost:3001 en testnet y livenet (ya esta) y GRABO

  12. ingreso con 1@1.com y password:1 y funciona

en el log de Insight:

GET /api/email/retrieve?key=profile%3A%3Ada2d8653a8dbec8283095941c42d1f5a68c3c091 403 3ms - 40b GET /api/email/retrieve?key=profile%3A%3Ada2d8653a8dbec8283095941c42d1f5a68c3c091 200 1ms - 289b POST /api/email/change_passphrase 200 1ms - 16b GET /api/email/retrieve?key=wallet%3A%3A2d13e4e2c9b3b74e 200 3ms

de Copay: [debug: EncryptedInsightStorage.InsightStorage._makeGetRequest (http://localhost:3000/js/copayBundle.js:7743:7)] Insight request Object {url: "http://localhost:3001/api/email/retrieve?key=profile%3A%3Ada2d8653a8dbec8283095941c42d1f5a68c3c091", headers: Object} copayBundle.js:192 [debug: EncryptedInsightStorage.InsightStorage._brokenGetItem (http://localhost:3000/js/copayBundle.js:7763:7)] using legacy get copayBundle.js:192 luego: copayBundle.js:192 [info: Object.module.exports.decrypt (http://localhost:3000/js/copayBundle.js:8021:11)] Decryption failed due to error: ccm: tag doesn't match copayBundle.js:192 [debug: http://localhost:3000/js/copayBundle.js:7237:13] Could not decrypt value using current decryption schema copayBundle.js:192 [debug: EncryptedInsightStorage._brokenDecrypt (http://localhost:3000/js/copayBundle.js:7222:7)] Trying legacy decrypt

etc.

  1. veo los 2 addresses

  2. si salgo y entro de vuelta, ya hizo el upgrade así que no aparece _brokenGetItem ni _brokenDecrypt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment