Skip to content
New issue

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

TypeError: Cannot read property 'isCoinBase' of undefined #45

Closed
wtogami opened this issue Apr 17, 2014 · 2 comments
Closed

TypeError: Cannot read property 'isCoinBase' of undefined #45

wtogami opened this issue Apr 17, 2014 · 2 comments

Comments

@wtogami
Copy link
Contributor

wtogami commented Apr 17, 2014

[p2p_sync] Handle block: 00000000000000003960a0a373d0a4ad46dd363174e3f572e0577e1bae52a6d2 (allowReorgs: true)
[p2p_sync] Orphan block received. Triggering sync
Counting connected blocks. This could take some minutes
[p2p_sync] Handle tx: ead4966ed414382b0209841c6a12cd89a9614d1c92d7ef7535be252e2164ff15
[p2p_sync] Handle tx: 05cc82aac649e47232191f59925f7f64fd344ba4f946450f96940386e7970d8e
[p2p_sync] Handle tx: 38fa8f3402a4b1840c67e3c2737a2d193e56b7e8a7d9f87a61d9ebdbad4825a7
[p2p_sync] Handle tx: 2c8f7618e7afcb20c8db064f5f9dc5e66772bc0f58ba2354575c0e4204cbf77f
[p2p_sync] Handle tx: d8d2e5f124527ace6809f888969418c5cc76a618d794a6e691d286905c6d0dd5
[p2p_sync] Handle tx: b6df45796c31c005d0a59bbed96393967c97364d217e63c2a13b9ae1e3c28fc7
[p2p_sync] Handle tx: d882d337253a088982efe5d6f43db95265e3c05bfd3c8d727c01b09fa4f7bf34
[p2p_sync] Handle tx: b44a74015a2c260f83b0b4eabf5792454860ca594ebc19044e1f302282be4c0b
[p2p_sync] Handle tx: cba2e00b58e9b7c95a7fa0b21ecce3374b8419f60610e0590a378f908898cd85

/home/btc/insight/node_modules/insight-bitcore-api/lib/BlockDb.js:169
    if (a.isCoinBase) {
         ^
TypeError: Cannot read property 'isCoinBase' of undefined
    at /home/btc/insight/node_modules/insight-bitcore-api/lib/BlockDb.js:169:10
    at /home/btc/insight/node_modules/insight-bitcore-api/lib/TransactionDb.js:258:16
    at TransactionDb._fillSpent (/home/btc/insight/node_modules/insight-bitcore-api/lib/TransactionDb.js:162:21)
    at /home/btc/insight/node_modules/insight-bitcore-api/lib/TransactionDb.js:257:12
    at TransactionDb._fillOutpoints (/home/btc/insight/node_modules/insight-bitcore-api/lib/TransactionDb.js:185:40)
    at /home/btc/insight/node_modules/insight-bitcore-api/lib/TransactionDb.js:256:10
    at /home/btc/insight/node_modules/insight-bitcore-api/lib/Rpc.js:64:40
    at IncomingMessage.<anonymous> (/home/btc/insight/node_modules/insight-bitcore-api/node_modules/bitcore/RpcClient.js:189:7)
    at IncomingMessage.EventEmitter.emit (events.js:117:20)
    at _stream_readable.js:920:16
npm ERR! weird error 8
npm ERR! not ok code 0
@wtogami
Copy link
Contributor Author

wtogami commented Apr 17, 2014

Attempting npm start after this crashes with the same error. =(

@matiu
Copy link
Collaborator

matiu commented Apr 17, 2014

Please update to the lastest github version:

https://github.com/bitpay/insight-api/blob/master/lib/BlockDb.js#L169

That line has changed.

@matiu matiu closed this as completed May 1, 2014
jcvernaleo pushed a commit to decred/insight-api that referenced this issue Feb 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants