Author [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] Topic: 50 PTS Bounty - Fix PTS Synchronization Time Issues [PAID]  (Read 4272 times)

0 Members and 1 Guest are viewing this topic.

Offline bytemaster

50 PTS Bounty - Fix PTS Synchronization Time Issues [PAID]
« on: December 28, 2013, 08:37:40 AM »

Provide a working solution that allows someone to download a PTS wallet and get connected to the network in less than 5 minutes.

This bounty is still in the pending state until the full specification for this bounty can be defined.  If you would like to tackle this bounty help us define the SPEC and requirements first. 

This bounty will be won when I have a downloadable Windows Binary produced by a trusted (by me) source (FreeTrade or other), a pull request for the required changes, and I can verify that downloading on clean machine results in rapid connections.

A secondary bounty for $10 per month (Paid in PTS) will be given to people who host seed nodes on unique services.  Limit 4 total.

This bounty is now ACTIVE.
« Last Edit: December 31, 2013, 04:26:11 PM by bytemaster »
For the latest updates checkout my blog: http://bytemaster.bitshares.org
Anything said on these forums does not constitute an intent to create a legal obligation or contract between myself and anyone else.   These are merely my opinions and I reserve the right to change them at any time.

Offline zvs

  • Full Member
  • ***
  • Posts: 193
    • View Profile
Re: 50 PTS Bounty - Fix PTS Synchronization Time Issues [PENDING]
« Reply #1 on: December 28, 2013, 02:02:36 PM »
But it's already possible to do this?

... I could make a video showing how easy it is?  lol

my server has never had more than 400 connections at once.  i always get connected within a second or two.  provided it doesn't get DDoSed, this should continue
Pls to join Primedice 3 and frolic about merrily whilst gambling awe-inspiring quantities of bitcoins. The power of Christ compels you.

I have a dogecoin p2pool at Nogleg.

Offline barwizi

  • Hero Member
  • *****
  • Posts: 764
  • Noirbits, NoirShares, NoirEx.....lol, noir anyone?
    • View Profile
    • Noirbitstalk.org
Re: 50 PTS Bounty - Fix PTS Synchronization Time Issues [PENDING]
« Reply #2 on: December 28, 2013, 02:14:50 PM »
I'll be done in an hour, hope i get there first. It's rough but it will work. I'll have to figure it for windows users though.
--Bar--  PiNEJGUv4AZVZkLuF6hV4xwbYTRp5etWWJ

The magical land of crypto, no freebies people.

Offline barwizi

  • Hero Member
  • *****
  • Posts: 764
  • Noirbits, NoirShares, NoirEx.....lol, noir anyone?
    • View Profile
    • Noirbitstalk.org
Re: 50 PTS Bounty - Fix PTS Synchronization Time Issues [PENDING]
« Reply #3 on: December 28, 2013, 03:13:55 PM »
Code: [Select]
sudo apt-get update && sudo apt-get install git make g++ build-essential libminiupnpc-dev libboost-all-dev libdb++-dev libgmp-dev libssl-dev dos2unix cmake qt4-qmake libgmp3-dev autotools-dev nautilus-open-terminal xsensors autoconf curl dos2unix libtool libcurl4-openssl-dev mesa-utils libncurses5-dev python3-pycurl python-simplejson python3-urllib3 python-beautifulsoup python-numpy-dev python3-numpy-dev libdb48-dev libopenssl-dev libdb++-dev qt-sdk openssh-server cdbs fakeroot dh-make debhelper debconf libstdc++6 dkms libqtgui4 libelfg0 dh-modaliases ia32-libs ia32-libs-multiarch lib32gcc1 libc6 pkg-config automake
wget http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz
tar -xzvf db-4.8.30.NC.tar.gz
cd db-4.8.30.NC/build_unix
../dist/configure --enable-cxx
sudo make
sudo make install
cd
git clone https://github.com/InvictusInnovations/ProtoShares
git clone https://github.com/Nameshar/PTSBoost.git
mv PTSBoost .protoshares
cd Protoshares
qmake-qt4
make
./Protoshares-qt --reindex


need to get home and test it, but i think the files should already be on github, if anyone is interested, you can try it in the mean time. I'll be at my desk soon.

The whole idea is to use direct download to get the Block chain in seconds/ 2 minutes depending on your bandwidth , copy files that are at worst a day old and have your Client running hopefully in less than 5 minutes. The above script is my system-remake.sh that i use to change a newly installed linux to a miner, i have removed things like all the cpuminers, cgminer and my coins of interest to make it specific to this cause. The full system-remake includes most of the required stuff for development.

An advantage of this is that it even includes a peers file that enable quick connection to others.
« Last Edit: December 28, 2013, 03:22:05 PM by barwizi »
--Bar--  PiNEJGUv4AZVZkLuF6hV4xwbYTRp5etWWJ

The magical land of crypto, no freebies people.

Offline barwizi

  • Hero Member
  • *****
  • Posts: 764
  • Noirbits, NoirShares, NoirEx.....lol, noir anyone?
    • View Profile
    • Noirbitstalk.org
Re: 50 PTS Bounty - Fix PTS Synchronization Time Issues [PENDING]
« Reply #4 on: December 28, 2013, 03:23:58 PM »
Taking long to upload files
« Last Edit: December 28, 2013, 03:34:45 PM by barwizi »
--Bar--  PiNEJGUv4AZVZkLuF6hV4xwbYTRp5etWWJ

The magical land of crypto, no freebies people.

Offline bytemaster

Re: 50 PTS Bounty - Fix PTS Synchronization Time Issues [PENDING]
« Reply #5 on: December 28, 2013, 04:26:45 PM »
The issue people have is finding nodes to connect to not downloading the chain.


Sent from my iPhone using Tapatalk
For the latest updates checkout my blog: http://bytemaster.bitshares.org
Anything said on these forums does not constitute an intent to create a legal obligation or contract between myself and anyone else.   These are merely my opinions and I reserve the right to change them at any time.

Offline barwizi

  • Hero Member
  • *****
  • Posts: 764
  • Noirbits, NoirShares, NoirEx.....lol, noir anyone?
    • View Profile
    • Noirbitstalk.org
Re: 50 PTS Bounty - Fix PTS Synchronization Time Issues [PENDING]
« Reply #6 on: December 28, 2013, 06:00:04 PM »
The issue people have is finding nodes to connect to not downloading the chain.


Sent from my iPhone using Tapatalk

modify this

Code: [Select]
static const char *strMainNetDNSSeed[][2] = {
    {"162.243.45.158", "162.243.45.158"},
    {"192.241.150.158", "192.241.150.158"},
    {"162.243.67.4", "162.243.67.4"},
    {"162.243.54.126", "162.243.54.126"},
    {"37.139.29.236", "37.139.29.236"},
    {"64.90.183.137", "64.90.183.137"},
    {"111.93.163.251","111.93.163.251"},
    {"54.219.164.96","54.219.164.96"},
    {"198.211.112.13","198.211.112.13"},
    {"50.112.199.32","50.112.199.32"},
    {"106.187.41.67","106.187.41.67"},
    {"54.218.232.206","54.218.232.206"},
    {"54.212.175.33","54.212.175.33"},
    {NULL, NULL}
};

in protoshares/src/net.cpp

to

Code: [Select]
static const char *strMainNetDNSSeed[][2] = {
    {"49.89.6.185", "49.89.6.185"},
    {"222.174.212.250", "222.174.212.250"},
    {"183.8.183.73", "183.8.183.73"},
    {"173.208.148", "173.208.148"},
    {"169.237.74.213", "169.237.74.213"},
    {"175.42.27.186","175.42.27.186"},
    {NULL, NULL}
};

Add more, as you see fit. also maybe get a server online that has high bandwidth, run the client there and add it to this list.
mine connects in seconds with the above.
« Last Edit: December 28, 2013, 06:44:03 PM by barwizi »
--Bar--  PiNEJGUv4AZVZkLuF6hV4xwbYTRp5etWWJ

The magical land of crypto, no freebies people.

Offline barwizi

  • Hero Member
  • *****
  • Posts: 764
  • Noirbits, NoirShares, NoirEx.....lol, noir anyone?
    • View Profile
    • Noirbitstalk.org
Re: 50 PTS Bounty - Fix PTS Synchronization Time Issues [PENDING]
« Reply #7 on: December 28, 2013, 06:45:09 PM »
Or do you want a pull request?
--Bar--  PiNEJGUv4AZVZkLuF6hV4xwbYTRp5etWWJ

The magical land of crypto, no freebies people.

Offline bytemaster

Re: 50 PTS Bounty - Fix PTS Synchronization Time Issues [PENDING]
« Reply #8 on: December 28, 2013, 06:46:33 PM »
Or do you want a pull request?

