Author Topic: 50 PTS Bounty - Fix PTS Synchronization Time Issues [PAID]  (Read 6134 times)

0 Members and 1 Guest are viewing this topic.

Offline toast

  • Hero Member
  • *****
  • Posts: 4002
    • View Profile
  • BitShares: nikolai
Re: 50 PTS Bounty - Fix PTS Synchronization Time Issues [PENDING]
« Reply #15 on: December 28, 2013, 09:47:58 pm »
Built from source with the new change and got some connections right away!

{
    "version" : 80600,
    "protocolversion" : 70001,
    "walletversion" : 60000,
    "balance" : 0.00000000,
    "blocks" : 8639,
    "timeoffset" : -1,
    "connections" : 5,
    "proxy" : "",
    "difficulty" : 0.00001526,
    "testnet" : false,
    "keypoololdest" : 1388266820,
    "keypoolsize" : 101,
    "paytxfee" : 0.01000000,
    "errors" : ""
}


Current droplet at:  162.243.197.231

I used addnode with this IP with the old client and it found some connections right away. So far I've built and tested the daemon on ubuntu. We need someone to build and test the QT client on windows (I don't have a windows machine), and then we're good!
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 toast

  • Hero Member
  • *****
  • Posts: 4002
    • View Profile
  • BitShares: nikolai
Re: 50 PTS Bounty - Fix PTS Synchronization Time Issues [PENDING]
« Reply #16 on: December 28, 2013, 09:49:53 pm »
Actually, we should decide how many nodes we want / who we want to own them (should be distributed among a few people IMO) and then update the pull request.

Any volunteers for hosting seed nodes? Hosting costs will be reimbursed and I can provide a setup script pretty soon.
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 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 #17 on: December 28, 2013, 09:59:51 pm »
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
git clone https://github.com/InvictusInnovations/ProtoShares
cd Protoshares/src
make -f makefile.unix
echo "rpcuser=[youruser]" >> /root/.protoshares/protoshares.conf
echo "rpcpassword=[yourpass]" >> /root/.protoshares/protoshares.conf
./bitcoind -daemon
./bitcoind setgenerate true 3

since it's a vps, you may as well mine with it.
« Last Edit: December 28, 2013, 10:05:48 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 #18 on: December 28, 2013, 10:03:51 pm »
I love the team work! 

Free trades fix needs to be part of the solution because my seed node fills up and stops accepting connections.  I have to kill it every 15 minutes to keep things working. 


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 toast

  • Hero Member
  • *****
  • Posts: 4002
    • View Profile
  • BitShares: nikolai
Re: 50 PTS Bounty - Fix PTS Synchronization Time Issues [PENDING]
« Reply #19 on: December 28, 2013, 10:12:25 pm »
I love the team work! 

Free trades fix needs to be part of the solution because my seed node fills up and stops accepting connections.  I have to kill it every 15 minutes to keep things working. 


Sent from my iPhone using Tapatalk

Quick-n-dirty solution would be to just set a cron job to kill and restart the node, if that indeed does work.

Someone check this (goes in crontab)?

* * 15 * * ps -eo pid,args | grep bitcoind | awk '{print $1}' | xargs -I {} kill -9 {}  && ~/ProtoShares/src/bitcoind -daemon
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 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 #20 on: December 28, 2013, 10:19:49 pm »
Modified files here https://drive.google.com/folderview?id=0BxCtiOzdwvPyTUZ2UjhaQXFDOHM&usp=sharing

net.cpp and init.cpp

I added the churn function

just replace and build or push

My upload streams are both unreliable, cant seem to push to github
« Last Edit: December 28, 2013, 10:22:51 pm by barwizi »
--Bar--  PiNEJGUv4AZVZkLuF6hV4xwbYTRp5etWWJ

The magical land of crypto, no freebies people.

Offline toast

  • Hero Member
  • *****
  • Posts: 4002
    • View Profile
  • BitShares: nikolai
Re: 50 PTS Bounty - Fix PTS Synchronization Time Issues [PENDING]
« Reply #21 on: December 28, 2013, 10:32:58 pm »
Added your changes and my new seed node, they're in the same pull request


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

for some reason the diffs on github aren't working properly, can you copy/paste the parts you changed here so we can see?
« Last Edit: December 28, 2013, 10:35:31 pm by toast »
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 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 #22 on: December 28, 2013, 10:35:12 pm »
Mission acomplished, now....who gets what %?
--Bar--  PiNEJGUv4AZVZkLuF6hV4xwbYTRp5etWWJ

The magical land of crypto, no freebies people.

Offline toast

  • Hero Member
  • *****
  • Posts: 4002
    • View Profile
  • BitShares: nikolai
Re: 50 PTS Bounty - Fix PTS Synchronization Time Issues [PENDING]
« Reply #23 on: December 28, 2013, 10:39:26 pm »
Let's make sure it builds and runs on all platforms first, and maybe see what I3 guys say about how many dedicated seeds they want?

I'm fine with 20 for me and 30 for you, assuming we'll get paid for hosting separately.

I did:
Set up new working seed and github stuff. Also was working on setup script but you got to it first. Gonna set up more seeds if bytemaster wants them.

you did:
Setup script, churn code (how hard was this? was very fast, I assume you used freetrade's code for this), found the list of working seed IPs

still to do: build working pts-qt for windows
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 FreeTrade

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 700
    • View Profile
Re: 50 PTS Bounty - Fix PTS Synchronization Time Issues [PENDING]
« Reply #24 on: December 28, 2013, 10:43:44 pm »
Mission acomplished, now....who gets what %?

No idea - but if it pans out and if I'm due something here's my PTS - PnARJi1wbdCUGMzdck16xe5RKpf3eYBmQP
 
“People should be more sophisticated? How are you gonna get that done?” - Jerry Seinfeld reply to Bill Maher

Offline bytemaster

Re: 50 PTS Bounty - Fix PTS Synchronization Time Issues [PENDING]
« Reply #25 on: December 28, 2013, 10:53:41 pm »
I think 3 plus my current seed node for a total of 4 will be fine.   Not all at DO though 4 different providers. 




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 toast

  • Hero Member
  • *****
  • Posts: 4002
    • View Profile
  • BitShares: nikolai
Re: 50 PTS Bounty - Fix PTS Synchronization Time Issues [PENDING]
« Reply #26 on: December 28, 2013, 11:02:18 pm »
I think 3 plus my current seed node for a total of 4 will be fine.   Not all at DO though 4 different providers. 


Wait so are you saying your current node is DO? Can I use the one I just set up plus two more (say, linode and rackspace)?
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 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 #27 on: December 28, 2013, 11:11:35 pm »
This is now complicated.
--Bar--  PiNEJGUv4AZVZkLuF6hV4xwbYTRp5etWWJ

The magical land of crypto, no freebies people.

Offline toast

  • Hero Member
  • *****
  • Posts: 4002
    • View Profile
  • BitShares: nikolai
Re: 50 PTS Bounty - Fix PTS Synchronization Time Issues [PENDING]
« Reply #28 on: December 28, 2013, 11:13:17 pm »
Yeah I agree, I think the bounty should be bumped a bit?
Having new nodes or requires setting up nodes with different providers wasn't part of the original spec.

I'm AFK for a while, someone else want to set up nodes on non-DO servers?
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 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 #29 on: December 28, 2013, 11:27:58 pm »
Yeah I agree, I think the bounty should be bumped a bit?
Having new nodes or requires setting up nodes with different providers wasn't part of the original spec.

I'm AFK for a while, someone else want to set up nodes on non-DO servers?

I provided fix for the initial bounty and his request to add Freetrades mod. You pushed the fixes and created a node. So maybe he'll compansate for the extra work if we are lucky.
--Bar--  PiNEJGUv4AZVZkLuF6hV4xwbYTRp5etWWJ

The magical land of crypto, no freebies people.