Author

Topic: [ANN][XCN] Cryptonite - NEW Thread | 1st mini-blockchain coin | Bounties! - page 114. (Read 215666 times)

legendary
Activity: 2716
Merit: 1094
Black Belt Developer
Cryptonite triesync loop fix.

https://github.com/krnlx/Cryptonite/commit/c5f47ce76ca1ede4a6c2d78bfa9cd1579ee0ee73

Synced 7 times from many nodes with no problems. Please test it, and write feedback. If sync fails on triesync, please provide log.

Thanks very much, you are doing an awesome job! I'm on a little holiday but I will soon test it. If everything works fine for everybody, I will ask you to make a pull request with the fix, so I can merge it into the main branch.
What about the speedup patch, did you find a way to remove the hard limit on block number?
full member
Activity: 839
Merit: 100
Hi everyone! Anyone can tell me how much hashes i'll get per a GTX 970 card with pallas miner? Ty!

Where can you find it ?

That I know pallas is the only one that uses that miner, and I think that in a gtx 1070 reaches 36 mh / s in a gtx 1080 IT must be something much higher

Osea that miner has not been made public nor for sale

Woow, what an insane hashrate !
legendary
Activity: 1176
Merit: 1015
Did you try cryptonited with tcmalloc allocator? It will be more fast.

Compiled from krlnx/Cryptonite with tcmalloc allocator, 26 minutes from scratch. Biggest difference vs. qt is even lower cpu usage, now max usage on that weak laptop is 7% when adding block.

For comparison I tried windows + cryptonited 1.3 + ssd + desktop i5 and syncing was actually slower, 33 minutes!?
hero member
Activity: 2114
Merit: 618
Hi everyone! Anyone can tell me how much hashes i'll get per a GTX 970 card with pallas miner? Ty!

Where can you find it ?

That I know pallas is the only one that uses that miner, and I think that in a gtx 1070 reaches 36 mh / s in a gtx 1080 IT must be something much higher

Osea that miner has not been made public nor for sale
full member
Activity: 839
Merit: 100
Hi everyone! Anyone can tell me how much hashes i'll get per a GTX 970 card with pallas miner? Ty!

Where can you find it ?
full member
Activity: 546
Merit: 137
Hi everyone! Anyone can tell me how much hashes i'll get per a GTX 970 card with pallas miner? Ty!
sr. member
Activity: 266
Merit: 250
P.S.: I've tested it during 34 hours, no issues for now.
I've tested your compiled cryptonited wallet for just over 12 hours on three of my rigs (using local wallets for lower latency), so a total of 36+ hours tested. None of them has crashed and seem to work fine so far.

