Does Bitcore supports Litecoin and Bitcoin cash??
Does Bitcore supports Litecoin and Bitcoin cash? If yes, kindly guide me where to find the configuration required to make it work with LTC and BCH
V8 supports BCH natively, but not LTC (yet).
But If you're feeling experimental, you can try my fork of V8 with LTC support here: https://github.com/osagga/bitcore
@osagga Sorry to bother you,but when I use your fork to support LTC , I got this result not changed,as picture follows: https://i.loli.net/2019/01/30/5c5173d98ea26.png
Looking forward to your response!
some env info centos7 node --V8.15.0 npm --6.4.1 nvm --0.33.8
@NandyShi That's weird, I don't usually get that. Do you mind including your bitcore.confing.json and your LTC full node litecoin.conf? Also what version of the LTC fullnode are you running?
bitcore.confing.json /* { "bitcoreNode": { "chains": { "LTC": { "testnet": { "chainSource": "p2p", "trustedPeers": [ { "host": "127.0.0.1", "port": 28333 } ], "rpc": { "host": "127.0.0.1", "port": 28332, "username": "aldb", "password": "aldb" } } }
}
} } */
litecoin.conf /* server=1 rpcuser=**** rpcpassword=**** port=28333 rpcport=28332 rpcallowip=127.0.0.1 testnet=1 irc=1 upnp=1 txindex=0 */ my LTC version litecoin-0.16.3
In addition, I found a phenomenon, if the input is a segwit, I cannot find it by bitcore?
@osagga
Now there is a way to make "modules" and load them from the config. If you submitted a PR with the module, I think we could get that merged.
I've tried to set it up, to where you can publish a module to npm, and users of a module can npm install it to the bitcore-node folder and add it to their config.
My goal is to have it to where you can build modules adding currencies, and publish them, without having to fork bitcore
Let me know if you're interested in trying to implement that module
Links for reference:
https://github.com/bitpay/bitcore/blob/master/packages/bitcore-node/src/modules/bitcoin-cash/index.ts
https://github.com/bitpay/bitcore/blob/d5cbf48af3214593157f20e7c8595d0a642a8755/packages/bitcore-node/src/config.ts#L65
@osagga
Are you working on implementing the module for LTC as @micahriggan said? It would be really appreciated if you could create the module. 😃 👍
@osagga
Now there is a way to make "modules" and load them from the config. If you submitted a PR with the module, I think we could get that merged.
I've tried to set it up, to where you can publish a module to npm, and users of a module can npm install it to the bitcore-node folder and add it to their config.
My goal is to have it to where you can build modules adding currencies, and publish them, without having to fork bitcore
Let me know if you're interested in trying to implement that module
Links for reference:
https://github.com/bitpay/bitcore/blob/master/packages/bitcore-node/src/modules/bitcoin-cash/index.ts
https://github.com/bitpay/bitcore/blob/d5cbf48af3214593157f20e7c8595d0a642a8755/packages/bitcore-node/src/config.ts#L65
Does Bitcore supports Litecoin and Bitcoin cash? If yes, kindly guide me where to find the configuration required to make it work with LTC and BCH
Yes it does Here's the order of operation :::
It goes from
Bitcoin Dogecoin Dash Ethereum Litecoin Bitcoin Cash
... Hope this helps
Hey @architectophile,
Thanks for your interest in my fork, I was planning to add the LTC module to the main repo when I get a chance, but I noticed that there are already a couple of PR's (https://github.com/bitpay/bitcore/pull/2722, https://github.com/bitpay/bitcore/pull/2691 and https://github.com/bitpay/bitcore/pull/2653). I'm not really sure why #2653 was closed, but my guess is because of the external dependency on litecore-lib and litecore-p2p, so that's why @micahriggan is trying to add litecore-lib to the bitcore repo (in #2653), and then litecore-p2p probably also needs to be added. After that I think the module will be added using those packages. So native LTC support will probably be added on this repo very soon, but if you can't wait, I think you can fork this branch https://github.com/nitsujlangston/bitcore/tree/litecoinSupport (you might want to rebase it on master if you want the recent changes) and it should work with a config similar to this one https://github.com/bitpay/bitcore/pull/2653#issuecomment-576834126
@osagga pretty much nailed it. I was trying to get litecore lib into this repo, because we had to make changes to it for it to work alongside bitcore-lib.
Once we get that in, there are a few open pull requests that will add it to both bitcore and the wallet
@osagga really thank you for your detailed answer. 😄 I can wait for @micahriggan to add it to this repo. thanks guys. 👏