Pages:
Author

Topic: btcd: a bitcoind alternative written in Go - page 2. (Read 20970 times)

newbie
Activity: 39
Merit: 0
November 06, 2014, 12:30:34 PM

I want to connect to my btcd-server with javascript

Can I disable the RPC-CERTIFICATES or how can I connect with Javascript over TLS?

I just saw this.  You can't disable TLS, but I have a gist up on my github which demonstrates how to connect via TLS that I've tested with firefox and chrome:

https://gist.github.com/davecgh/8a16b1048fe0fb406d29

Make sure you modify the username and password near the top of the file in the javascript to the correct values or you'll get an undefined error since btcd will immediately disconnect you upon receiving invalid credentials.
newbie
Activity: 21
Merit: 0
Started playing with this today. Great work conformal team!
member
Activity: 74
Merit: 10
www.btcaudio.eu || LIVE-AUDIO-TICKER
Can you subscribe to new unconfirmed transactions with btcd ?

Yes.  See https://github.com/conformal/btcd/wiki/JSON-RPC-API#WSExtMethods.  In particular the notifynewtransactions method.

I want to connect to my btcd-server with javascript
Code:




WebSocket Test



WebSocket Test




http://www.websocket.org/echo.html

Can I disable the RPC-CERTIFICATES or how can I connect with Javascript over TLS?
newbie
Activity: 35
Merit: 0
September 26, 2014, 06:49:20 PM
Always been interested in GO, Looks a very promising project, block safari looks good also.

Il drop by and see you on IRC Smiley
newbie
Activity: 39
Merit: 0
September 26, 2014, 11:54:36 AM
Can you subscribe to new unconfirmed transactions with btcd ?

Yes.  See https://github.com/conformal/btcd/wiki/JSON-RPC-API#WSExtMethods.  In particular the notifynewtransactions method.
member
Activity: 74
Merit: 10
www.btcaudio.eu || LIVE-AUDIO-TICKER
September 26, 2014, 09:12:30 AM
Can you subscribe to new unconfirmed transactions with btcd ?
like the blockchain API: https://blockchain.info/de/api/api_websocket

I currently use the blockchain API for my site: btcaudio.tk/live

but I want to use my own bitcoin node for this .. can I do this with btcd?



full member
Activity: 123
Merit: 104
September 21, 2014, 04:57:54 PM
I recently switched from running bitcoind to btcd on linux.

Once golang was installed it’s pretty much an automated installation process – 1 command to auto download and install the btcd package. A well-documented sample config file is provided that was easy to tailor. Launched it and done.

Full network sync from scratch took 26 hours. Memory usage is in the 200MB range. Couple of days in it’s been rock solid and seems to be working great.

I’m hugely impressed with what the devs have achieved. Their code appears to be clean, modular, well documented and comprehensively covered by tests. So a great base to build on.

I've also recently tested btcd out, and the code looks clean + tests are present. I do see better performance than bitcoind, as well. Keep up the good work!
newbie
Activity: 39
Merit: 0
September 21, 2014, 03:23:58 PM
zznbey:

I'm not sure what point you're trying to make, but I think perhaps you are confused.  The btcd code is ISC licensed and freely available for all to fork and modify as they see fit.  It is no different than Bitcoin Core in that respect.
member
Activity: 112
Merit: 10
September 21, 2014, 02:09:05 PM
 as if dependence on a bunch of profiteers would be a good thing.
newbie
Activity: 39
Merit: 0
September 21, 2014, 02:04:19 PM
I am trying the new btcd v0.9.0-beta now .. https://github.com/conformal/btcd/releases

Would you please file an issue on the btcd issue tracker?  We'll need to get your database logs to track down your issue.
member
Activity: 74
Merit: 10
www.btcaudio.eu || LIVE-AUDIO-TICKER
September 20, 2014, 06:23:52 PM
I am trying the new btcd v0.9.0-beta now .. https://github.com/conformal/btcd/releases

EDIT: x64 version v0.9.0-beta



EDIT2: PROBLEM SOLVED ! NO BUG ! JUST A BAD HARD DISK !
newbie
Activity: 21
Merit: 0
September 18, 2014, 12:59:08 PM
I recently switched from running bitcoind to btcd on linux.

Once golang was installed it’s pretty much an automated installation process – 1 command to auto download and install the btcd package. A well-documented sample config file is provided that was easy to tailor. Launched it and done.

Full network sync from scratch took 26 hours. Memory usage is in the 200MB range. Couple of days in it’s been rock solid and seems to be working great.

