Coder Social home page Coder Social logo

Comments (3)

matiu avatar matiu commented on August 23, 2024

Sorry, this a
Due to a already fixed problem on bitcore. Can you use the github version
of bitcore? Will update the package soon. You can continue the sync after
updating bitcore (run without -D)

On Sunday, June 1, 2014, thedawnrider [email protected] wrote:

I'm trying to sync the insight database for a testnet instance and the
sync process crashes at about 80% through.

I've tried util/sync.js -D and it always crashes at the same point in the
sync.

It seems like this is happening in a multisig transaction (from the
stacktrace below):
bitcore/lib/Address.js:122
Almost certainly this one

http://test.insight.is/tx/2c63aa814701cef5dbd4bbaddab3fea9117028f2434dddcdab8339141e9b14d1

I'm afraid that's as far as I could get debugging this issue.

The stack trace from the error is:

insight server listening on port 3001 in production mode
info: Resuming sync from block: 00000000a0dff26bb4a33874a8ddcbb06b4ab8fce787e6bd7319e05ede36ab55 #204625
info: Seeking file to:00000000a0dff26bb4a33874a8ddcbb06b4ab8fce787e6bd7319e05ede36ab55
Reading Blockfile /home/ubuntu/.bitcoin/testnet3/blocks/blk00003.dat [127 MB]
... [some p2p_sync messages] ...
FOUND Starting Block!
info: Got 204625 blocks in current DB, out of 258500 block at bitcoind
info: bitcoind dataDir configured...importing blocks from .dat files
info: First file index: 3
info: Starting from: 00000000a0dff26bb4a33874a8ddcbb06b4ab8fce787e6bd7319e05ede36ab55
info: status: [79.159%]

crypto.js:209
this._binding.update(data, encoding);
^
TypeError: Not a string or buffer
at Hash.update (crypto.js:209:17)
at exports.sha256 (/home/ubuntu/insight-api/node_modules/bitcore/util/util.js:14:49)
at Object.exports.sha256ripe160 (/home/ubuntu/insight-api/node_modules/bitcore/util/util.js:55:18)
at new Address.fromScriptPubKey (/home/ubuntu/insight-api/node_modules/bitcore/lib/Address.js:122:33)
at /home/ubuntu/insight-api/lib/TransactionDb.js:509:19
at Array.map (native)
at TransactionDb.getStandardizedTx (/home/ubuntu/insight-api/lib/TransactionDb.js:505:21)
at /home/ubuntu/insight-api/lib/HistoricSync.js:139:30
at Array.map (native)
at HistoricSync.getStandardizedBlock (/home/ubuntu/insight-api/lib/HistoricSync.js:138:20)
at /home/ubuntu/insight-api/lib/HistoricSync.js:154:22


Reply to this email directly or view it on GitHub
#110.

Matías Alejo Garcia
Skype/Twitter: @EMATIU
Roads? Where we're going, we don't need roads!

from insight-api.

matiu avatar matiu commented on August 23, 2024

fixed on 3968327

from insight-api.

iancoleman avatar iancoleman commented on August 23, 2024

Thanks a lot, all good now, I'll close this issue.

from insight-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.