Pages:
Author

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

legendary
Activity: 3906
Merit: 6249
Decentralization Maximalist
Sorry it took so much but I finally was able to have a look at your work. I thought less changes were needed :-/
In general it looks good; I will clone and compile it ASAP to see if I can find were the problem lies.
A little note: bignum.cpp is added to a headers directive in Makefile.am, there is probably a more appropriate place to put it.
Yep, I thought also it were only a couple of easy replacements - and it turned out to be much more. But as I already started, I wanted to finish it ...

The files where I suspect I did something wrong are those where I didn't make only simple replacements using the patches (because Cryptonite had significantly different code) and had to guess what to use instead:

- chainparams.cpp (first replacement is specific to Cryptonite)
- main.cpp (the part at line 980 where a fNegative/fOverflow variable is introduced, Cryptonite's code was somewhat different than Bitcoin's)
- main.h (around line 736)
- crypter.cpp
- key.cpp (in these two files the original Peercoin patch didn't work fully, so I had to adapt it)

PS: I think I spotted a possible error in this commit at line 305 in key.cpp, where I used (probably wrongly) the original Peercoin patch. I'll look into it.

Edit: It still segfaults after correcting the values to those used in Cryptonite. :-( However, I commited the change to my fork because I think it was wrong anyway.
legendary
Activity: 2716
Merit: 1094
Black Belt Developer
Thanks for your contribution!
Yes please, make a fork so I can have a look at the changes and help fixing the remaining issue.

Here it is: https://github.com/d5000/Cryptonite

The patches I used (in part, I had to modify them):

From Bitcoin:

Move base58.h implementation code to base58.cpp
https://github.com/bitcoin/bitcoin/commit/010e66188e24b80f9c5d2e9ab3645792cab07f20

Replace DecodeBase58/EncodeBase58 with direct implementation.
https://github.com/bitcoin/bitcoin/commit/b58be132c994b6f9b25cb4a702186ef96104953f#diff-25d902c24283ab8cfbac54dfa101ad31

Move {Get,Set}Compact from bignum to uint256
https://github.com/bitcoin/bitcoin/commit/df9eb5e14fa8072bc8a82b59e712c2ba36f13f4c#diff-a14526df59967a9cc4103d78f3f40dd8

Reduce bignum.h now it is only needed for scriptnum_tests
https://github.com/bitcoin/bitcoin/commit/ccc84e0963dab2ee6276ccc9766c2c19b0ebb3e3#diff-a14526df59967a9cc4103d78f3f40dd8

Remove CBigNum dependency for scripts
https://github.com/bitcoin/bitcoin/commit/84efe0ec223c24fcdd3e3f971170783ce481bcff#diff-25d902c24283ab8cfbac54dfa101ad31

From Peercoin (partly for key.h/key.cpp/crypter.cpp):

Fix OpenSSL v1.1 compatibility
https://github.com/hrobeers/peercoin/commit/5b09830e5de0f5105534e69dbf4acffb3255869b

-----

I had originally deleted bignum.h and the bignum tests, but I included them for the case they're needed - I think not.

(To the users: Don't use this fork - it does not work properly!)

Thanks a lot!

Sorry it took so much but I finally was able to have a look at your work. I thought less changes were needed :-/
In general it looks good; I will clone and compile it ASAP to see if I can find were the problem lies.
A little note: bignum.cpp is added to a headers directive in Makefile.am, there is probably a more appropriate place to put it.
legendary
Activity: 2716
Merit: 1094
Black Belt Developer
Wallet on AEX "Temporarily closed", why and for how long?

As @liuwei37645 linked the AEX announcement, maybe the "temporary closed" XCN wallet is related to this.
Here is what they say about the XCN and other six projects:

Maybe is time to search and try to get on another exchange..
stocks.exchange it seems to get some momentum and I think is free to get listed there, but I'm not sure.

Aex support said they would open the xcn wallet regardless.
I agree about stocks.exchange, we should try to be listed there while it's free/cheap since that exchange is growing. Any volunteer? :-)
hero member
Activity: 756
Merit: 579
Wallet on AEX "Temporarily closed", why and for how long?

As @liuwei37645 linked the AEX announcement, maybe the "temporary closed" XCN wallet is related to this.
Here is what they say about the XCN and other six projects: https://www.aex.com/page/news/notice/2017/1110/en_46.html

Maybe is time to search and try to get on another exchange..
stocks.exchange it seems to get some momentum and I think is free to get listed there, but I'm not sure.
newbie
Activity: 15
Merit: 0
Wallet on AEX "Temporarily closed", why and for how long?
legendary
Activity: 2716
Merit: 1094
Black Belt Developer
HI

XCN Specyfication:
...
...
...
Coin Maturity: instant  <-  Staking working? If yest what annual intrest?

No, there is no staking.
newbie
Activity: 56
Merit: 0
HI

XCN Specyfication:
...
...
...
Coin Maturity: instant  <-  Staking working? If yest what annual intrest?
full member
Activity: 175
Merit: 113
nice!
btw, is there anyone who knows how to open the project in eclipse?
I'd like to get my hands dirty as well but really only know eclipse - preferrably in windows. Is anyone developing in that environment? (I know you're not, pallas^^)
legendary
Activity: 3906
Merit: 6249
Decentralization Maximalist
Thanks for your contribution!
Yes please, make a fork so I can have a look at the changes and help fixing the remaining issue.

Here it is: https://github.com/d5000/Cryptonite

The patches I used (in part, I had to modify them):

From Bitcoin:

Move base58.h implementation code to base58.cpp
https://github.com/bitcoin/bitcoin/commit/010e66188e24b80f9c5d2e9ab3645792cab07f20

Replace DecodeBase58/EncodeBase58 with direct implementation.
https://github.com/bitcoin/bitcoin/commit/b58be132c994b6f9b25cb4a702186ef96104953f#diff-25d902c24283ab8cfbac54dfa101ad31

Move {Get,Set}Compact from bignum to uint256
https://github.com/bitcoin/bitcoin/commit/df9eb5e14fa8072bc8a82b59e712c2ba36f13f4c#diff-a14526df59967a9cc4103d78f3f40dd8

Reduce bignum.h now it is only needed for scriptnum_tests
https://github.com/bitcoin/bitcoin/commit/ccc84e0963dab2ee6276ccc9766c2c19b0ebb3e3#diff-a14526df59967a9cc4103d78f3f40dd8

Remove CBigNum dependency for scripts
https://github.com/bitcoin/bitcoin/commit/84efe0ec223c24fcdd3e3f971170783ce481bcff#diff-25d902c24283ab8cfbac54dfa101ad31

From Peercoin (partly for key.h/key.cpp/crypter.cpp):

Fix OpenSSL v1.1 compatibility
https://github.com/hrobeers/peercoin/commit/5b09830e5de0f5105534e69dbf4acffb3255869b

-----

I had originally deleted bignum.h and the bignum tests, but I included them for the case they're needed - I think not.

(To the users: Don't use this fork - it does not work properly!)
legendary
Activity: 2716
Merit: 1094
Black Belt Developer
I downloaded the mining program, but it doesn't do anything. There's no instructions and it just flashes up a command window that disappears just as quick!

I also tried messaging the "Contact Us" on the website, but seems it either doesn't work, or I'm just being ignored Sad

I own a lot of XCN, I'd like to mine too, but everything feels like pulling teeth at the moment!

Please use this thread or slack for support.
If you make a bat file with "pause" command at the end, you can see the error message which is printed before the window closes.

The error is saying it expects a URL....

Is there not normally a batch file supplied with a miner with all the required parameters?
There's nothing in the zip file I downloaded....

Standard ccminer parameters:

-a m7
-o [stratum url]
-u [username]
-p [password]

Sorry, I've worked in IT for 30 years, but I've never mined coins before. That means nothing to me....

make a bat file containing:

ccminer -a m7 -o [stratum url you get from the pool] -u [your username on that pool] -p [your password]

pause
newbie
Activity: 23
Merit: 0
I downloaded the mining program, but it doesn't do anything. There's no instructions and it just flashes up a command window that disappears just as quick!

I also tried messaging the "Contact Us" on the website, but seems it either doesn't work, or I'm just being ignored Sad

I own a lot of XCN, I'd like to mine too, but everything feels like pulling teeth at the moment!

Please use this thread or slack for support.
If you make a bat file with "pause" command at the end, you can see the error message which is printed before the window closes.

The error is saying it expects a URL....

Is there not normally a batch file supplied with a miner with all the required parameters?
There's nothing in the zip file I downloaded....

Standard ccminer parameters:

-a m7
-o [stratum url]
-u [username]
-p [password]

Sorry, I've worked in IT for 30 years, but I've never mined coins before. That means nothing to me....
legendary
Activity: 2716
Merit: 1094
Black Belt Developer
I downloaded the mining program, but it doesn't do anything. There's no instructions and it just flashes up a command window that disappears just as quick!

I also tried messaging the "Contact Us" on the website, but seems it either doesn't work, or I'm just being ignored Sad

I own a lot of XCN, I'd like to mine too, but everything feels like pulling teeth at the moment!

Please use this thread or slack for support.
If you make a bat file with "pause" command at the end, you can see the error message which is printed before the window closes.

The error is saying it expects a URL....

Is there not normally a batch file supplied with a miner with all the required parameters?
There's nothing in the zip file I downloaded....

Standard ccminer parameters:

-a m7
-o [stratum url]
-u [username]
-p [password]
newbie
Activity: 23
Merit: 0
I downloaded the mining program, but it doesn't do anything. There's no instructions and it just flashes up a command window that disappears just as quick!

I also tried messaging the "Contact Us" on the website, but seems it either doesn't work, or I'm just being ignored Sad

I own a lot of XCN, I'd like to mine too, but everything feels like pulling teeth at the moment!

Please use this thread or slack for support.
If you make a bat file with "pause" command at the end, you can see the error message which is printed before the window closes.

The error is saying it expects a URL....

Is there not normally a batch file supplied with a miner with all the required parameters?
There's nothing in the zip file I downloaded....
legendary
Activity: 2716
Merit: 1094
Black Belt Developer
To the dev(s): I have tried to fix the OpenSSL problem myself applying patches from Bitcoin and Peercoin (unfortunately there were a lot more files that needed to be changed) that eliminate the need for the "CBigNum" class defined in bignum.h.

I managed to compile the client now, but I unfortunately run into a Segmentation Fault after the first block. So I very likely did something wrong. I have only a basic understanding of C++ (or programming in general, I know a little bit of Python but only for basic scripting with a minuscule bit of OOP), so that wasn't totally unexpected Wink

However, if you want, I can upload the changed files to Github into an own fork.

Anyway, I installed the client on another Linux distro where I still had a 1.0.2 OpenSSL version - and I must say I am positively impressed. The blockchain (proof chain/headers) synced in less than an hour, that's awesome for a three-year-old coin, even if it isn't still used much. Good work!

Thanks for your contribution!
Yes please, make a fork so I can have a look at the changes and help fixing the remaining issue.
Three-year-old: well, now it's almost four :-)
legendary
Activity: 3906
Merit: 6249
Decentralization Maximalist
To the dev(s): I have tried to fix the OpenSSL problem myself applying patches from Bitcoin and Peercoin (unfortunately there were a lot more files that needed to be changed) that eliminate the need for the "CBigNum" class defined in bignum.h.

I managed to compile the client now, but I unfortunately run into a Segmentation Fault after the first block. So I very likely did something wrong. I have only a basic understanding of C++ (or programming in general, I know a little bit of Python but only for basic scripting with a minuscule bit of OOP), so that wasn't totally unexpected Wink

However, if you want, I can upload the changed files to Github into an own fork.

Anyway, I installed the client on another Linux distro where I still had a 1.0.2 OpenSSL version - and I must say I am positively impressed. The blockchain (proof chain/headers) synced in less than an hour, that's awesome for a three-year-old coin, even if it isn't still used much. Good work!
legendary
Activity: 2716
Merit: 1094
Black Belt Developer
I downloaded the mining program, but it doesn't do anything. There's no instructions and it just flashes up a command window that disappears just as quick!

I also tried messaging the "Contact Us" on the website, but seems it either doesn't work, or I'm just being ignored Sad

I own a lot of XCN, I'd like to mine too, but everything feels like pulling teeth at the moment!

Please use this thread or slack for support.
If you make a bat file with "pause" command at the end, you can see the error message which is printed before the window closes.
full member
Activity: 175
Merit: 113
Hey, depending on the miner you need different parameters to start it.
I usually build a custom .bat to start them. Have a read around which parameters you need.
newbie
Activity: 23
Merit: 0
I downloaded the mining program, but it doesn't do anything. There's no instructions and it just flashes up a command window that disappears just as quick!

I also tried messaging the "Contact Us" on the website, but seems it either doesn't work, or I'm just being ignored Sad

I own a lot of XCN, I'd like to mine too, but everything feels like pulling teeth at the moment!
full member
Activity: 261
Merit: 101
Pages:
Jump to: