fronti
Legendary
Offline
Activity: 2912
Merit: 1309
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
April 13, 2016, 09:33:25 AM |
|
nice client and the downloader is really fast, cool work! but a question, i see that you "only" support ipv4 in the client. will you plan to support ipv6 also? Then I can setup some more nodes ![Smiley](https://bitcointalk.org/Smileys/default/smiley.gif)
|
If you like to give me a tip: bc1q8ht32j5hj42us5qfptvu08ug9zeqgvxuhwznzk
"Bankraub ist eine Unternehmung von Dilettanten. Wahre Profis gründen eine Bank." Bertolt Brecht
|
|
|
piotr_n (OP)
Legendary
Offline
Activity: 2053
Merit: 1356
aka tonikt
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
April 13, 2016, 05:38:08 PM |
|
thanks. ipv6 suport will eventually come. it just hasn't' got high enough priority so far.
|
Check out gocoin - my original project of full bitcoin node & cold wallet written in Go.PGP fingerprint: AB9E A551 E262 A87A 13BB 9059 1BE7 B545 CDF3 FD0E
|
|
|
piotr_n (OP)
Legendary
Offline
Activity: 2053
Merit: 1356
aka tonikt
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
April 14, 2016, 01:45:36 PM Last edit: April 14, 2016, 06:43:21 PM by piotr_n |
|
OK... After a several changes in Gocoin, currently it does everything up till (including) b89.
Two blocks do not return the expected result:
b48 - block with the time stamp more than 2 hours in the future. I cannot properly against the blocks data from the disk, but I trust I didn't screw up this check.
b61 - same ID of a coinbase TX. I'm not going to be adding a check for this, as it can only happen with v1 bocks, which are long gone.
In a future, when I find some more time, I will try to somehow fix the tests tool; make it stable and test all my further gocoin releases against it. Will also do the remaining "massive reorgs" tests...
Thank you once again, @hhanh00 - I really appreciate your input. It helped me to find (and fix) another few compatibility issues, on the blocks checking. Some of the checks in Gocoin were too strict (e.g. b64), others (e.g. b66) were not strict enough. A friend of mine modified the original tool for me. Now it's feeding the test blocks (one-by-one) to an external command. This allowed me to make a simple wrapper for the gocoin library in order to test the blocks compatibility. All test pass, except for b61, which I am not going to fix as it would decrease performance of the lib, just for the sake of the test. So I implemented a work-around in the wrapper, for this specific test. All the rest is passing - up till the block "b1004", which is the last one in the test suite. If anyone would like to test it by himself, or use the java tool my friend made to test their own software, it's all in here: https://github.com/piotrnar/btc_block_validatorStart the tool using .. it will be executing a command next_block.exe in the current folder for each new block. The block is always in file named dupa.bin - just ignore the first 8 bytes. Additionally next_block.exe is called with 5 command line arguments. One of them is the hash of the top block expected to be after the block processing is done - that's how you verify whether the block from dupa.bin is properly processed/rejected.
|
Check out gocoin - my original project of full bitcoin node & cold wallet written in Go.PGP fingerprint: AB9E A551 E262 A87A 13BB 9059 1BE7 B545 CDF3 FD0E
|
|
|
piotr_n (OP)
Legendary
Offline
Activity: 2053
Merit: 1356
aka tonikt
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
June 28, 2016, 12:27:12 PM |
|
Just want to let everyone know that with the new HEAD (to become version 1.7.0) there is kind of a major change in the node.
The node client does not keep any wallet data anymore - not in the file system, nor it RAM. Instead the wallets' public addresses are stored in the LocalStorage, on the browser that operates node's WebUI. The improvement is that a balance of any (P2SH or P2KH) address can be fetched instantly. Balances of specific wallets are now fetched by the browser while loading a relevant page (Wallet or SendTx) of the WebUI. The content of the HTTP request (list of addresses) is not stored at the node's side.
At this moment you can only fetch balance of P2SH and P2KH addresses - the support for stealth addresses has been turned off. Additionally, all the wallet features have been disabled in TextUI.
Because it needs to build the database of all the addresses and their balances, the node launches significantly longer now. It also requires more RAM - I changed the RAM requirement to 8GB.
Please note that (to save memory and improve performance) by default the balance database does not account for unspent outputs with less than 0.001 BTC. You can change that by modifying the config value "AllBalances.MinValue" (set it to 1 to have everything listed).
I believe this is a change in a good direction. It allows multiple users (wallet owners) to share the same gocoin node; improves performance of fetching the balances, as well as the privacy by not storing the content of the requests.
If you like the old functionality (with stealth addresses and wallet files stored at the server), checkout version 1.6.4
|
Check out gocoin - my original project of full bitcoin node & cold wallet written in Go.PGP fingerprint: AB9E A551 E262 A87A 13BB 9059 1BE7 B545 CDF3 FD0E
|
|
|
piotr_n (OP)
Legendary
Offline
Activity: 2053
Merit: 1356
aka tonikt
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
September 28, 2016, 12:59:48 PM Last edit: September 28, 2016, 02:52:25 PM by piotr_n |
|
Just a quick update on the latest development, to let you know that I am still alive and the project is being maintained ![Smiley](https://bitcointalk.org/Smileys/default/smiley.gif) The latest release 1.7.2 comes with some nice features. I've been happy to learn that the core team finally did something to speed up the blocks' propagation - that came with 0.13. Therefore with pleasure, I have implemented BIP-152 into Gocoin - I love this new method. I've also optimised the algorithm of dropping worse (slowest) peer, in order to be connected to the best performing ones. Now it considers not only the ping, but mostly the number of a new blocks we have received from a peer. The full list of changes, as always, in the changelog. ![](https://ip.bitcointalk.org/?u=https%3A%2F%2Fi.imgur.com%2FqqdtP1k.png&t=665&c=XjRyWkoMrgkMvg) ![](https://ip.bitcointalk.org/?u=https%3A%2F%2Fi.imgur.com%2FmICVNR3.png&t=665&c=JBVEdo30Q1ZgNw) ![](https://ip.bitcointalk.org/?u=https%3A%2F%2Fi.imgur.com%2FDWA4XL7.png&t=665&c=dV9XKZbB2M26aA)
|
Check out gocoin - my original project of full bitcoin node & cold wallet written in Go.PGP fingerprint: AB9E A551 E262 A87A 13BB 9059 1BE7 B545 CDF3 FD0E
|
|
|
r.o.o.t
Member
![*](https://bitcointalk.org/Themes/custom1/images/star.gif)
Offline
Activity: 98
Merit: 10
http://github.com/root8/fsigDecredGUI
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
September 29, 2016, 03:34:58 PM |
|
Great work you are doing here ! What would you think about decred.org from the developers of other golang bitcoin client ?
|
..-- ▰▰ DECRED.ORG ▰▰ --..
|
|
|
piotr_n (OP)
Legendary
Offline
Activity: 2053
Merit: 1356
aka tonikt
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
September 30, 2016, 03:34:34 PM |
|
What would you think about decred.org from the developers of other golang bitcoin client ? Sorry, I don't have an opinion. I'm too much involved in my bitcoin stuff and have no time to look into alternative-crypto projects. I rarely even look in other bitcoin projects - mostly if they have something I might want for myself ![Smiley](https://bitcointalk.org/Smileys/default/smiley.gif)
|
Check out gocoin - my original project of full bitcoin node & cold wallet written in Go.PGP fingerprint: AB9E A551 E262 A87A 13BB 9059 1BE7 B545 CDF3 FD0E
|
|
|
piotr_n (OP)
Legendary
Offline
Activity: 2053
Merit: 1356
aka tonikt
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
February 06, 2017, 08:13:23 PM Last edit: February 06, 2017, 09:28:20 PM by piotr_n |
|
Sorry for not updating for so long. I've been travelling for the last couple of months, so no development, just field testing. It should last for a couple of more months and then I will be back. Before I left, I made version 1.8.0 - I've just tagged it, as it's been quite stable. I have it running on my windows laptop and a linux VPS and it has been working fine for the last couple of months. Once I had to restart it, as it hanged after over 50 days of uptime - I have some ideas why, will try to fix it, but first would like to see it happening again. Also it well rejected the invalid block mined recently by BU node, although there was also something I will have to look at, as I found one debug of when it happened weird. Anyway, the current 1.8.0 has segwit support and a few other cool things, and it's stable. I got rid of the downloader, as the client is now able to sync the chain just as fast (with some additional command line switches). As for the future development. When I come back home, I want to make it possible to bootstrap (and further run) the node with only the block headers and a corresponding UTXO snapshot. Basically it will be possible to run the full node without downloading and keeping the blockchain on the disk. It will only keep the headers and the UTXO db. At this moment it's about 3GB of data. Obviously it will be an optional feature and you will still be able to keep (and serve) all the blocks, if you please. I've been thinking to establish some industry-wide standard for distributing a secured (first by the community signatures, later ideally by the chain protocol itself) UTXO snapshots, but it's not going to happen any soon, as it seems to be involving shit loads of politicking. So I will just start with my own little solution and see from there, because I find this feature quite necessary already, as new people are very reluctant to try full nodes since they need so much time to bootstrap. Plus the blocks on my travel laptop have already taken so much space that I had to start removing porn, and that's really disturbing ![Wink](https://bitcointalk.org/Smileys/default/wink.gif)
|
Check out gocoin - my original project of full bitcoin node & cold wallet written in Go.PGP fingerprint: AB9E A551 E262 A87A 13BB 9059 1BE7 B545 CDF3 FD0E
|
|
|
piotr_n (OP)
Legendary
Offline
Activity: 2053
Merit: 1356
aka tonikt
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
May 05, 2017, 03:33:21 PM |
|
I have a new update, but first of all I'd like to know if anyone is actually reading this. Please let me know if you do and if you'd like to read some updates in this topic, or I won't be wasting my energy on this forum thread. The 1.9.0 release has some reorgs inside the source code and the architecture in general. It should perform even better. Since the UTXO db only gets updated on new blocks, I decided to simply the approach and just keep a snapshot of it on the disk. It's being flushed to disk after each update (new block), but at a vert low priority so it doesn't take too much system resources. Now the whole UTXO database is caried by the single UTXO.db file, which is about 2.4 GB big. When you start the new client, it should convert your old "unspent4" DB to the new format automatically. Also, if you want to bootstrap a new node, you only need this file and the block headers file (about 60MB). I can distribute the quick bootstrap files, if anyone is interested. Which brings me to the point that the recent versions of gocoin node can work with purged blocks database. If your blocks happen to be taking too much space, just close the client and execute: Or: bdb -purgeto <block_height> This will either purge all blocks or only up ot the given height. Follow the instructions on the screen as you need some extra copying/deleting, just to be safe and not delete you blocks DB by accident. Again: make sure to not have the client node running while using the bdb tool.
|
Check out gocoin - my original project of full bitcoin node & cold wallet written in Go.PGP fingerprint: AB9E A551 E262 A87A 13BB 9059 1BE7 B545 CDF3 FD0E
|
|
|
sgbett
Legendary
Offline
Activity: 2576
Merit: 1087
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
July 02, 2017, 12:45:02 PM |
|
Brilliant presentation at Future of Bitcoin. Your client looks really good, hopefully it will get you some more recognition!
|
"A purely peer-to-peer version of electronic cash would allow online payments to be sent directly from one party to another without going through a financial institution" - Satoshi Nakamoto*my posts are not investment advice*
|
|
|
piotr_n (OP)
Legendary
Offline
Activity: 2053
Merit: 1356
aka tonikt
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
July 02, 2017, 04:41:25 PM |
|
thank you
|
Check out gocoin - my original project of full bitcoin node & cold wallet written in Go.PGP fingerprint: AB9E A551 E262 A87A 13BB 9059 1BE7 B545 CDF3 FD0E
|
|
|
xcsler
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
July 03, 2017, 05:51:08 PM |
|
Great presentation at the Future of Bitcoin!
|
|
|
|
LightRider
Legendary
Offline
Activity: 1500
Merit: 1022
I advocate the Zeitgeist Movement & Venus Project.
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
July 09, 2017, 01:14:46 PM |
|
How can I unban a peer?
|
|
|
|
piotr_n (OP)
Legendary
Offline
Activity: 2053
Merit: 1356
aka tonikt
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
July 09, 2017, 03:50:55 PM |
|
How can I unban a peer?
You can start the client with -unban to unban all peers.
|
Check out gocoin - my original project of full bitcoin node & cold wallet written in Go.PGP fingerprint: AB9E A551 E262 A87A 13BB 9059 1BE7 B545 CDF3 FD0E
|
|
|
Jace
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
July 11, 2017, 01:47:02 PM |
|
Hi Piotr, I saw your presentation at The Future of Bitcoin in Arnhem last week (I'm one of the Arnhem Bitcoincity organisers ![Smiley](https://bitcointalk.org/Smileys/default/smiley.gif) ) and that was awesome! Very interesting, you're doing great work! I'd love to set up a new Bitcoin node using Gocoin. Would a Raspberry Pi 3 with Ubuntu be sufficient? I assume it would need to have 16 GB of ram? (is that even possible?) And perhaps a 256 or 512 GB SDcard? Or do you recommend something more powerful, e.g. a barebone miniPC?
|
Feel free to send your life savings to 1JhrfA12dBMUhcgh85wYan6HL2uLQdB6z9
|
|
|
piotr_n (OP)
Legendary
Offline
Activity: 2053
Merit: 1356
aka tonikt
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
July 12, 2017, 03:34:40 PM |
|
Thanks.
You need at least 8 GB of RAM. I'm unaware of any raspberry pi having that much.
As soon as you have a Linux board with that much ram, there should be no problem to run gocoin there. It is possible, but I'm not sure if anything like this (cheap arm cpu board with 8+GB of RAM) is available on the market.
As for the storage space requirement, you can purge blocks database regularly, in which case 16 GB of storage should be enough.
If you want to keep the entire block chain though, you need about 120 GB, as of today.
|
Check out gocoin - my original project of full bitcoin node & cold wallet written in Go.PGP fingerprint: AB9E A551 E262 A87A 13BB 9059 1BE7 B545 CDF3 FD0E
|
|
|
piotr_n (OP)
Legendary
Offline
Activity: 2053
Merit: 1356
aka tonikt
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
October 30, 2017, 03:53:18 PM Last edit: November 11, 2017, 07:41:17 AM by piotr_n |
|
An important announcement, concerning the possible 2x fork next month. Unlike the other self proclaimed bitcoin experts, my professional opinion is that miners do rule the bitcoin protocol. A chain with the most POW is the one to follow - that's how the system has been designed and that's the only way it can work securely. Whether I like this fact or not is irrelevant. It is somehow likely that starting from block #494784 the majority of the miners will choose to mine 2x bigger blocks. That is why the current version of Gocoin (not yet tagged, but see the HEAD) is already made to accept 2x bigger blocks, starting from #494784.
If the fork does happen, the node will use the branch with a bigger POW - without discriminating any of the two consensus choices. If the fork doesn't happen or in a longer term the 2x branch will not get the mining majority, the code consensus change will eventually get removed from the source code.
If anyone does not like it and want to stick to the old rules, you need to edit the file "lib/chain/chain.go" and comment out (remove) the line with: [q]ch.Consensus.S2XHeight = 494784[/q]
Now, excuse me, I have to go buy some popcorn ![Smiley](https://bitcointalk.org/Smileys/default/smiley.gif) Edit 11th Nov 2017: Fork cancelled - consensus changes removed.
|
Check out gocoin - my original project of full bitcoin node & cold wallet written in Go.PGP fingerprint: AB9E A551 E262 A87A 13BB 9059 1BE7 B545 CDF3 FD0E
|
|
|
Polygora
Newbie
Offline
Activity: 28
Merit: 0
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
October 31, 2017, 03:59:34 PM |
|
Thanks for this, really helping me decipher the internals of these technologies.
|
|
|
|
bengems
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
November 23, 2017, 07:56:15 AM |
|
What's up with xgox? Is the development still alive?....because people are dumping their stash without looking back as if there is a bad news on xgox.
What news is causing all the panic sell?
|
|
|
|
piotr_n (OP)
Legendary
Offline
Activity: 2053
Merit: 1356
aka tonikt
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
January 14, 2018, 01:18:53 AM Last edit: January 14, 2018, 02:44:40 AM by piotr_n |
|
If anyone is interested, the (not yet tagged) version 1.9.4 of gocoin supports native segwit addresses (the ones in bech32 format). I've used them for a couple of weeks already and they seem to have been working just fine. Still, make sure to verify your signed transaction before broadcasting it. Spending from a native segwit address might cut your transaction fee by as much as half - that's when you have your coins already deposited at a native segwit address. Let me know if you need a help using it. Basically "Segwit Deposit Addresses" for your existing (traditional) wallet are automatically shown in the Wallet tab of the web interface. And you can enter bech32 encoded addresses in the MakeTX tab for output addresses. Use the new version of wallet app to sign the transaction that either spends from or to a new (bech32 encoded) address. Obviously, the backward compatible P2SH segwit address types are working as well, but that's a very old news (I think 1.9.0) Still better to use the native segwit addresses (in bech32 format) as they make fairly cheaper transactions. As for the moment you need the gocoin client to spend from your native segwit addresses. It's because none of the block explorers used by balio tool supports fetching their balances yet. Some screenshots: https://imgur.com/ACWUAh8https://imgur.com/gqGYXUYCheers
|
Check out gocoin - my original project of full bitcoin node & cold wallet written in Go.PGP fingerprint: AB9E A551 E262 A87A 13BB 9059 1BE7 B545 CDF3 FD0E
|
|
|
|