Pages:
Author

Topic: [OSC]OpenSourcecoin Mandatory Update 7/1/14 - page 29. (Read 153311 times)

hero member
Activity: 686
Merit: 504
always the student, never the master.
November 14, 2013, 09:34:15 PM

The Windows QT v. 1.2 download link on the website is not working.  Is there another windows client download link?


thanks for the info. i will reupload the files i accidentally deleted them.

edit: seems google just switched the url of google drive files from docs.google to drive.google


they are all back up now.
full member
Activity: 151
Merit: 100
November 14, 2013, 01:38:40 PM

The Windows QT v. 1.2 download link on the website is not working.  Is there another windows client download link?
sr. member
Activity: 294
Merit: 250
November 09, 2013, 01:55:19 PM
Hi Guys.

Can anyone please tell me what pool I could mine these at using bfgminer please?

The pool address and port number would be very handy too. ty.

coinex is cool, u have to register first
then

http://osc.mining.coinex.pw:80
worker.worker/pw


we have stratum now:
stratum+tcp://stratum.coinex.pw:9025
member
Activity: 88
Merit: 10
November 09, 2013, 01:49:15 PM
Hi Guys.

Can anyone please tell me what pool I could mine these at using bfgminer please?

The pool address and port number would be very handy too. ty.

coinex is cool, u have to register first
then

http://osc.mining.coinex.pw:80
worker.worker/pw
full member
Activity: 126
Merit: 100
November 09, 2013, 12:28:21 PM
Hi Guys.

Can anyone please tell me what pool I could mine these at using bfgminer please?

The pool address and port number would be very handy too. ty.
member
Activity: 88
Merit: 10
November 07, 2013, 03:58:03 AM
very promising currency!
I see spikes arising
member
Activity: 112
Merit: 10
R3WT,这个骗子,偷挖30多W个NAN,伙同C网一起欺骗投资者。老子操你祖宗,你妈被人强奸,生下你这个逆子
member
Activity: 104
Merit: 10
I think I fixed the testnet.  My OSC address is 2C9X2eEBLdJx1aTpea6w6iwbP3krNT9zGj .  Bounty delivered. Thanks r3wt, glad to help.

The main error is the assert at line 2628 main.cpp:
Code:
~/test/OSC-master/src $ ./Ocoind --testnet
Ocoind: main.cpp:2628: bool LoadBlockIndex(bool): Assertion `block.GetHash() == (!fTestNet ? hashGenesisBlock : hashGenesisBlockTestNet)' failed.
Aborted

In a previous post I provided a hard coded diff to help get the testnet working.  In this post I'll try to explain how to prep the testnet for a new genesis block.  This is a unix command line walk through.  It assumes that you have the source zip and already unpacked it.

Firstly,  make sure you are working from a fresh testnet dir.  OSC is coded for testnet2.

Code:
$cd .Ocoin/testnet2
$rm -rf database
$rm blkindex.dat
$rm .lock
$cd

Next go to main.cpp and make the following changes:
Code:
~/test/OSC-master/src $ diff --normal ~/OSC-master/src/main.cpp ./main.cpp
20c20
< const bool IsCalculatingGenesisBlockHash = false;
---
> const bool IsCalculatingGenesisBlockHash = true;
49c49
< const int64 nTestNetStartTime = nChainStartTime; // 2013-08-03 18:00:00 GMT
---
> const int64 nTestNetStartTime = GetAdjustedTime(); // 2013-08-03 18:00:00 GMT
2576c2576
<         const char* pszTimestamp = "God IS L33T-- 08/02/2013 @ 2:33am";
---
>         const char* pszTimestamp = "Testnet reproduction, sat 27th oct 2013";
2592c2592
<         block.nTime    = 1376591211;
---
>         block.nTime    = GetAdjustedTime();
2594c2594
<         block.nNonce   = 1355283799;
---
>         block.nNonce   = 0;

Compile:
Code:
~/test/OSC-master/src $ make -f makefile.unix USE_UPNP=- all

Run testnet for genesis block.  Run from source dir because we will have to edit the source and compile again anyways.  This build will fail on an assert and dump info for the genesis block into the debug.log file.
Code:
~/test/OSC-master/src $ ./Ocoind -testnet -gen
Ocoind: main.cpp:2626: bool LoadBlockIndex(bool): Assertion `block.hashMerkleRoot == uint256("0x184c70772fd0640c08b123b7b59f06f69442c88b29fb167d48e82e73bd1a9a01")' failed.
Aborted
~/test/OSC-master/src $ rm ./Ocoind

Open another terminal window and more/tail the debug.log.
Code:
~/test/OSC-master/src $ tail -f ~/.Ocoin/testnet2/debug.log

and you should have some output regarding your genesis block:
Code:
Ocoin version v0.1.1.1-g99999-r1 ()
Using OpenSSL version OpenSSL 1.0.1c 10 May 2012
Startup time: 10/27/13 20:01:44
Default data directory /home/woodchuck/.Ocoin
Used data directory /home/woodchuck/.Ocoin/testnet2
dbenv.open LogDir=/home/woodchuck/.Ocoin/testnet2/database ErrorFile=/home/woodchuck/.Ocoin/testnet2/db.log
Bound to [::]:48519
Bound to 0.0.0.0:48519
Loading block index...
nonce 00010000: hash = 3bfef7ab7ccef617b3741e7948e588cc3e3ee9bdebfef290524497d7963e8986
nonce 00020000: hash = 78bc0087fdddfaf90698ee74768035d4f09aae780f17f0791da7587624ecb7de
nonce 00030000: hash = d64e16e976691b90662dffc3f6d34c79591fc30cb85c6fe3c22e4d10068762a7
nonce 00040000: hash = 9750892f2fba00a386c828fb623a307b7c269ee2e9e2e4bf08c07a4df32f2dd0
nonce 00050000: hash = 020fd29a71b39774e56253b79490c575da272872330b076b1d7c73cc51289d5b
nonce 00060000: hash = f7fafa3fe1ca21ecfeca772c5dbe9e734159b69692fc0567997e1c892e0229f2
CBlock(hash=000053ce817c363a8c3885e29328a3df8d297f0c85dcb5aba37185ab68d89448, ver=1, hashPrevBlock=0000000000000000000000000000000000000000000000000000000000000000, hashMerkleRoot=ede221767db6b172ad1a58be9256a1a3520b0ba3b2f0c2ec4495ff2095d23d64, nTime=1382904104, nBits=1f00ffff, nNonce=61558, vtx=1, vchBlockSig=)
  Coinbase(hash=ede221767d, nTime=1382904104, ver=1, vin.size=1, vout.size=1, nLockTime=0, strTxComment=text:Ocoin genesis block)
    CTxIn(COutPoint(0000000000, 4294967295), coinbase 04ffff001d020f2727546573746e657420726570726f64756374696f6e2c207361742032377468206f63742032303133)
    CTxOut(empty)
  vMerkleTree: ede221767d
block.GetHash() == 000053ce817c363a8c3885e29328a3df8d297f0c85dcb5aba37185ab68d89448
block.hashMerkleRoot == ede221767db6b172ad1a58be9256a1a3520b0ba3b2f0c2ec4495ff2095d23d64
block.nTime = 1382904104
block.nNonce = 61558
block.nBits = 520159231

Right of the bat, you can go to main.h and add your genesis block hash at line 51:
Code:
static const uint256 hashGenesisBlockTestNet("0x000053ce817c363a8c3885e29328a3df8d297f0c85dcb5aba37185ab68d89448");

Then we can make the changes in main.cpp that hard code the block. First change line 20 from true to false:
Code:
const bool IsCalculatingGenesisBlockHash = false;

Then set your ntime pulled from the log at line 49 of main.cpp:
Code:
const int64 nTestNetStartTime = 1382904104;

and fill the values from the log into lines 2592-2594 of main.cpp:
Code:
       block.nTime    = 1382904104;^M
        block.nBits    = 520159231;^M
        block.nNonce   = 61558;^M

Then you can update your merkel root at line 2626 in main.cpp:
Code:
       assert(block.hashMerkleRoot == uint256("0xede221767db6b172ad1a58be9256a1a3520b0ba3b2f0c2ec4495ff2095d23d64"));^M

Compile, then scrub testnet directory:
Code:
~/test/OSC-master/src $ make -f makefile.unix clean
rm -f Ocoind test_Ocoin
rm -f obj/*.o
rm -f obj-test/*.o
rm -f obj/*.P
rm -f obj-test/*.P
rm -f obj/build.h
~/test/OSC-master/src $ make -f makefile.unix USE_UPNP=- all
~/test/OSC-master/src $ cp ./Ocoind ~/
~/test/OSC-master/src $ cd
~/ $ cd .Ocoin/testnet2
~/.Ocoin/testnet2 $ rm blkindex.dat
~/.Ocoin/testnet2 $ rm -rf database
~/.Ocoin/testnet2 $ rm .lock
~/.Ocoin/testnet2 $ cd

Run testnet:
Code:
~/ $ ./Ocoind -testnet&


You should have a happy happy current build with a working testnet net.  If you tail the debug.log, you can see the peer data and the irc joins.  You cannot mine until there are multiple nodes, and they confirm there is no blocks.  What I did was compile and run on another computer and did an addnode= in the conf.  I didn't mess with any of the irc settings, so the client will join the testnet2 irc channel still, and hopefully connect with other peers.  None of the production net code is changed, so you can compile this code for the latest legit update.
member
Activity: 104
Merit: 10
To test the testnet,  make the changes in the code in the diffs below, then compile on a couple different nodes.  Tested on 32 and 64 bit mintbuntu. 

Don't forget to make a testnet.conf somewhere and use -conf= on the command line. You might need to addnode= in the config to reach your other testnet nodes. 

This might be kind of vague, so if you have any questions, let me know. It's late for me, long day.  I'm going to reproduce how I did the genesis block in the morning and do a write up here.

Edit: in the diff, lines pointing left are original file from latest release, and lines pointing right are the changes.

Edit Edit:  I took down my nodes, so if you roll with these changes it should start work from block 0 on the testnet.


Code:
~/test/OSC-master/src $ diff --normal ./main.cpp ~/OSC-master/src/main.cpp
49c49
< const int64 nTestNetStartTime = nChainStartTime; // 2013-08-03 18:00:00 GMT
---
> const int64 nTestNetStartTime = 1382854856; // 2013-08-03 18:00:00 GMT
2576c2576
<         const char* pszTimestamp = "God IS L33T-- 08/02/2013 @ 2:33am";
---
>         const char* pszTimestamp = "sat oct 26th 2013 ~23:13 pst";
2592,2594c2592,2594
<         block.nTime    = 1376591211;
<         block.nBits    = bnProofOfWorkLimit.GetCompact();
<         block.nNonce   = 1355283799;
---
>         block.nTime    = 1382854856;
>         block.nBits    = 520159231;
>         block.nNonce   = 13623;
2626c2626
<         assert(block.hashMerkleRoot == uint256("0x184c70772fd0640c08b123b7b59f06f69442c88b29fb167d48e82e73bd1a9a01"));
---
>         assert(block.hashMerkleRoot == uint256("0x756a8646ad666f501ac21f4e40aec9f9136f982b469e78901ca39c2227e7957b"));

~/test/OSC-master/src $ diff --normal ./main.h ~/OSC-master/src/main.h
51c51,52
< static const uint256 hashGenesisBlockTestNet("0x");
---
> static const uint256 hashGenesisBlockTestNet("0x00007b4731dca3876ce1a526d370c93ce15d834e60c43f01b5c3c6838a7d40e4");
>
member
Activity: 104
Merit: 10
R3wt,

Got a testnet going, let me know if you want the diffs for the files I changed, or if you want me to walk you through making the genesis block build and recompiling. 
member
Activity: 112
Merit: 10
你这个骗子,操你全家,还在骗人吗,你妈被人操烂了。

calm down like. we need you to post your Nanotoken address in the nanotoken thread. no one decieved you, you are mad because of what happened, i would be to, but remember i'm trying to help you. I should be ignoring you by now, but i'm giving you the benefit of the doubt. i'd be mad if i invested 20 bitcoins in a coin and it died too. so go back to the nanotoken thread, post a picture of your balance, and how many coins you were supposed to have, and we will pay you the difference, ok? and don't worry, Nanotoken is fixed now. as support picks up, its possible the exchange will pick it back up and you can recoup your investment. i need you to calm down and play ball with me if you want your investment back. i would buy your nanotokens off of you just to shut you up if i had the money, but i don't so these are your options.
不要找任何理由,如果你和C网赔偿我的损失,这就是你们的诚信,你以后发行的硬币会有很多人支持的,不然你就是臭名远播!
hero member
Activity: 686
Merit: 504
always the student, never the master.
please visit http://opensourcecoin.org to get the latest client update, which fixes an issue with block rewards @ block height 400,000.

thanks!
hero member
Activity: 686
Merit: 504
always the student, never the master.
你这个骗子,操你全家,还在骗人吗,你妈被人操烂了。

calm down like. we need you to post your Nanotoken address in the nanotoken thread. no one decieved you, you are mad because of what happened, i would be to, but remember i'm trying to help you. I should be ignoring you by now, but i'm giving you the benefit of the doubt. i'd be mad if i invested 20 bitcoins in a coin and it died too. so go back to the nanotoken thread, post a picture of your balance, and how many coins you were supposed to have, and we will pay you the difference, ok? and don't worry, Nanotoken is fixed now. as support picks up, its possible the exchange will pick it back up and you can recoup your investment. i need you to calm down and play ball with me if you want your investment back. i would buy your nanotokens off of you just to shut you up if i had the money, but i don't so these are your options.
member
Activity: 112
Merit: 10
你这个骗子,操你全家,还在骗人吗,你妈被人操烂了。
hero member
Activity: 686
Merit: 504
always the student, never the master.
In accordance with the the planned reward structure, there will be a required update in the next few days. though the affected block is > 6 months from now, 

line 968 of main.cpp will change from

Code:
else if (nHeight > 256000 && nHeight < 400000) {nSubsidy = 25 * COIN;}                 // 25 coins

to

Code:
else if (nHeight > 256000) {nSubsidy = 25 * COIN;}                 // 25 coins

This will allow the subsidy to begin dividing from 25 coins as was planned. at any rate i'm glad i caught the error before it made a problem. left as it is, the subsidy would drop to 1 @ block 400,000 crippling supply and likely unsettling miners. so thats the change. i will push the update this week probably, new client versions and the whole nine yards Smiley
sr. member
Activity: 420
Merit: 250
I still haven't heard from x3maniac, is anyone able to help me with OSC and stratum? I posted on the previous page about stratum failing to submit blocks to the wallet.
hero member
Activity: 686
Merit: 504
always the student, never the master.
well after keeping a watchful eye on the network i've came to the conclusion there may not need to be an update yet. for now i'm playing it by ear and trying to judge how it reacts to large fluctuations in hashrate. the jump from 80 ghs to 380 ghs produced only a 2000 point spike in difficulty, where as previously it was resulting in large 20000 point swing from 140 gh/s to 1 th/s. the real test will come next time an above average spike in hashrate comes, like we saw with the 3 th/s spike on the 17th that virtually froze the network for a few hours, with difficulty close to 300,000.

that's my little update for sunday evening, i will let you know if and when something changes with the network. it seems to be stable for now. Also the launch of security testing on coinbit begins tommorow, and launch could be as early as friday. thanks, and have a good sunday evening my crypto friends.

r3wt
hero member
Activity: 686
Merit: 504
always the student, never the master.
planned update for tomorrow. more details to follow later this evening.
hero member
Activity: 686
Merit: 504
always the student, never the master.
there seems to be a flaw in the difficulty retargeting every block, and there seems to be a large asic jumping on and off of the network which is causing difficulty stranding and long block times. i'm having a look into how it can be fixed.
Pages:
Jump to: