Tried installing with lastest Node build, but it fails

541 views
Skip to first unread message

Nathan Hart

unread,
Apr 6, 2013, 2:03:19 PM4/6/13
to bitc...@googlegroups.com
Node v0.10.3

Has anyone verified bitcoinjs will work with the lastest version of node on ubuntu? Is this project dead?

Stefan Thomas

unread,
Apr 10, 2013, 12:40:53 PM4/10/13
to bitc...@googlegroups.com
I stopped working on bitcoinjs-server a while ago because there wasn't much interest in the project. Recently, I've been getting a bunch of emails about it, but now I'm too busy to do much - when I was working on it it was pretty much a full-time job. I will review and merge pull requests if anyone wants to pick up the project and I'm happy to hand out committer rights to anyone who has contributed some substantive patches.

Karel Tuma

unread,
Apr 22, 2013, 3:35:38 PM4/22/13
to bitc...@googlegroups.com
Dne sobota, 6. dubna 2013 20:03:19 UTC+2 Nathan Hart napsal(a):
Node v0.10.3

Has anyone verified bitcoinjs will work with the lastest version of node on ubuntu? Is this project dead?

I've ported bitcoinjs-server to v0.10 nodejs and actively use it:


Usual disclaimer: This is still *very* alpha software, i'd not dare to use it on production yet. YMMV.

--
firstbits: 1TumaK

Stefan Thomas

unread,
Apr 22, 2013, 4:00:35 PM4/22/13
to bitc...@googlegroups.com
Cool! I've looked at your changes and they seem to be pretty much the same ones that I've made as well for 0.10 support.

But I did see you added the ability to create testnet addresses and you have a patch for getAffectedTransactions by killerstorm, so I'm going to look into pulling those in some form.

Thanks!

Karel Tuma

unread,
Apr 24, 2013, 4:01:41 AM4/24/13
to bitc...@googlegroups.com, alex.m...@gmail.com
It's not bug-free though.

I'm using it with bitcoinx (a webcoin mod to trace balances coming from genesis transaction - colors - running at http://webcoinx.tumak.cz/index.html ) and unfortunatelly some cracks are showing up. Most notably bitcoinjs "sometimes" forgets to inform me of txes wrt address subscribed by the web client. Only stuff with confirms in blockchain is affected so i suspect it's a db issue - I think i should look somewhere in getContainingBlock / getAffectedTransactions code of leveldb or is this bug might be caused by something else too?

Dne pondělí, 22. dubna 2013 22:00:35 UTC+2 Stefan Thomas napsal(a):

Aaron Ash

unread,
Apr 24, 2013, 8:25:12 PM4/24/13
to bitc...@googlegroups.com, alex.m...@gmail.com
Hello,

I've been looking for a solid project that can quickly return balances/transactions for bitcoin addresses, but I was surprised to see that it's not as straightforward as it seems it should be (bitcoind doesn't allow you to do this unless you own the private key). This project gives me some hope.

I was also surprised to see how much work has been done on bitcoinjs, it's quite impressive. I'd love to see this project come alive again, but my javascript knowledge is minimal and I don't know if I could stick with it.

Anyway, I tried to get katuma's branch working (as well as the original branch), and it seems leveldb isn't compatible with the latest version of node. What's the best solution to fix this?

Any help is appreciated :)

Thanks,
Aaron

Karel Tuma

unread,
Apr 25, 2013, 12:24:11 PM4/25/13
to bitc...@googlegroups.com, alex.m...@gmail.com
You have to use the 0.10 branch:

https://github.com/katuma/node-leveldb/commits/dev/update_0.10

Dne čtvrtek, 25. dubna 2013 2:25:12 UTC+2 Aaron Ash napsal(a):

bo...@oneid.com

unread,
Apr 25, 2013, 8:22:28 PM4/25/13
to bitc...@googlegroups.com
I'm trying to get this working as well.

I've got it all to compile and run, but when I run:
bitcoinjs run --testnet --bchdbg

I get: 

/usr/lib/node_modules/bitcoinjs/lib/transactionmap.js:13
util.inherits(TransactionMap, events.EventEmitter);
                              ^
ReferenceError: events is not defined
... traceback...

I don't have much of a background in node, so I'm a little stuck on how to debug. Any quick ideas? I'm running this on a bare ubuntu installation, if that helps.

Karel Tuma

