Bitcoin Forum
December 11, 2016, 12:09:05 PM *
News: Latest stable version of Bitcoin Core: 0.13.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 [50] 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 »
  Print  
Author Topic: New Ixcoin fork -> I0coin  (Read 200682 times)
caston
Hero Member
*****
Offline Offline

Activity: 720



View Profile WWW
August 29, 2011, 07:03:52 AM
 #981

Do you realise how ironic this is?

18jL18iH96BBhwUCQn27FQp7ocodSxvJAB
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1481458145
Hero Member
*
Offline Offline

Posts: 1481458145

View Profile Personal Message (Offline)

Ignore
1481458145
Reply with quote  #2

1481458145
Report to moderator
1481458145
Hero Member
*
Offline Offline

Posts: 1481458145

View Profile Personal Message (Offline)

Ignore
1481458145
Reply with quote  #2

1481458145
Report to moderator
1481458145
Hero Member
*
Offline Offline

Posts: 1481458145

View Profile Personal Message (Offline)

Ignore
1481458145
Reply with quote  #2

1481458145
Report to moderator
ArtForz
Sr. Member
****
Offline Offline

Activity: 406


View Profile
August 29, 2011, 07:33:52 AM
 #982

First stab at adding a 3s recv timeout to the NTP stuff, I *hate* asio.
Code:
diff --git a/src/util.cpp b/src/util.cpp
index 31dcb57..cfd1932 100644
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -839,6 +839,17 @@ time_t GetNTPTime( const char* ntpServer )
  socket.send_to(
  boost::asio::buffer(data),
  receiver_endpoint);
+ //ugly hack, CBA to switch to asio async I/O just to get a 3 sec timeout
+ int hSocket = socket.native();
+ fd_set fdset;
+ FD_ZERO(&fdset);
+ FD_SET(hSocket, &fdset);
+ struct timeval t;
+ t.tv_sec = 3;
+ t.tv_usec = 0;
+ int n_readable = select(hSocket+1, &fdset, NULL, NULL, &t);
+ if (!n_readable)
+ return time_t(0);
  socket.receive_from(
  boost::asio::buffer(data),
  sender_endpoint);
@@ -890,10 +901,17 @@ int64 GetAdjustedTime()
 
  if((time - nTimeNTPLastSync) >= (60 * 5)) // Calculate the NTP offset once every 5 min
  {
- int64 ntpTime = GetNTPTime();
- nTimeNTPOffset = ntpTime - time;
  nTimeNTPLastSync = time;
- printf("nTimeNTPOffset=%d\n",nTimeNTPOffset);
+ int64 ntpTime = GetNTPTime();
+ if (ntpTime)
+ {
+ nTimeNTPOffset = ntpTime - time;
+ printf("nTimeNTPOffset=%d\n",nTimeNTPOffset);
+ }
+ else
+ {
+ printf("NTP timeout\n");
+ }
  }
 
     return time + nTimeNTPOffset;
it compiles, seems to work and doesn't lock up or crash the client... so far.

bitcoin: 1Fb77Xq5ePFER8GtKRn2KDbDTVpJKfKmpz
i0coin: jNdvyvd6v6gV3kVJLD7HsB5ZwHyHwAkfdw
caston
Hero Member
*****
Offline Offline

Activity: 720



View Profile WWW
August 29, 2011, 07:44:43 AM
 #983

Please set the block number for the change over a bit higher before relaunch.

18jL18iH96BBhwUCQn27FQp7ocodSxvJAB
Chris Acheson
Sr. Member
****
Offline Offline

Activity: 266


View Profile
August 29, 2011, 07:48:43 AM
 #984

Do you realise how ironic this is?

Shh, don't ruin it.  Wink
ArtForz
Sr. Member
****
Offline Offline

Activity: 406


View Profile
August 29, 2011, 07:59:49 AM
 #985

Please set the block number for the change over a bit higher before relaunch.
Sure, we can switch after block 16127, at diff 16384 and a exchange rate of 0.0006 those remaining 1495 blocks should be done in ... 6 months or so.

bitcoin: 1Fb77Xq5ePFER8GtKRn2KDbDTVpJKfKmpz
i0coin: jNdvyvd6v6gV3kVJLD7HsB5ZwHyHwAkfdw
fusebox
Jr. Member
*
Offline Offline

Activity: 35


View Profile
August 29, 2011, 09:25:25 AM
 #986

First stab at adding a 3s recv timeout to the NTP stuff, I *hate* asio.
Code:
diff --git a/src/util.cpp b/src/util.cpp
index 31dcb57..cfd1932 100644
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -839,6 +839,17 @@ time_t GetNTPTime( const char* ntpServer )
  socket.send_to(
  boost::asio::buffer(data),
  receiver_endpoint);
+ //ugly hack, CBA to switch to asio async I/O just to get a 3 sec timeout
+ int hSocket = socket.native();
+ fd_set fdset;
+ FD_ZERO(&fdset);
+ FD_SET(hSocket, &fdset);
+ struct timeval t;
+ t.tv_sec = 3;
+ t.tv_usec = 0;
+ int n_readable = select(hSocket+1, &fdset, NULL, NULL, &t);
+ if (!n_readable)
+ return time_t(0);
  socket.receive_from(
  boost::asio::buffer(data),
  sender_endpoint);
@@ -890,10 +901,17 @@ int64 GetAdjustedTime()
 
  if((time - nTimeNTPLastSync) >= (60 * 5)) // Calculate the NTP offset once every 5 min
  {
- int64 ntpTime = GetNTPTime();
- nTimeNTPOffset = ntpTime - time;
  nTimeNTPLastSync = time;
- printf("nTimeNTPOffset=%d\n",nTimeNTPOffset);
+ int64 ntpTime = GetNTPTime();
+ if (ntpTime)
+ {
+ nTimeNTPOffset = ntpTime - time;
+ printf("nTimeNTPOffset=%d\n",nTimeNTPOffset);
+ }
+ else
+ {
+ printf("NTP timeout\n");
+ }
  }
 
     return time + nTimeNTPOffset;
it compiles, seems to work and doesn't lock up or crash the client... so far.
committed

bitcoin: 1BGPiVN8A9MTzfv8GHkVRKCopabdjJMqh8
i0coin: jVimyfVkfFLr9R51MN1sW9vV2mXFRu7htb
solid: This money is not worth the paper it's printed on
Anonymous
Guest

August 29, 2011, 09:57:16 AM
 #987

It still should be 42 coins per block and rename i0coin to 42coin.

Its the answer to life ,the universe, and everything.

Then Art can say so long and thanks for all the coins ?
smoothie
Legendary
*
Offline Offline

Activity: 1848


LEALANA Monero Physical Silver Coins


View Profile
August 29, 2011, 10:46:39 AM
 #988

lol So guys what are we doing over here? Restart i0coin? LAWL

 Cheesy

███████████████████████████████████████

            ,╓p@@███████@╗╖,           
        ,p████████████████████N,       
      d█████████████████████████b     
    d██████████████████████████████æ   
  ,████²█████████████████████████████, 
 ,█████  ╙████████████████████╨  █████y
 ██████    `████████████████`    ██████
║██████       Ñ███████████`      ███████
███████         ╩██████Ñ         ███████
███████    ▐▄     ²██╩     a▌    ███████
╢██████    ▐▓█▄          ▄█▓▌    ███████
 ██████    ▐▓▓▓▓▌,     ▄█▓▓▓▌    ██████─
           ▐▓▓▓▓▓▓█,,▄▓▓▓▓▓▓▌          
           ▐▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▌          
    ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓─  
     ²▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓╩    
        ▀▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▀       
           ²▀▀▓▓▓▓▓▓▓▓▓▓▓▓▀▀`          
                   ²²²                 
███████████████████████████████████████