The wallet itself is 150MB compared to 7MB for the old one. I'm guessing you've left a lot of unneeded things in there (I'm no expert, but forgot to "clean up"?).

It has all libs statically linked, just for compatibility, so is the size.
full member
Activity: 243
Merit: 105
I tried syncing from scratch with an old laptop with hdd, was really surprised when it only took 32 minutes from start to synced and running.

Same old laptop with krlnx qt-wallet took 29 minutes to sync from scratch, cpu usage is down A LOT, it is not cpu limited anymore.

Also started testing with palgin compiled 1.3 windows wallets, we'll see where they go. Last two weeks without problems with wallets.



Did you try cryptonited with tcmalloc allocator? It will be more fast.
full member
Activity: 243
Merit: 105
Cryptonite triesync loop fix.

https://github.com/krnlx/Cryptonite/commit/c5f47ce76ca1ede4a6c2d78bfa9cd1579ee0ee73

Synced 7 times from many nodes with no problems. Please test it, and write feedback. If sync fails on triesync, please provide log.
sr. member
Activity: 378
Merit: 250
P.S.: I've tested it during 34 hours, no issues for now.
I've tested your compiled cryptonited wallet for just over 12 hours on three of my rigs (using local wallets for lower latency), so a total of 36+ hours tested. None of them has crashed and seem to work fine so far.

The wallet itself is 150MB compared to 7MB for the old one. I'm guessing you've left a lot of unneeded things in there (I'm no expert, but forgot to "clean up"?).
full member
Activity: 175
Merit: 113
Trading and wallet back in action on Novaexchange.
yeeaaahh!! sell your mined coins for 100 sat`s Grin

I don't see why that's a problem. After all, the indicated market price is dictated by the most recent trades. Just offer your XCN at a higher price and as soon as someone buys it, voila, the price on Nova updates. If no one buys it then the market price really is that low and you can buy XCN cheap and sell them expensive on BTC38. Either way, win Smiley
legendary
Activity: 1176
Merit: 1015
I tried syncing from scratch with an old laptop with hdd, was really surprised when it only took 32 minutes from start to synced and running.

Same old laptop with krlnx qt-wallet took 29 minutes to sync from scratch, cpu usage is down A LOT, it is not cpu limited anymore.

Also started testing with palgin compiled 1.3 windows wallets, we'll see where they go. Last two weeks without problems with wallets.

hero member
Activity: 2114
Merit: 618
What's wrong? It seems pallas stated clearly:

As soon as we get enough good reports, I will put it into the first post and notify btc38!

Btc38 is running Windows-node, so it needs fix for Windows, which pallas added to 0.1.3.0 and I've compiled for Win. Just test and report, and btc38 will be back online in few days.  Wink

P.S.: I've tested it during 34 hours, no issues for now.

What a great news, the reopening of the wallet in btc38 is what is needed, not another exchange where stupid people lower the price of the coin
sr. member
Activity: 378
Merit: 250
What's wrong? It seems pallas stated clearly:

As soon as we get enough good reports, I will put it into the first post and notify btc38!

Btc38 is running Windows-node, so it needs fix for Windows, which pallas added to 0.1.3.0 and I've compiled for Win. Just test and report, and btc38 will be back online in few days.  Wink

P.S.: I've tested it during 34 hours, no issues for now.
Aren't they using the qt wallet though? So for btc38 to maybe get back up, the qt wallet needs to be compiled and tested first.
sr. member
Activity: 266
Merit: 250
What's wrong? It seems pallas stated clearly:

As soon as we get enough good reports, I will put it into the first post and notify btc38!

Btc38 is running Windows-node, so it needs fix for Windows, which pallas added to 0.1.3.0 and I've compiled for Win. Just test and report, and btc38 will be back online in few days.  Wink

P.S.: I've tested it during 34 hours, no issues for now.
full member
Activity: 237
Merit: 100
Trading and wallet back in action on Novaexchange.
yeeaaahh!! sell your mined coins for 100 sat`s Grin

Who will be the stupid that under the price of XCN in novaexchange selling to: 0.00000120, So it is better to focus on the reopening of trade in BTC38. That to have this type of exchanges, thus avoiding that stupid people have to under the price of the coin, it is my recommendation for you pallas, to recover the deposits and withdrawals in btc38
bter have 170 sat`s price...very close. this is just not a funny. coin is down in shit (sorry for my words)...btc38 not soon fixed wallet.
hero member
Activity: 2114
Merit: 618
Trading and wallet back in action on Novaexchange.
yeeaaahh!! sell your mined coins for 100 sat`s Grin

Who will be the stupid that under the price of XCN in novaexchange selling to: 0.00000120, So it is better to focus on the reopening of trade in BTC38. That to have this type of exchanges, thus avoiding that stupid people have to under the price of the coin, it is my recommendation for you pallas, to recover the deposits and withdrawals in btc38
full member
Activity: 237
Merit: 100
Trading and wallet back in action on Novaexchange.
yeeaaahh!! sell your mined coins for 100 sat`s Grin
newbie
Activity: 40
Merit: 0
Trading and wallet back in action on Novaexchange.
full member
Activity: 243
Merit: 105

Thanks, I will try this.
Maybe the faster AcceptBlock (which is actually a faster Activate), since it should speedup getslice as well, may make the trie sync issue much less common.
Thus, when the network is updated, it may go away by itself.

So people please test the krnlx patch to death, and also we need to set a much higher hard limit for block number or make it dynamic (without this we can't push the improvement to production).

A few words about my patch:

I. What is doing TrieView::Activate ?

We have two chains with blocks:
Code:
1,2,3,4,5,6,7,8,....,99,100,103,104
Code:
1,2,3,4,5,6,7,8,....,99,100,101,102,105

blocks get listed backwards (pindex->pprev) into two lists:
Code:
104,103,100,....3,2,1
Code:
105,102,101,....3,2,1
then same blocks removing from lists(starting from 1), we getting:
Code:
104,103
Code:
105,102,101
when we have a lot of blocks in chain, there is involved a lot of slow c++ boost staff (linked lists, memory allocs,etc)

II. What I've done?
1.allocated two arrays, and filled it with pointers to blocks.
2. Then scan them backwards until index reached SAFE_UNIQ or the blocks become different. So we get:
Code:
94,95,96,97,98,99,100,103,104
Code:
94,95,96,97,98,99,100,101,102,105
3. fill two linked lists with this blocks
4. then the original code works with those linked lists, which are short.

III.
I have never seen a situation where these two chains differ from each other by more than one block, but I did not rule out such an opportunity (for example 3 or more blocks in a row are orphan). If you rely on the fact that they will always differ by one block, then the code can be greatly simplified.

IV. Possible problems
1. Size for arrays: must be a bit more(number?), than block height. How correctly determine actual blockheight from TrieView::Activate?
2. Check my code for errors: it is small, but errors can exist : wrong indexes, which can cause illegal memory access, or incorrect results.
Jump to: