Git Product home page Git Product logo

litecore's Introduction

Litecore

Important Notice: the litecore stack is now deprecated. Please switch to alternative packages. libcore should be considered unsafe for production use.

Alternatives include:

  • bitcore: now fully supports litecoin

License

Code released under the MIT license.

Copyright 2013-2015 BitPay, Inc. Bitcore is a trademark maintained by BitPay, Inc. Copyright 2016 The Litecore Core Developers

litecore's People

Contributors

bitjson avatar brandonrobertz avatar braydonf avatar chjj avatar devrandom avatar dskloet avatar dthorpe avatar eordano avatar ethers avatar fanatid avatar gabegattis avatar gasteve avatar himynameismartin avatar kleetus avatar kyledrake avatar losh11 avatar manan19 avatar maraoz avatar marianorod avatar martindale avatar matiu avatar olalonde avatar pnagurny avatar rubensayshi avatar ryanxcharles avatar sagivo avatar throughnothing avatar trapp avatar trevinhofmann avatar yemel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

litecore's Issues

Bitcore Constantly Crashing

It’ll go strong downloading the blockchain, but will unexpectedly crash.

[2018-09-22T10:13:41.081Z] info: Bitcoin Height: 8864 Percentage: 0.02
[2018-09-22T10:13:56.670Z] info: Bitcoin Height: 8864 Percentage: 0.02
[2018-09-22T10:14:11.957Z] info: Bitcoin Height: 10413 Percentage: 0.03
[2018-09-22T10:14:25.991Z] info: Bitcoin Height: 11758 Percentage: 0.03
[2018-09-22T10:14:41.287Z] info: Bitcoin Height: 13089 Percentage: 0.04
[2018-09-22T10:14:56.052Z] info: Bitcoin Height: 13089 Percentage: 0.05
[2018-09-22T10:15:04.845Z] warn: Bitcoin process unexpectedly exited with code:
null
[2018-09-22T10:15:04.845Z] warn: Restarting bitcoin child process in 5000ms
[2018-09-22T10:15:05.168Z] warn: ZMQ disconnect: tcp://127.0.0.1:29332
[2018-09-22T10:15:05.168Z] warn: ZMQ connection delay: tcp://127.0.0.1:29332
[2018-09-22T10:15:05.168Z] warn: ZMQ connection delay: tcp://127.0.0.1:29332
[2018-09-22T10:15:05.667Z] warn: ZMQ connection delay: tcp://127.0.0.1:29332
[2018-09-22T10:15:05.668Z] warn: ZMQ connection delay: tcp://127.0.0.1:29332

Any thoughts?

not working with testnet

Hi, I'm trying to run a litecore node on both mainnet and testnet. It works well on mainnet. However, on testnet, I get a lot of errors.

Here's a common error - "uncaught exception: RangeError: Index out of range"

screen shot 2017-05-02 at 1 06 12 pm

Perhaps I am doing something wrong? In order to work with testnet, I set "network" to "testnet" in the litecore-node.json file.

Edit: I should clarify this was on the current master version of litecore.

M addresses don't work

For some reason, M-addresses don't work with insight, insight-api and litecore websocket API

example: this transaction is displayed with the M addresses

https://insight.litecore.io/tx/c9403d4bc1a09bb52cf8c5db5e0e3ecf38dfd22c83610fb1c6416d665a240040

but clicking on any of the addresses shows an error

https://insight.litecore.io/address/MUbHn23ZL733kCUbvQ88ZhVSWMdFQMEoV8

If I instead get the 3-address, it doesn't work either.

https://insight.litecore.io/address/3NP9U8dbNzBcwhChpX8nk4F3Bf2oSucXj1

This also applies to all the API calls (I think it is the same error). I can't find where it is at the bitcore stack right now exactly.

Keeps crashing after Segwit activation

Hello,

since Segwit activation on mainnet, nodes keeps crashing (both our instance and insight.litecore.io seems to be hit by the bug). It is probably related to #2. Possible fix is rebase against our latest (segwit-aware) version reported in #3 .

I don't see any error in debug.log, but the daemon is restarting periodically and I see this in litecore's console:

May 10 16:44:07 bitcore4 litecored[17869]: [2017-05-10T16:44:07.154Z] error: uncaught exception: [RangeError: index out of range]
May 10 16:44:07 bitcore4 litecored[17869]: [2017-05-10T16:44:07.160Z] error: RangeError: index out of range
May 10 16:44:07 bitcore4 litecored[17869]: at checkOffset (buffer.js:700:11)
May 10 16:44:07 bitcore4 litecored[17869]: at Buffer.readUInt32LE (buffer.js:762:5)
May 10 16:44:07 bitcore4 litecored[17869]: at BufferReader.readUInt32LE (/opt/satoshilabs/bitcore-ltc/bitcore/node_modules/litecore-lib/lib/encoding/bufferreader.js:81:22
May 10 16:44:07 bitcore4 litecored[17869]: at Transaction.fromBufferReader (/opt/satoshilabs/bitcore-ltc/bitcore/node_modules/litecore-lib/lib/transaction/transaction.js:
May 10 16:44:07 bitcore4 litecored[17869]: at Transaction.fromBuffer (/opt/satoshilabs/bitcore-ltc/bitcore/node_modules/litecore-lib/lib/transaction/transaction.js:297:15
May 10 16:44:07 bitcore4 litecored[17869]: at InsightAPI.transactionEventHandler (/opt/satoshilabs/bitcore-ltc/bitcore/node_modules/insight-lite-api/lib/index.js:267:30)
May 10 16:44:07 bitcore4 litecored[17869]: at emitOne (events.js:77:13)
May 10 16:44:07 bitcore4 litecored[17869]: at Bitcoin.emit (events.js:169:7)
May 10 16:44:07 bitcore4 litecored[17869]: at Bitcoin._zmqTransactionHandler (/opt/satoshilabs/bitcore-ltc/bitcore/node_modules/litecore-node/lib/services/bitcoind.js:639
May 10 16:44:07 bitcore4 litecored[17869]: at null.<anonymous> (/opt/satoshilabs/bitcore-ltc/bitcore/node_modules/litecore-node/lib/services/bitcoind.js:713:12)

I have all the newest everything installed and litecore install will not work

I have every single newest version of node.js, npm, java, etc...that this page says to download...I have given all permissions for administrator to run from command prompt...no matter what I do every time the furthest I get is litecore telling me that npm is not compatible with nodejs versions....no matter which version I use they all say this...
I try to npm install -g litecore...it says:

C:\WINDOWS\system32>npm install -g litecore

[email protected] preinstall C:\Users(currentuser)\AppData\Roaming\npm\node_modules\litecore\node_modules\litecore-node
./scripts/download

'.' is not recognized as an internal or external command,
operable program or batch file.
npm WARN Error: EPERM: operation not permitted, scandir 'C:\Users(currentuser)\AppData\Roaming\npm\node_modules\litecore\node_modules\socket.io-parser\node_modules'
npm WARN { Error: EPERM: operation not permitted, scandir 'C:\Users\Robert\AppData\Roaming\npm\node_modules\litecore\node_modules\socket.io-parser\node_modules'
npm WARN stack: 'Error: EPERM: operation not permitted, scandir 'C:\Users\(currentuser)\AppData\Roaming\npm\node_modules\litecore\node_modules\socket.io-parser\node_modules'',
npm WARN errno: -4048,
npm WARN code: 'EPERM',
npm WARN syscall: 'scandir',
npm WARN path: 'C:\Users\(currentuser)\AppData\Roaming\npm\node_modules\litecore\node_modules\socket.io-parser\node_modules' }
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] preinstall: ./scripts/download
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] preinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users(currentuser)\AppData\Roaming\npm-cache_logs\2017-12-03T12_36_27_539Z-debug.log

why am I getting this:
'.' is not recognized as an internal or external command,
operable program or batch file.
?
looks to me like the scripts is written to run in linux and I need it to run in windows 10...like its trying to use "." to execute rather than .exe for the installation problem on the winodws machine

It installed on the linux machine but cant find bitcored because it needs to look for bitcoind...not bitcored...the newest bitcore library has a different name than what this code is trying to use...from what I can gather....

why am I the only one having problems here?
is noone else writing apps for litecoin?

PLEASES HELP ME!!
How can I fix this if I cant even install the code?
what am I doing wrong?

Thanks in advance

Does not work in windows or Linux system...I am convinced that litecore and bitcore both have not been updated...litecore keeps trying to find bitcore and the newest bitcore module is renamed bitcoind not bitcored...
this seems to be the problem....that and npm and node.js not being compatible on either system....I refuse to buy a mac just for a java wallet to work...
PLEASE HELP ME SOMEONE!!!

invalid litecoin address

1.i tried to generate random using litecore but it is generating invalid address and naot able to transfer litecoins

This is my code

var litecore = require('litecore-lib');
var explorers = require('litecore-explorers');
var insight = new explorers.Insight('testnet');
// var SenderPrivateKey = new litecore.PrivateKey('testnet');//"f5f6285f379080249da16eacf8dac4dd432f5c367bbe9476ccbb8526380ad1e5"
// var SenderAddress = privateKey.toAddress();//"mr1QRgBAshnYqLj1kk9TcnFumNo1ceApy6

mr1QRgBAshnYqLj1kk9TcnFumNo1ceApy6

and also tried to generate p2sh address but getting error invalid litecoin address

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.