r3wt (OP)
|
|
September 10, 2013, 07:10:12 AM |
|
int64 GetProofOfWorkReward(int nHeight, int64 nFees, uint256 prevHash) {
static const int64 nMinimumCoin = 0.0777 * COIN;
int64 nSubsidy = 0.0777 * COIN; //genesis
if (nHeight > 0 && nHeight < 7) {nSubsidy = 0 * COIN;} // zero else if (nHeight == 7) {nSubsidy = 177777 * COIN;} // Premine else if (nHeight > 7 && nHeight < 1000) {nSubsidy = (2.5 * COIN;} // IRC Launch else if (nHeight > 1000 && nHeight < 1337) {nSubsidy = (0.0777 * COIN;} // low instamine official launch else if (nHeight == 1337) {nSubsidy = 1337 * COIN;} //L33T else if (nHeight > 1337 && nHeight < 4000) {nSubsidy = 1 * COIN;} //final launch period else if (nHeight > 4000 && nHeight < 8000) {nSubsidy = 22.5 * COIN;} // 22.5 coin else if (nHeight > 8000 && nHeight < 16000) {nSubsidy = 15 * COIN;} // 15 coins per block else if (nHeight > 16000 && nHeight < 32000) {nSubsidy = 7.5 * COIN;} // 7.5 coins per block else if (nHeight > 32000 && nHeight < 64000) {nSubsidy = 6 * COIN;} // 6 coins per block else if (nHeight > 64000 && nHeight < 77777) {nSubsidy = 4 * COIN;} // 4 coins else if (nHeight == 77777) {nSubsidy = 10000 * COIN;} // bonus reward else if (nHeight > 77777 && nHeight < 128000) {nSubsidy = 4 * COIN;} // 4 coins else if (nHeight > 128000 && nHeight < 256000) {nSubsidy = 3 * COIN;} // 3 coins else if (nHeight > 256000 && nHeight < 400000) {nSubsidy = 2.5 * COIN;} // 2.5 coins else {nSubsidy = 1 * COIN;}
If I'm reading this source right, blocks 1000, 4000, 8000, 16000, 32000, 64000, 128000 and 256000 will be a reward of only (1 * COIN), because these blocks fail all conditional tests. Is this intentional? no that was just an oversight on my part, however the purpos of the following line is a fallback for a block that doesn't meet the conditional requirements based on nHeight. else {nSubsidy = 1 * COIN;} nMinCoin(0.0777) is meant to stop the block rewards from dividing to a ridiculously small amount. you seem to pay very close attention to detail. down the road if i needed to add some features outside of the normal features, would you be qualified to take on such a project?
|
My negative trust rating is reflective of a personal vendetta by someone on default trust.
|
|
|
r3wt (OP)
|
|
September 10, 2013, 11:47:11 AM |
|
bump
|
My negative trust rating is reflective of a personal vendetta by someone on default trust.
|
|
|
Hydroponica
Full Member
Offline
Activity: 182
Merit: 100
fml
|
|
September 10, 2013, 01:28:22 PM |
|
We need a POOL!!!!
|
|
|
|
Vakhen
Newbie
Offline
Activity: 18
Merit: 0
|
|
September 10, 2013, 02:00:36 PM |
|
We need a POOL!!!!
Exactly...
|
|
|
|
TheSpiral
Full Member
Offline
Activity: 322
Merit: 113
Sinbad Mixer: Mix Your BTC Quickly
|
|
September 10, 2013, 02:09:25 PM |
|
Have found several blocks already, but giveaways and bounties are worth way way more than just mining at this point. Maybe once we get past block 4000, it'll be much more worthwhile.
|
|
|
|
stas
|
|
September 10, 2013, 02:20:21 PM |
|
can't sync
|
|
|
|
stas
|
|
September 10, 2013, 02:45:04 PM |
|
no active connections
|
|
|
|
Su100
Full Member
Offline
Activity: 135
Merit: 100
Business models change. Its the mindset that stays
|
|
September 10, 2013, 04:43:27 PM |
|
Solo mining works fine now:)
|
|
|
|
r3wt (OP)
|
|
September 11, 2013, 12:01:48 AM |
|
updated remaining premine balance. there are still lots of bounties available. and there are still many more coins to be given away in the giveaway post. there is another giveaway that has been started on cryptocointalk https://cryptocointalk.com/topic/1182-ocoin-giveaway/no active connections
Patently false.
|
My negative trust rating is reflective of a personal vendetta by someone on default trust.
|
|
|
cshelswell
|
|
September 11, 2013, 02:26:14 AM |
|
Hi this doesn't compile for me on linux. I'm getting a "fatal error: Ocoingui.h: No such file or directory" I also had to rename the icons in res/icons with an upper case O
Anyone else got this compiled on Linux?
Also what's the rpcport for the conf?
Cheers
|
|
|
|
r3wt (OP)
|
|
September 11, 2013, 02:39:09 AM |
|
Hi this doesn't compile for me on linux. I'm getting a "fatal error: Ocoingui.h: No such file or directory" I also had to rename the icons in res/icons with an upper case O
Anyone else got this compiled on Linux?
Also what's the rpcport for the conf?
Cheers
@linux issue. let me look at the source and see what i can determine. @rpcport. default rpc port is 38532, however in the windows installer the pregenerated conf file sets it to 80 assuming that noobs will not be able to open non standard ports in their router.
|
My negative trust rating is reflective of a personal vendetta by someone on default trust.
|
|
|
cshelswell
|
|
September 11, 2013, 02:50:42 AM |
|
great thanks. If i can get it going I'll have a wee shot at mining it
|
|
|
|
r3wt (OP)
|
|
September 11, 2013, 03:08:18 AM |
|
great thanks. If i can get it going I'll have a wee shot at mining it ok, after a brief look through the source its just standard debug stuff. you can do a find and replace using a text editor and replace Ocoin with ocoin(all lowercase) and it should compile just fine.
|
My negative trust rating is reflective of a personal vendetta by someone on default trust.
|
|
|
cshelswell
|
|
September 11, 2013, 03:34:11 AM |
|
nope that still craps out. Went through the code and fixed the capital letters but at the end I'm getting a heap of "undefined reference to 'boost::this_thread::hidden::sleep_until...'
Dont think that's my system. I've got boost installed and have compiled heaps of wallets so i'm not sure....
Cheers
|
|
|
|
Vakhen
Newbie
Offline
Activity: 18
Merit: 0
|
|
September 11, 2013, 03:39:00 AM |
|
So I'm rather used to doing pool mining vs local mining. Finally figured out I needed to move the ocoin.conf file to my appdata/roaming/ocoin directory, changed rpc port, user, pass. got cgminer to connect to it and start hashing. However, I'm not seeing any "accepted" work units, and I have 528 Getworks. Seeing an avg new block of 0.8 min. I'm hashing at about 2.7Gh, so am I just hashing too slow? Just don't want to leave this hashing overnight when I could be hashing with an objective elsewhere.
|
|
|
|
r3wt (OP)
|
|
September 11, 2013, 03:44:37 AM |
|
So I'm rather used to doing pool mining vs local mining. Finally figured out I needed to move the ocoin.conf file to my appdata/roaming/ocoin directory, changed rpc port, user, pass. got cgminer to connect to it and start hashing. However, I'm not seeing any "accepted" work units, and I have 528 Getworks. Seeing an avg new block of 0.8 min. I'm hashing at about 2.7Gh, so am I just hashing too slow? Just don't want to leave this hashing overnight when I could be hashing with an objective elsewhere.
i can't answer that question objectively. i'm hashing at 1.0003 gh/s and i get a block every hour or so. in the end if you want to go else where i certainly understand. its hard to mine right now without a pool if you are a small miner. i've spoken with both ahmed bodhi and jude austin who are working on pools
|
My negative trust rating is reflective of a personal vendetta by someone on default trust.
|
|
|
Vakhen
Newbie
Offline
Activity: 18
Merit: 0
|
|
September 11, 2013, 03:50:31 AM |
|
So I'm rather used to doing pool mining vs local mining. Finally figured out I needed to move the ocoin.conf file to my appdata/roaming/ocoin directory, changed rpc port, user, pass. got cgminer to connect to it and start hashing. However, I'm not seeing any "accepted" work units, and I have 528 Getworks. Seeing an avg new block of 0.8 min. I'm hashing at about 2.7Gh, so am I just hashing too slow? Just don't want to leave this hashing overnight when I could be hashing with an objective elsewhere.
i can't answer that question objectively. i'm hashing at 1.0003 gh/s and i get a block every hour or so. in the end if you want to go else where i certainly understand. its hard to mine right now without a pool if you are a small miner. i've spoken with both ahmed bodhi and jude austin who are working on pools Ahh ok, well if you're rolling at 1 and getting a block an hour, if I'm rolling at 2 I should get a block every 30 or so I'd guess. So I'll let it cruise for a couple hours and see how it goes. I presume it'll show the coins in the local wallet right? Or do I have to go into a log somewhere?
|
|
|
|
r3wt (OP)
|
|
September 11, 2013, 03:57:09 AM |
|
So I'm rather used to doing pool mining vs local mining. Finally figured out I needed to move the ocoin.conf file to my appdata/roaming/ocoin directory, changed rpc port, user, pass. got cgminer to connect to it and start hashing. However, I'm not seeing any "accepted" work units, and I have 528 Getworks. Seeing an avg new block of 0.8 min. I'm hashing at about 2.7Gh, so am I just hashing too slow? Just don't want to leave this hashing overnight when I could be hashing with an objective elsewhere.
i can't answer that question objectively. i'm hashing at 1.0003 gh/s and i get a block every hour or so. in the end if you want to go else where i certainly understand. its hard to mine right now without a pool if you are a small miner. i've spoken with both ahmed bodhi and jude austin who are working on pools Ahh ok, well if you're rolling at 1 and getting a block an hour, if I'm rolling at 2 I should get a block every 30 or so I'd guess. So I'll let it cruise for a couple hours and see how it goes. I presume it'll show the coins in the local wallet right? Or do I have to go into a log somewhere? some people have reported them showing up 10 minutes late in their wallet, some people have reported them showing up and dissapearing(this is known as an orphan), but for me it usually shows up in my wallet in a minute or two after cgminer announces i found a block. hope this helps
|
My negative trust rating is reflective of a personal vendetta by someone on default trust.
|
|
|
Vakhen
Newbie
Offline
Activity: 18
Merit: 0
|
|
September 11, 2013, 03:59:11 AM |
|
Woot 2 blocks! They show as "Immature". How cute lol.
|
|
|
|
r3wt (OP)
|
|
September 11, 2013, 04:12:47 AM |
|
nope that still craps out. Went through the code and fixed the capital letters but at the end I'm getting a heap of "undefined reference to 'boost::this_thread::hidden::sleep_until...'
Dont think that's my system. I've got boost installed and have compiled heaps of wallets so i'm not sure....
Cheers
shit, i have no idea. worked fine on windows. i will have to confer with shakezula on this one. EDIT: i conferred with shakezula, and here is the fix. 1. open Ocoin.pro 2. comment out the lines 8-22 until it looks like this, save and exit your text editor. # UNCOMMENT THIS SECTION TO BUILD ON WINDOWS #windows:LIBS += -lshlwapi #LIBS += $$join(BOOST_LIB_PATH,,-L,) $$join(BDB_LIB_PATH,,-L,) $$join(OPENSSL_LIB_PATH,,-L,) $$join(QRENCODE_LIB_PATH,,-L,) #LIBS += -lssl -lcrypto -ldb_cxx$$BDB_LIB_SUFFIX #windows:LIBS += -lws2_32 -lole32 -loleaut32 -luuid -lgdi32 #LIBS += -lboost_system-mgw46-mt-sd-1_53 -lboost_filesystem-mgw46-mt-sd-1_53 -lboost_program_options-mgw46-mt-sd-1_53 -lboost_thread-mgw46-mt-sd-1_53 #BOOST_LIB_SUFFIX=-mgw46-mt-sd-1_53 #BOOST_INCLUDE_PATH=C:/deps/boost #BOOST_LIB_PATH=C:/deps/boost/stage/lib #BDB_INCLUDE_PATH=c:/deps/db/build_unix #BDB_LIB_PATH=c:/deps/db/build_unix #OPENSSL_INCLUDE_PATH=c:/deps/ssl/include #OPENSSL_LIB_PATH=c:/deps/ssl #MINIUPNPC_LIB_PATH=c:/deps/miniupnpc #MINIUPNPC_INCLUDE_PATH=c:/deps 3. report back with results. optionally you can try deleting line 8-22 altogether.
|
My negative trust rating is reflective of a personal vendetta by someone on default trust.
|
|
|
|