I’m hugely impressed with what the devs have achieved. Their code appears to be clean, modular, well documented and comprehensively covered by tests. So a great base to build on.
member
Activity: 74
Merit: 10
www.btcaudio.eu || LIVE-AUDIO-TICKER
September 18, 2014, 10:23:40 AM
I just built on Windows XP x86 AND Windows 8.1 x64 .. BUT the bug is STILL HERE !?

Is it normal that my new .exe builds are smaller than the "original" ones?
they are just 12 MB (x86) and 15MB (x64) big!
original x64 = 18MB

You'll need to delete your database from "%LOCALAPPDATA%\Btcd\data\mainnet", so the chain download starts over.  The issue is your existing database is corrupt (hence why you're seeing the issue looking up a specific transaction), so only upgrading the code alone won't fix it.  However, the root cause that led to the corruption to begin with is what updating the code resolves.  I should have mentioned that in my original response.

As far as the size, the last released msi was built with the Go 1.2 runtime, and I'm guessing you built the latest with the most recent Go 1.3.1 run-time, so a difference in size is expected.  12MB (x86) and 15MB (x64) is what I have as well with the go 1.3 runtime.

EDIT:

I just rebuilt to verify:

x64
09/18/2014  10:13 AM        15,415,296 btcd.exe

x86
09/18/2014  10:15 AM        12,524,544 btcd.exe

thanks  Smiley

my x64 build


EDIT: AFTER SOME HOURS I GET THE "Adding orphan blocks"-BUG AGAIN Angry Cry
newbie
Activity: 39
Merit: 0
September 18, 2014, 09:54:34 AM
I just built on Windows XP x86 AND Windows 8.1 x64 .. BUT the bug is STILL HERE !?

Is it normal that my new .exe builds are smaller than the "original" ones?
they are just 12 MB (x86) and 15MB (x64) big!
original x64 = 18MB

You'll need to delete your database from "%LOCALAPPDATA%\Btcd\data\mainnet", so the chain download starts over.  The issue is your existing database is corrupt (hence why you're seeing the issue looking up a specific transaction), so only upgrading the code alone won't fix it.  However, the root cause that led to the corruption to begin with is what updating the code resolves.  I should have mentioned that in my original response.

As far as the size, the last released msi was built with the Go 1.2 runtime, and I'm guessing you built the latest with the most recent Go 1.3.1 run-time, so a difference in size is expected.  12MB (x86) and 15MB (x64) is what I have as well with the go 1.3 runtime.

EDIT:

I just rebuilt to verify:

x64
09/18/2014  10:13 AM        15,415,296 btcd.exe

x86
09/18/2014  10:15 AM        12,524,544 btcd.exe
member
Activity: 74
Merit: 10
www.btcaudio.eu || LIVE-AUDIO-TICKER
September 18, 2014, 07:08:30 AM
What is going on here? Is this a BUG?

There was a bug in the upstream leveldb that could rarely lead to what you're seeing and was fixed a while back.  There hasn't been a new Windows msi released yet.  You can build from source quite easily with Go on Windows if you want to build with the latest code.

There will be another msi release soon which includes that fix along with several other enhancements.

I just built on Windows XP x86 AND Windows 8.1 x64 .. BUT the bug is STILL HERE !?

Is it normal that my new .exe builds are smaller than the "original" ones?
they are just 12 MB (x86) and 15MB (x64) big!
original x64 = 18MB
newbie
Activity: 39
Merit: 0
September 17, 2014, 10:13:00 PM
What is going on here? Is this a BUG?

There was a bug in the upstream leveldb that could rarely lead to what you're seeing and was fixed a while back.  There hasn't been a new Windows msi released yet.  You can build from source quite easily with Go on Windows if you want to build with the latest code.

There will be another msi release soon which includes that fix along with several other enhancements.
newbie
Activity: 28
Merit: 0
September 17, 2014, 08:58:39 PM
Very cool stuff! This is great news. What motivated the project?

maybe the competition from bitcoin.
member
Activity: 74
Merit: 10
www.btcaudio.eu || LIVE-AUDIO-TICKER
September 17, 2014, 04:29:48 PM
#99
What is going on here? Is this a BUG?



It just keeps adding orphan blocks !!!!!
member
Activity: 98
Merit: 10
What the actual status of this?

Does anyone of you using it as replacement (especially as simple full node without wallet functionality)?


I have used it as a successful drop-in replacement for bitcoind-ncurses. https://bitcointalksearch.org/topic/m.8190154 It is very nice having a unified interface so that I can monitor both simultaneously.
legendary
Activity: 1358
Merit: 1001
https://gliph.me/hUF
At least 13 or so:
https://getaddr.bitnodes.io/nodes/1408261895/?q=/btcwire:0.1.4/btcd:0.8.0/

I have used it for a while and if anything it seemed to use less memory.
Pages:
Jump to: