Bitcoin Forum
November 19, 2024, 04:27:45 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 ... 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 [181] 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 ... 249 »
  Print  
Author Topic: ◈◈Bitcredit ◈◈ Migrating to UniQredit◈◈  (Read 284545 times)
This is a self-moderated topic. If you do not want to be moderated by the person who started this topic, create a new topic.
dragos_bdi
Sr. Member
****
Offline Offline

Activity: 322
Merit: 250



View Profile
October 05, 2015, 06:39:34 AM
 #3601

https://github.com/bitcreditscc/bicreditsnew/blob/bb21fcb8bcf5dbc43e89eca6996f51e19d116479/src/main.cpp#L2158

>=50000*COIN

Thank You for your tips!
BCR - 5u7KPyiHKeg6sbdvd9XhT9HHpvh5c2ppTe
BTC - 1ASJQ7SE84sgQketS2kQCTQLV3DJesYnLh
bitcreditscc (OP)
Hero Member
*****
Offline Offline

Activity: 602
Merit: 501



View Profile
October 05, 2015, 07:32:35 AM
 #3602


What would be rationale behind that...? I mean from a technical PoV? Having 50K is all wee and fine, but the reason i used > rather than >= was at that time i assumed that one would first spin up a BN then get at least one payment to prove they are an active BN then start mining. However users can get around that by simply sending 50000.001.

How can we resolve this ?

dragos_bdi
Sr. Member
****
Offline Offline

Activity: 322
Merit: 250



View Profile
October 05, 2015, 07:41:22 AM
Last edit: October 05, 2015, 08:01:07 AM by dragos_bdi
 #3603


What would be rationale behind that...? I mean from a technical PoV? Having 50K is all wee and fine, but the reason i used > rather than >= was at that time i assumed that one would first spin up a BN then get at least one payment to prove they are an active BN then start mining. However users can get around that by simply sending 50000.001.

How can we resolve this ?

if they send 50000.001 they cannot start a BN but can mine. (for a BN to be started it's needed a fixed 50000 transaction)
If they send 50000 they can start a BN but cannot mine until they receive a payment.
If they have more BN's and just clear the BN wallet and send all coins received to another wallet, there is a possibility that they cannot mine because they are left only with 50000 BCR transaction.

For me, does not seems right ...

Thank You for your tips!
BCR - 5u7KPyiHKeg6sbdvd9XhT9HHpvh5c2ppTe
BTC - 1ASJQ7SE84sgQketS2kQCTQLV3DJesYnLh
bitcreditscc (OP)
Hero Member
*****
Offline Offline

Activity: 602
Merit: 501



View Profile
October 05, 2015, 08:05:32 AM
 #3604


What would be rationale behind that...? I mean from a technical PoV? Having 50K is all wee and fine, but the reason i used > rather than >= was at that time i assumed that one would first spin up a BN then get at least one payment to prove they are an active BN then start mining. However users can get around that by simply sending 50000.001.

How can we resolve this ?

if they send 50000.001 they cannot start a BN but can mine. (for a BN to be started it's needed a fixed 50000 transaction)
If they send 50000 they can start a BN but cannot mine until they receive a payment.
If they have more BN's and just clear the BN wallet and send all coins received to another wallet, there is a possibility that they cannot mine because they are left only with 50000 BCR transaction.

For me, does not seems alright ...

Right, thus we find the conflict. However, do we make provisions in the code for this , or should we leave this to the users' discretion? Indeed we have to have clear policy and support for various setups and options, but do the benefits of coding a solution outweigh the costs in terms of development/testing/deploy time and the additional computing required ? remember we now check for balances and consecutive keys. Already the client suffers slow downs , would the additional cost of computing be worthwhile, or should we leave it to users to understand that emptying a BN means wait for another payment before mining? In general users emptying a BN use coin control perhaos we can just add a note in the client that warns users of this ?

Hehehe, I am changing my approach to development/problem solving based on what I am learning through books and practical  Smiley

dragos_bdi
Sr. Member
****
Offline Offline

Activity: 322
Merit: 250



View Profile
October 05, 2015, 08:15:36 AM
 #3605


What would be rationale behind that...? I mean from a technical PoV? Having 50K is all wee and fine, but the reason i used > rather than >= was at that time i assumed that one would first spin up a BN then get at least one payment to prove they are an active BN then start mining. However users can get around that by simply sending 50000.001.

How can we resolve this ?

if they send 50000.001 they cannot start a BN but can mine. (for a BN to be started it's needed a fixed 50000 transaction)
If they send 50000 they can start a BN but cannot mine until they receive a payment.
If they have more BN's and just clear the BN wallet and send all coins received to another wallet, there is a possibility that they cannot mine because they are left only with 50000 BCR transaction.

For me, does not seems alright ...

Right, thus we find the conflict. However, do we make provisions in the code for this , or should we leave this to the users' discretion? Indeed we have to have clear policy and support for various setups and options, but do the benefits of coding a solution outweigh the costs in terms of development/testing/deploy time and the additional computing required ? remember we now check for balances and consecutive keys. Already the client suffers slow downs , would the additional cost of computing be worthwhile, or should we leave it to users to understand that emptying a BN means wait for another payment before mining? In general users emptying a BN use coin control perhaos we can just add a note in the client that warns users of this ?

Hehehe, I am changing my approach to development/problem solving based on what I am learning through books and practical  Smiley


Pffff ... You are right about this. I think the best solution is to warn users.  Tongue

At present time, I was trying to spin up some more miners to find 210286 ...  Cry

Thank You for your tips!
BCR - 5u7KPyiHKeg6sbdvd9XhT9HHpvh5c2ppTe
BTC - 1ASJQ7SE84sgQketS2kQCTQLV3DJesYnLh
dragos_bdi
Sr. Member
****
Offline Offline

Activity: 322
Merit: 250



View Profile
October 05, 2015, 08:23:24 AM
 #3606

Latest Windows 64 build based on master branch - version 0.30.17.5

Download Link: https://mega.nz/#!q4EXHZLK!-EdiPIZSD7qVYurXI_ypVUj_GKUc_32G5v2mv48562A

Thank You for your tips!
BCR - 5u7KPyiHKeg6sbdvd9XhT9HHpvh5c2ppTe
BTC - 1ASJQ7SE84sgQketS2kQCTQLV3DJesYnLh
bitcreditscc (OP)
Hero Member
*****
Offline Offline

Activity: 602
Merit: 501



View Profile
October 05, 2015, 08:23:37 AM
 #3607


Pffff ... You are right about this. I think the best solution is to warn users.  Tongue

At present time, I was trying to spin up some more miners to find 210286 ...  Cry

Just logged in to miner, yeah it's got a high difficulty. network hashrate has not yet stabilized. i had one core dedicated to mining i'll set 4 and see if that helps.

Nice catch though, these situations must be explored and discussed so that when we right a complete user guide, it will have all necessary information.

dragos_bdi
Sr. Member
****
Offline Offline

Activity: 322
Merit: 250



View Profile
October 05, 2015, 08:47:15 AM
 #3608

Found it !!!! 210286

Difficulty now 9155 ?!?!?!? OMG



{
"version" : 301705,
"protocolversion" : 70012,
"walletversion" : 60000,
"balance" : 50006.35664640,
"darksend_balance" : 0.00000000,
"blocks" : 210286,
"timeoffset" : 0,
"connections" : 31,
"proxy" : "",
"difficulty" : 0.00009155,
"testnet" : false,
"keypoololdest" : 1443254195,
"keypoolsize" : 2,
"paytxfee" : 0.00000000,
"relayfee" : 0.00001000,
"errors" : ""
}

Thank You for your tips!
BCR - 5u7KPyiHKeg6sbdvd9XhT9HHpvh5c2ppTe
BTC - 1ASJQ7SE84sgQketS2kQCTQLV3DJesYnLh
bitcreditscc (OP)
Hero Member
*****
Offline Offline

Activity: 602
Merit: 501



View Profile
October 05, 2015, 09:19:01 AM
 #3609

Found it !!!! 210286

Difficulty now 9155 ?!?!?!? OMG



{
"version" : 301705,
"protocolversion" : 70012,
"walletversion" : 60000,
"balance" : 50006.35664640,
"darksend_balance" : 0.00000000,
"blocks" : 210286,
"timeoffset" : 0,
"connections" : 31,
"proxy" : "",
"difficulty" : 0.00009155,
"testnet" : false,
"keypoololdest" : 1443254195,
"keypoolsize" : 2,
"paytxfee" : 0.00000000,
"relayfee" : 0.00001000,
"errors" : ""
}


full power on an i5, when i get a minute i'll throw 8 cores from a 8 core AMD processor.

dragos_bdi
Sr. Member
****
Offline Offline

Activity: 322
Merit: 250



View Profile
October 05, 2015, 09:51:08 AM
 #3610

Found it !!!! 210286

Difficulty now 9155 ?!?!?!? OMG



{
"version" : 301705,
"protocolversion" : 70012,
"walletversion" : 60000,
"balance" : 50006.35664640,
"darksend_balance" : 0.00000000,
"blocks" : 210286,
"timeoffset" : 0,
"connections" : 31,
"proxy" : "",
"difficulty" : 0.00009155,
"testnet" : false,
"keypoololdest" : 1443254195,
"keypoolsize" : 2,
"paytxfee" : 0.00000000,
"relayfee" : 0.00001000,
"errors" : ""
}


full power on an i5, when i get a minute i'll throw 8 cores from a 8 core AMD processor.

I did not see that high diff form when was +100GPU mining.
It's worth your time to check the diff algo keeping in mind that now we mine only with cpu-wallet only.

Me, i'm out from mining, 3 wallets are at 50000 and the one that found the block is off till the next one.

Thank You for your tips!
BCR - 5u7KPyiHKeg6sbdvd9XhT9HHpvh5c2ppTe
BTC - 1ASJQ7SE84sgQketS2kQCTQLV3DJesYnLh
dextronomous
Full Member
***
Offline Offline

Activity: 436
Merit: 105


View Profile
October 05, 2015, 10:00:41 AM
 #3611

yes thanks guys, dragos great thanks,

mine's off to till i figure out how to keep mining?

thelonecrouton
Legendary
*
Offline Offline

Activity: 966
Merit: 1000


View Profile
October 05, 2015, 10:03:20 AM
 #3612

Without banknode.conf working, having more than one exactly 50k input in a wallet screws up starting your banknode, as the client seems to select a 50k vin at random, not necessarily the one that matches your banknodeprivkey.

I think things as they are now will do, it allows users to decide which income stream(s) they prefer.

You can run as many miningkeys as you can afford off a Pi2 or similar, appx. running cost nothing - 1 core of a Pi2 uses well under 500mW at full load, so take your electricity cost per kW/h and divide it by 2000, it doesn't amount to much even if you're paying European prices... or you can stick 10+ BNs on a $4/month 2GB RAM VPS... or do both, or whatever combination you like.
thelonecrouton
Legendary
*
Offline Offline

Activity: 966
Merit: 1000


View Profile
October 05, 2015, 10:06:45 AM
 #3613

yes thanks guys, dragos great thanks,

mine's off to till i figure out how to keep mining?

Right now you only need 2 x 50k+ addresses to mine continuously, just put both addresses in miningkeys.dat. When it increases to 1 in 20 (or whatever) you'll need 20 x 50k+ addresses to mine continuously.
thelonecrouton
Legendary
*
Offline Offline

Activity: 966
Merit: 1000


View Profile
October 05, 2015, 10:18:27 AM
 #3614

Found it !!!! 210286

Difficulty now 9155 ?!?!?!? OMG



{
"version" : 301705,
"protocolversion" : 70012,
"walletversion" : 60000,
"balance" : 50006.35664640,
"darksend_balance" : 0.00000000,
"blocks" : 210286,
"timeoffset" : 0,
"connections" : 31,
"proxy" : "",
"difficulty" : 0.00009155,
"testnet" : false,
"keypoololdest" : 1443254195,
"keypoolsize" : 2,
"paytxfee" : 0.00000000,
"relayfee" : 0.00001000,
"errors" : ""
}


Hmm, I'm stuck on 210285:

getmininginfo
{
"blocks" : 210285,
"currentblocksize" : 1677,
"currentblocktx" : 3,
"difficulty" : 0.00000002,
"errors" : "Warning: The network does not appear to fully agree! Some miners appear to be experiencing issues.",
"genproclimit" : 1,
"networkhashps" : 0,
"pooledtx" : 3,
"testnet" : false,
"chain" : "main",
"generate" : true,
"hashespermin" : 5
}

Diff is nice and low here...  Tongue
dextronomous
Full Member
***
Offline Offline

Activity: 436
Merit: 105


View Profile
October 05, 2015, 10:37:05 AM
 #3615



{
"blocks" : 210286,
"currentblocksize" : 1225,
"currentblocktx" : 1,
"difficulty" : 0.00009155,
"errors" : "",
"genproclimit" : 1,
"networkhashps" : 3.88963552,
"pooledtx" : 1,
"testnet" : false,
"chain" : "main",
"generate" : true,
"hashespermin" : 2.49818881
}

here sweet.. so if no block found cpu keeps mining.. and if found stops till i activate it again or how does that part work?
i have my banknode.conf ok in place. worked till so far.
dragos_bdi
Sr. Member
****
Offline Offline

Activity: 322
Merit: 250



View Profile
October 05, 2015, 10:38:58 AM
 #3616



{
"blocks" : 210286,
"currentblocksize" : 1225,
"currentblocktx" : 1,
"difficulty" : 0.00009155,
"errors" : "",
"genproclimit" : 1,
"networkhashps" : 3.88963552,
"pooledtx" : 1,
"testnet" : false,
"chain" : "main",
"generate" : true,
"hashespermin" : 2.49818881
}

here sweet.. so if no block found cpu keeps mining.. and if found stops till i activate it again or how does that part work?
i have my banknode.conf ok in place. worked till so far.

sleeps until another one find a block, then start again on your wallet. at least now ....

Thank You for your tips!
BCR - 5u7KPyiHKeg6sbdvd9XhT9HHpvh5c2ppTe
BTC - 1ASJQ7SE84sgQketS2kQCTQLV3DJesYnLh
bitcreditscc (OP)
Hero Member
*****
Offline Offline

Activity: 602
Merit: 501



View Profile
October 05, 2015, 10:42:41 AM
 #3617

Found it !!!! 210286

Difficulty now 9155 ?!?!?!? OMG



{
"version" : 301705,
"protocolversion" : 70012,
"walletversion" : 60000,
"balance" : 50006.35664640,
"darksend_balance" : 0.00000000,
"blocks" : 210286,
"timeoffset" : 0,
"connections" : 31,
"proxy" : "",
"difficulty" : 0.00009155,
"testnet" : false,
"keypoololdest" : 1443254195,
"keypoolsize" : 2,
"paytxfee" : 0.00000000,
"relayfee" : 0.00001000,
"errors" : ""
}


full power on an i5, when i get a minute i'll throw 8 cores from a 8 core AMD processor.

I did not see that high diff form when was +100GPU mining.
It's worth your time to check the diff algo keeping in mind that now we mine only with cpu-wallet only.

Me, i'm out from mining, 3 wallets are at 50000 and the one that found the block is off till the next one.

I'm @ work so it's tight, i'll get some time @ lunch and use it to organize my mining nodes .You are right about the diff algorithm though, we once discussed using floats for adjustments, but it's scary stuff. Right now i'm working on json (when there are no clients of course) if i can get it to work, then when i go home all i'll be doing tonight is figuring out how to fix diff adj to float type...that should result it smoother increases and decreases.

bitcreditscc (OP)
Hero Member
*****
Offline Offline

Activity: 602
Merit: 501



View Profile
October 05, 2015, 10:46:43 AM
 #3618

Found it !!!! 210286

Difficulty now 9155 ?!?!?!? OMG



{
"version" : 301705,
"protocolversion" : 70012,
"walletversion" : 60000,
"balance" : 50006.35664640,
"darksend_balance" : 0.00000000,
"blocks" : 210286,
"timeoffset" : 0,
"connections" : 31,
"proxy" : "",
"difficulty" : 0.00009155,
"testnet" : false,
"keypoololdest" : 1443254195,
"keypoolsize" : 2,
"paytxfee" : 0.00000000,
"relayfee" : 0.00001000,
"errors" : ""
}


Hmm, I'm stuck on 210285:

getmininginfo
{
"blocks" : 210285,
"currentblocksize" : 1677,
"currentblocktx" : 3,
"difficulty" : 0.00000002,
"errors" : "Warning: The network does not appear to fully agree! Some miners appear to be experiencing issues.",
"genproclimit" : 1,
"networkhashps" : 0,
"pooledtx" : 3,
"testnet" : false,
"chain" : "main",
"generate" : true,
"hashespermin" : 5
}

Diff is nice and low here...  Tongue

Likely an issue of connectivity. Since there are a few nodes fully operational it's taking a few seconds longer than usual for tx to get around the whole net. Also blocks may not propagate properly. I've sent a pm to the bitnodes guy, i'll compare his rates to just managing our own nodes.


bitcreditscc (OP)
Hero Member
*****
Offline Offline

Activity: 602
Merit: 501



View Profile
October 05, 2015, 11:13:50 AM
 #3619

Code:
   if (pindexLast->nHeight+1 >29999){
if (nActualTimespan < Params().TargetTimespan2()/4)
        nActualTimespan = Params().TargetTimespan2()/2;
if (nActualTimespan > Params().TargetTimespan2()*4)
        nActualTimespan = Params().TargetTimespan2()* 8;
}

Maybe to something like

Code:
   if (pindexLast->nHeight+1 >21100){
if (nActualTimespan < Params().TargetTimespan2()/4)
        nActualTimespan = Params().TargetTimespan2()/1.1; //10% increases in diff
if (nActualTimespan > Params().TargetTimespan2()*4)
        nActualTimespan = Params().TargetTimespan2()* 8; //not sure if I should change this (works specially well to drastically reduce diff against possible attacks )
}

dragos_bdi
Sr. Member
****
Offline Offline

Activity: 322
Merit: 250



View Profile
October 05, 2015, 12:05:50 PM
Last edit: October 05, 2015, 01:16:53 PM by dragos_bdi
 #3620

Code:
   if (pindexLast->nHeight+1 >29999){
if (nActualTimespan < Params().TargetTimespan2()/4)
        nActualTimespan = Params().TargetTimespan2()/2;
if (nActualTimespan > Params().TargetTimespan2()*4)
        nActualTimespan = Params().TargetTimespan2()* 8;
}

Maybe to something like

Code:
   if (pindexLast->nHeight+1 >21100){
if (nActualTimespan < Params().TargetTimespan2()/4)
        nActualTimespan = Params().TargetTimespan2()/1.1; //10% increases in diff
if (nActualTimespan > Params().TargetTimespan2()*4)
        nActualTimespan = Params().TargetTimespan2()* 8; //not sure if I should change this (works specially well to drastically reduce diff against possible attacks )
}

Why don't you use last 900 blocks to do a better diff adjustment ?

Code:
// Go back by what we want to be 14 days worth of blocks
     const CBlockIndex* pindexFirst = pindexLast;
const CBlockIndex* pindexFirst900 = pindexLast;
     if ((pindexLast->nHeight+1) < 4800){
     for (int i = 0; pindexFirst && i < Params().Interval()-1; i++)
         pindexFirst = pindexFirst->pprev;
}
else if ((pindexLast->nHeight+1) >210000 ){
for (int i = 0; 900; i++) {
         pindexFirst900 = pindexFirst900->pprev;
}
      pindexFirst = pindexFirst->pprev;
}
    assert(pindexFirst);
    assert(pindexFirst900);

    // Limit adjustment step
    int64_t nActualTimespan = pindexLast->GetBlockTime() - pindexFirst->GetBlockTime();
    int64_t nActualTimespan900 = whole((pindexLast->GetBlockTime() - pindexFirst900->GetBlockTime())/900);
    if (fDebug)
    if(fDebug)LogPrintf("  nActualTimespan = %d  before bounds\n", nActualTimespan);

if (pindexLast->nHeight+1 >210000){
if (nActualTimespan900 < Params().TargetTimespan2()/4)
        nActualTimespan900 = Params().TargetTimespan2()/1.1;
if (nActualTimespan900 > Params().TargetTimespan2()*4)
        nActualTimespan900 = Params().TargetTimespan2()* 8;
nActualTimespan = nActualTimespan900;
}  

   else if (pindexLast->nHeight+1 >29999){
if (nActualTimespan < Params().TargetTimespan2()/4)
        nActualTimespan = Params().TargetTimespan2()/2;
if (nActualTimespan > Params().TargetTimespan2()*4)
        nActualTimespan = Params().TargetTimespan2()* 8;
}

Thank You for your tips!
BCR - 5u7KPyiHKeg6sbdvd9XhT9HHpvh5c2ppTe
BTC - 1ASJQ7SE84sgQketS2kQCTQLV3DJesYnLh
Pages: « 1 ... 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 [181] 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 ... 249 »
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!