. ★☆ WWW.LEALANA.COM        My PGP fingerprint is A764D833.        SMOOTHIE'S HEALTH AND FITNESS JOURNAL          History of Monero development Visualization ★☆ .
LEALANA  PHYSICAL MONERO COINS 999 FINE SILVER.
 
fusebox
Jr. Member
*
Offline Offline

Activity: 35


View Profile
August 29, 2011, 10:50:01 AM
 #989

committed


Ok, got a windows binary rebuilt with all the changes discussed above... Just need a ok place to post it.

Obviously no one should trust these binaries and you should compile yourself.... but those not inclined to do so we do have an update available.

bitcoin: 1BGPiVN8A9MTzfv8GHkVRKCopabdjJMqh8
i0coin: jVimyfVkfFLr9R51MN1sW9vV2mXFRu7htb
solid: This money is not worth the paper it's printed on
smoothie
Legendary
*
Offline Offline

Activity: 1848


LEALANA Monero Physical Silver Coins


View Profile
August 29, 2011, 11:41:47 AM
 #990

committed


Ok, got a windows binary rebuilt with all the changes discussed above... Just need a ok place to post it.

Obviously no one should trust these binaries and you should compile yourself.... but those not inclined to do so we do have an update available.


Link?

███████████████████████████████████████

            ,╓p@@███████@╗╖,           
        ,p████████████████████N,       
      d█████████████████████████b     
    d██████████████████████████████æ   
  ,████²█████████████████████████████, 
 ,█████  ╙████████████████████╨  █████y
 ██████    `████████████████`    ██████
║██████       Ñ███████████`      ███████
███████         ╩██████Ñ         ███████
███████    ▐▄     ²██╩     a▌    ███████
╢██████    ▐▓█▄          ▄█▓▌    ███████
 ██████    ▐▓▓▓▓▌,     ▄█▓▓▓▌    ██████─
           ▐▓▓▓▓▓▓█,,▄▓▓▓▓▓▓▌          
           ▐▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▌          
    ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓─  
     ²▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓╩    
        ▀▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▀       
           ²▀▀▓▓▓▓▓▓▓▓▓▓▓▓▀▀`          
                   ²²²                 
███████████████████████████████████████

. ★☆ WWW.LEALANA.COM        My PGP fingerprint is A764D833.        SMOOTHIE'S HEALTH AND FITNESS JOURNAL          History of Monero development Visualization ★☆ .
LEALANA  PHYSICAL MONERO COINS 999 FINE SILVER.
 
fusebox
Jr. Member
*
Offline Offline

Activity: 35


View Profile
August 29, 2011, 11:45:34 AM
 #991

ok, so I confirmed this new client is working..  I'll call it version i0coin 1.1...  Those who choose to adopt it.. the current block chain is at 14632... So the new 1.1 rules will kick in 8 blocks.. should give plenty of time for those who were wanting it to recompile and go live.

Changes at block 14640:  Rebase to 256 difficulty... 90 second blocks. Solidcoin retarget method.

Client bugs fixed:  Issues with negative block count on loading new chain... NTP hangs.


Code:
https://github.com/fusebox/i0coin

bitcoin: 1BGPiVN8A9MTzfv8GHkVRKCopabdjJMqh8
i0coin: jVimyfVkfFLr9R51MN1sW9vV2mXFRu7htb
solid: This money is not worth the paper it's printed on
fusebox
Jr. Member
*
Offline Offline

Activity: 35


View Profile
August 29, 2011, 11:46:32 AM
 #992



Link?

Where do you suggest?   I don't know what a trusted location to post these.

bitcoin: 1BGPiVN8A9MTzfv8GHkVRKCopabdjJMqh8
i0coin: jVimyfVkfFLr9R51MN1sW9vV2mXFRu7htb
solid: This money is not worth the paper it's printed on
fusebox
Jr. Member
*
Offline Offline

Activity: 35


View Profile
August 29, 2011, 11:51:37 AM
 #993

This one still stands Smiley

Quote
I would like to setup a bounty for fixing i0coins:

200 i0coins for the one who fixes it!

Who wants to add some more? Quote and add your name to the list!

Bounty list:
MaGNeT - 200 i0coins
d.james - 400 i0coins

Total - 600 i0coins

Remember, we can only pay the bounty if the network is up again  Grin

Obviously your call on this.. but I want to be clear that ArtForz  should be considered for the bulk of bounty or a share as his code led to the changes.. I'm just the shlep who checked it in.

Hopefully anyone looking for i0coin to come back to rescue thier i0coin balance or exchange out to bitcoin or solid coin (if a market shows up), would consider a tip of thier bitcoin proceeds.

Enjoy.

bitcoin: 1BGPiVN8A9MTzfv8GHkVRKCopabdjJMqh8
i0coin: jVimyfVkfFLr9R51MN1sW9vV2mXFRu7htb
solid: This money is not worth the paper it's printed on
CosicMiner
Full Member
***
Offline Offline

Activity: 135



View Profile
August 29, 2011, 01:01:45 PM
 #994

can you post the new client on sourceforge?
doublec
Legendary
*
Offline Offline

Activity: 1078


View Profile
August 29, 2011, 01:09:15 PM
 #995

Hopefully anyone looking for i0coin to come back to rescue thier i0coin balance or exchange out to bitcoin or solid coin (if a market shows up), would consider a tip of thier bitcoin proceeds.
The bitparking i0coin pool is now running this new version. Once things seem to be stable I'll re-open the i0coin side of the exchange.
doublec
Legendary
*
Offline Offline

Activity: 1078


View Profile
August 29, 2011, 01:10:31 PM
 #996

Hopefully anyone looking for i0coin to come back to rescue thier i0coin balance or exchange out to bitcoin or solid coin (if a market shows up), would consider a tip of thier bitcoin proceeds.
I sent you some btc to the address in your sig as thanks for your work, nice job!
ArtForz
Sr. Member
****
Offline Offline

Activity: 406


View Profile
August 29, 2011, 01:21:05 PM
 #997

Seems to be working, we're at block 14641 and diff is 256 as expected.... 14642... 14645... I think I'll direct my miners elsewhere now (inb4 "STOP HOGGING THE BLOCKS")

bitcoin: 1Fb77Xq5ePFER8GtKRn2KDbDTVpJKfKmpz
i0coin: jNdvyvd6v6gV3kVJLD7HsB5ZwHyHwAkfdw
caston
Hero Member
*****
Offline Offline

Activity: 720



View Profile WWW
August 29, 2011, 02:00:31 PM
 #998

Oh thanks I hope its still at low difficulty when I get home form work but I don't like my chances lol... time for me to learn how to setup a VPN/ssh so I can direct my mining rig remotely.

18jL18iH96BBhwUCQn27FQp7ocodSxvJAB
fusebox
Jr. Member
*
Offline Offline

Activity: 35


View Profile
August 29, 2011, 02:08:55 PM
 #999

Hopefully anyone looking for i0coin to come back to rescue thier i0coin balance or exchange out to bitcoin or solid coin (if a market shows up), would consider a tip of thier bitcoin proceeds.
I sent you some btc to the address in your sig as thanks for your work, nice job!
Hey thanks. Smiley   

Still looking for a recomendation for a quick/trustworthy place to host these windows binaries.. Just let me know and I'll get it up.

bitcoin: 1BGPiVN8A9MTzfv8GHkVRKCopabdjJMqh8
i0coin: jVimyfVkfFLr9R51MN1sW9vV2mXFRu7htb
solid: This money is not worth the paper it's printed on
Mousepotato
Hero Member
*****
Offline Offline

Activity: 896


Seal Cub Clubbing Club


View Profile
August 29, 2011, 02:13:37 PM
 #1000

Where can we download the compiled version?  I looked at fusebox's github but couldn't finds it Sad

Mousepotato
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 [50] 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 »
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!