I would like a pull request as well as some background on the nodes in the list.  How do we know they will stay up?
For the latest updates checkout my blog: http://bytemaster.bitshares.org
Anything said on these forums does not constitute an intent to create a legal obligation or contract between myself and anyone else.   These are merely my opinions and I reserve the right to change them at any time.

Offline bytemaster

Re: 50 PTS Bounty - Fix PTS Synchronization Time Issues [PENDING]
« Reply #9 on: December 28, 2013, 06:47:58 PM »
Or do you want a pull request?

I would like a pull request as well as some background on the nodes in the list.  How do we know they will stay up?

I would also like a windows EXE built by someone I trust and who's identity I know. 
For the latest updates checkout my blog: http://bytemaster.bitshares.org
Anything said on these forums does not constitute an intent to create a legal obligation or contract between myself and anyone else.   These are merely my opinions and I reserve the right to change them at any time.

Offline barwizi

  • Hero Member
  • *****
  • Posts: 764
  • Noirbits, NoirShares, NoirEx.....lol, noir anyone?
    • View Profile
    • Noirbitstalk.org
Re: 50 PTS Bounty - Fix PTS Synchronization Time Issues [PENDING]
« Reply #10 on: December 28, 2013, 07:50:31 PM »
The seed nodes are just addnodes that were thrown around.

If you want nodes you can control, you need only fire up a few VPS and then use them as the seednodes.
As for windows compilation, i am unable to do that part for the time being. Pull request is being refused, please follow link for modified file.

https://drive.google.com/file/d/0BxCtiOzdwvPyYkpGdXJBZkZsX0k/edit?usp=sharing
--Bar--  PiNEJGUv4AZVZkLuF6hV4xwbYTRp5etWWJ

The magical land of crypto, no freebies people.

Offline toast

Re: 50 PTS Bounty - Fix PTS Synchronization Time Issues [PENDING]
« Reply #11 on: December 28, 2013, 08:59:29 PM »
Here is barwizi's change as a pull request:

https://github.com/InvictusInnovations/ProtoShares/pull/5

If you guys can guarantee reimbursement I'd be glad to make a DO account and spin up some dedicated nodes.
Do not use this post as information for making any important decisions. The only agreements I ever make are informal and non-binding. Take the same precautions as when dealing with a compromised account, scammer, sockpuppet, etc.

Offline bytemaster

Re: 50 PTS Bounty - Fix PTS Synchronization Time Issues [PENDING]
« Reply #12 on: December 28, 2013, 09:01:42 PM »
Here is barwizi's change as a pull request:

https://github.com/InvictusInnovations/ProtoShares/pull/5

If you guys can guarantee reimbursement I'd be glad to make a DO account and spin up some dedicated nodes.

We will fund this reimbursement in PTS from the Angel fund.  As this effort is collaborative each of you must agree as to how to divide the 50 PTS among yourselves to deliver the complete solution.   The solution will be complete when I can post an updated download link and people have a positive experience.
For the latest updates checkout my blog: http://bytemaster.bitshares.org
Anything said on these forums does not constitute an intent to create a legal obligation or contract between myself and anyone else.   These are merely my opinions and I reserve the right to change them at any time.

Offline FreeTrade

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 700
    • View Profile
Re: 50 PTS Bounty - Fix PTS Synchronization Time Issues [PENDING]
« Reply #13 on: December 28, 2013, 09:04:17 PM »
The issue people have is finding nodes to connect to not downloading the chain.


Sent from my iPhone using Tapatalk

I added a 'churn' option to MemoryCoin to help with this. It allows a seed node to be started so that it maintains outbound connections, but churns (disconnects) inbound connections after 10 minutes, hopefully allowing new users to connect, get a list of good nodes, and disconnect. Small addition to the source to do it.
“People should be more sophisticated? How are you gonna get that done?” - Jerry Seinfeld reply to Bill Maher

Offline toast

Re: 50 PTS Bounty - Fix PTS Synchronization Time Issues [PENDING]
« Reply #14 on: December 28, 2013, 09:30:01 PM »
Ok, I'm setting up a DO droplet. I'll report when it's built and blockchain is downloaded. Once we confirm it works, I'll write a setup script and spin up 5-10 instances, then update the pull request with the new IP addresses.
Do not use this post as information for making any important decisions. The only agreements I ever make are informal and non-binding. Take the same precautions as when dealing with a compromised account, scammer, sockpuppet, etc.

 

Google+