unread,
Apr 25, 2013, 8:35:30 PM4/25/13
to bitc...@googlegroups.com, alex.m...@gmail.com
Fixed the getAffectedTransactions() mentioned above (killerstorm's patch is for different bug).

https://github.com/katuma/bitcoinjs-server/commit/5bc47f6db270ccdf35026446df4db27164cf4ae6

Dne středa, 24. dubna 2013 10:01:41 UTC+2 Karel Tuma napsal(a):

Lucas Ontivero

unread,
May 23, 2013, 11:25:08 AM5/23/13
to bitc...@googlegroups.com
Ohhh, it´s a pitty! Now that bitcoin is a mainstream, we need a project like this one to create our applications. I hope clever developers get involved in the near future. I´ll try to debug the code and see if i found the problem that i´m having even when all the technology stack is unknown for me (i´m a ms dev but using ubuntu for this project).
Thank you for your effort and code, Stefan. 

Stefan Thomas

unread,
May 24, 2013, 11:44:44 AM5/24/13
to bitc...@googlegroups.com
I think there is enough new interest in it now that the project will be able to stand on its own feet. I'll do my best to get it there, but it's going to require contributions from other people. So please share your findings in bug reports and make sure you create pull requests for anything you fix. Adding comments are you're learning to understand the code, little cleanups, refactorings, all that stuff helps more than you think. We need documentation more than anything, so edit the wiki:

https://github.com/bitcoinjs/bitcoinjs-server/wiki

Help the next guy figure it out more quickly than you did, because then he's going to have to more time left over to fix bugs, which in turn benefits you (and everyone else.) There has been so much progress upstream in terms of performance and portability that bitcoinjs-server if properly maintained would be a very serious competitor (if not the dominant one) for custom real-time Bitcoin applications. It won't take that much, 95% of the code (networking, (de)serialization, script interpreter) can stay as it is, it's just the database format that needs better efficiency.

Kyle Drake

unread,
May 31, 2013, 2:34:31 PM5/31/13
to bitc...@googlegroups.com
I have also arrived at this project, after discovering it is one of the few/only ways to do client-side bitcoin work with web browsers. I'm working on Coinpunk right now (http://coinpunk.org) and I am seriously considering switching over to this code base. It seems logical to me, because I would mainly be plugging the "missing completed gui wallet service" gap in the bitcoinjs toolchain right now. But of course, I need to be able to determine it's feasible to do so.

I'm running into problems getting the server running as well. I've hit the memory wall on my 2GB VPS (which is a problem, because my requirements are that it has to run on a relatively cheap VPS), and was having problems with the blockchain download going slow (which I solved by having the client connect to a local bitcoind which has the full blockchain). But now I'm back to the memory problem again.

This is not a bitcoinjs-server specific problem, I had very similar problems with bitcoind. The way I solved it with bitcoind was to reduce the number of connections to a very small number (3). I'm not sure why this worked exactly, and I'm not sure this is the same problem. It would be helpful for my understanding of the problem if I knew why the server had to maintain so much memory state here. Is this a garbage collection issue, or does it actually need over 1.5GB at some point to process the blockchain?

Currently when I try to connect with bitcoinjs-lib the request hangs. I'm not sure if this is because I'm running it on 0.10 (I'm at latest on master) or because it's still downloading the blockchain. I'll give it another try when I have the blockchain up to latest (crash from memory, up arrow, return).

I'm planning on spending the summer on the Coinpunk project full-time. So if I decided to go the JS route I will definitely be able to help on this project! I'm not sure if I'm necessarily qualified to do a refactor of the database to improve performance or what needs to be done, but it sounds like an interesting project, and one that needs to be addressed.

Cheers!

-Kyle

Kyle Drake

unread,
May 31, 2013, 2:38:09 PM5/31/13
to bitc...@googlegroups.com
Also humorously, after I started downloading the blockchain from the local bitcoind server, it then also began eating a lot of memory!

Lots of work to do this summer..

-Kyle


--
You received this message because you are subscribed to the Google Groups "BitcoinJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bitcoinjs+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Bob Sacamano

unread,
Jul 17, 2013, 3:33:21 AM7/17/13
to bitc...@googlegroups.com
Has anyone gotten this to work on ubuntu? I really having a hard time, and I am trying to setup the blockexplorer and webwallet, and this bitcoinjs isn't making it easy. I have tried everything and it is giving me conflicting errors like when I install node 0.9.5. 
I get...
"npm WARN engine lev...@0.7.1: wanted: {"node":">=0.6.13 <0.9.0"} (current: {"node":"v0.9.5","npm":"1.1.70"})"
but then if I conform to this then this error pops up

"npm WARN engine bitc...@0.2.8: wanted: {"node":">= 0.9.4"} (current: {"node":"v0.9.5","npm":"1.1.70"})"

So how is even suppose to be solved?


Roman Sanine

unread,
Aug 29, 2013, 12:30:02 AM8/29/13
to bitc...@googlegroups.com
I am also having trouble installing it on Ubuntu..

make[1]: *** [Release/obj.target/leveldb/src/cpp/handle.o] Error 1
make[1]: Leaving directory `/usr/local/lib/node_modules/bitcoinjs/node_modules/leveldb/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:789:12)
gyp ERR! System Linux 2.6.32-042stab076.8
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build"
gyp ERR! cwd /usr/local/lib/node_modules/bitcoinjs/node_modules/leveldb
gyp ERR! node -v v0.10.17
gyp ERR! node-gyp -v v0.10.9
gyp ERR! not ok
make: *** [build] Error 1
npm ERR! weird error 2
npm ERR! not ok code 0

Also getting

npm WARN engine sn...@0.1.4: wanted: {"node":"0.8.x"} (current: {"node":"v0.10.17","npm":"1.3.8"})
Message has been deleted

Alejo Mext

unread,
Aug 31, 2013, 10:51:23 PM8/31/13
to bitc...@googlegroups.com
I have my serious doubts .... Because if you use a MongoDB database, do not understand the installation running LevelDB module, which is another type of database.


The amendments are to be made.

1.- Clone the project
2.- Modify package.json in the item 'leveldown' and raise the version to '*'
3.- Running a 'npm install'

In The not corrected the error, you can not make a proper installation package.

https://github.com/my8bird/node-leveldb/issues/49
Reply all
Reply to author
Forward
0 new messages