Author

Topic: Port client to node.js? (Read 1462 times)

member
Activity: 75
Merit: 10
June 25, 2012, 12:31:25 PM
#8
hmm. Yeah. I was thinking more of a way to "jumpstart" the block database, just copy the block chain and go. That's why I was thinking same format, but importing would work also I guess.


That looks promising. Might give it a try when my project is in the stage where I need to add a wallet. Still working on getting the basics out of the way.
hero member
Activity: 742
Merit: 500
June 25, 2012, 11:38:30 AM
#7
Here's a project that appears to have stalled:

 - https://github.com/gasteve/node-bitcoin-p2p


Looks like it uses it's own DB, I would prefer the one I have an idea for to use the same database files as the QT wallet. Just copy in to a dir and it would work. Might be worth trying to fork and updating.
I don't think there is a BDB adapter for JS, so this would likely be a large undertaking.

Not sure. Googled it. Would https://github.com/mcavage/node-bdb, be it?
I stand corrected.  However that adapter hasn't been worked on in a year it looks like there is still more to work on.


Maybe you could use node-bdb to import the wallet.dat into the wallet format that bitcoinjs uses.  Then the concurrency issues won't be a problem since you are only reading from the satoshi wallet.

hero member
Activity: 558
Merit: 500
member
Activity: 75
Merit: 10
June 24, 2012, 11:56:19 PM
#5
Here's a project that appears to have stalled:

 - https://github.com/gasteve/node-bitcoin-p2p


Looks like it uses it's own DB, I would prefer the one I have an idea for to use the same database files as the QT wallet. Just copy in to a dir and it would work. Might be worth trying to fork and updating.
I don't think there is a BDB adapter for JS, so this would likely be a large undertaking.

Not sure. Googled it. Would https://github.com/mcavage/node-bdb, be it?
hero member
Activity: 742
Merit: 500
June 24, 2012, 11:14:58 PM
#4
Here's a project that appears to have stalled:

 - https://github.com/gasteve/node-bitcoin-p2p


Looks like it uses it's own DB, I would prefer the one I have an idea for to use the same database files as the QT wallet. Just copy in to a dir and it would work. Might be worth trying to fork and updating.
I don't think there is a BDB adapter for JS, so this would likely be a large undertaking.
member
Activity: 75
Merit: 10
June 24, 2012, 06:53:00 PM
#3
Here's a project that appears to have stalled:

 - https://github.com/gasteve/node-bitcoin-p2p


Looks like it uses it's own DB, I would prefer the one I have an idea for to use the same database files as the QT wallet. Just copy in to a dir and it would work. Might be worth trying to fork and updating.
legendary
Activity: 2506
Merit: 1010
June 24, 2012, 04:44:31 PM
#2
Here's a project that appears to have stalled:

 - https://github.com/gasteve/node-bitcoin-p2p
member
Activity: 75
Merit: 10
June 24, 2012, 07:24:52 AM
#1
Hey. I was wondering if anyone would be interested in porting the client in to node.js, and have a really nice simple rest api. Not sure how long something like this could take, also it could store multiple wallets. Like in requests, you could be like wallet=walletname. obviously this client would want to run on a local network, with a firewall and not port forwarded. Also a way to confirm the small 0.005 tx fees. like you would do wallet=Kevin&pay=ADDRESS&amount=0.01

and it would then reply with a json object, saying a fee, the app using the API would then decide to pay it and do wallet=Kevin&pay=ADDRESS&amount=0.01&allowfee=0.005

Just an idea. Would something like this be valuable to the community? I myself, would like to see this project happen. But I wouldn't want to go about it alone, and this client would be open source also.
Jump to: