Knifey-Spooney fork

Technical discussions related to CryptoNote repository and the forking process

Knifey-Spooney fork

Postby dollarydoos » Mon Nov 23, 2015 10:50 am

You call that a fork? This is a fork.

The forked code sits here: https://github.com/Dollarydoos/cryptonote/

I'm following the Cryptonote Foundation's instructions for forking cryptonote on Github.

Here are some issues I have run into:


1. I entered port 1. Is that okay? It seems to have a service assigned to it already. Alternatively, I am considering choosing an unassigned port like [6](http://keir.net/portlist.html). Surely these have been taken by other services by now?

2. I do not know what to do for the 'on windows' subheading or 'how to build'.

3. Is it okay to assign the 'daemon' to connect via same port (port 1)?

//TODO This port will be used by the daemon to establish connections with p2p network const int P2P_DEFAULT_PORT = 1;

//TODO This port will be used by the daemon to interact with simlewallet const int RPC_DEFAULT_PORT = 1;


4. Where it says to
'Change all the bytes to random values for your network:'
I changed the values to repeats of 0x92. Good to go?

5. Not sure how to approach step 3 - seed notes. I feel that it may be related to step 3 of preparation, my other missing step:
'Buy one or two Ubuntu-based dedicated servers (at least 2Gb of RAM) for seed nodes.'
which I'm not certain how to approach. Could these be rented in cloud?

6. Interested to learn more about transaction flooding and how it relates to our coins. Can someone direct me to a relevant text or explain the passage:
Zero minimum fee can lead to transaction flooding. Transactions cheaper than the minimum transaction fee wouldn't be accepted by daemons. 100000 value for MINIMUM_FEE is usually enough.


7. I tried to implement a 'DD' prefix for wallets by entering '0x44 0x44' in the appropriate space based on the ASCII table [here](http://www.alanwood.net/demos/ansi.html)

8. Regarding the 'genesis block' - can someone ellaborate on how to start the daemon to print out the genesis block 'dollarydoos--print-genesis-tx', which I imagine corresponds with the dollarydoo version fo the example code. Though I'm not sure what line it should go with. Then by consequence, don't know how to proceed to step 3 and 4...

9. What is Nix!

10. Any pointers on this step?

To build, change to a directory where this file is located, and run make. The resulting executables can be found in build/release/src.


11.

[Boolberry](http://boolberry.com/theory.html) displays Cryptonote's stuff, like the nice diagrams, to explain their stuff. May I?

SPECS:

I chose default or 'example' cryptonote values where possible. For instance:

* const uint64_t MINIMUM_FEE = 100000
* Penalty free block size (20000)
* difficulty target: 120 sec


Thanks for putting together such great resources for the community
Last edited by dollarydoos on Tue Dec 01, 2015 6:50 am, edited 4 times in total.
dollarydoos
 
Posts: 4
Joined: Mon Nov 23, 2015 10:06 am

Re: Knifey-Spooney fork

Postby Clever Crypto » Tue Nov 24, 2015 2:33 pm

1.Choosing ports 1 or 6 is not a good practice. You should use one of Registered ports (https://en.wikipedia.org/wiki/List_of_T ... rt_numbers), choose from diapason 1024-49151.
2. I don't get your question. Please elaborate.
3. No, ports must be different.
4. Yes, that's fine. The only issue is that this value shouldn't match to the other's coin value, but as far as i know, repeated 0x92 hasn't been used before, so you're good.
5. You sure can rent seed node at some cloud service. You'll get the address and you order it to be SEED_NODES.
6. You actually can read about it here: https://en.bitcoin.it/wiki/Flood_attack. This particular one is bitcoin related article, but it applies to other cryptos as well.
7. You should visit https://cryptonotestarter.org/tools.html in order to create prefix, and keep in mind that dd is being used by Digital Note.
8. I think there was some recent topic about this problem. https://forum.cryptonote.org/viewtopic.php?f=5&t=815
9. It's actually *nix - http://en.wikipedia.org/wiki/*nix. For example: Ubuntu, Fedora, CentOS.
10. You have to find folder, which contains LICENSE and Makefile, and then run "make" command.
11. Yes, these graphics are up-do-date, so you definitely may. http://boolberry.com/theory.html
Clever Crypto
 
Posts: 33
Joined: Tue May 26, 2015 12:25 pm

Re: Knifey-Spooney fork

Postby dollarydoos » Mon Nov 30, 2015 6:36 am

Regarding topic 8:

'2. Start the daemon to print out the genesis block'

Is this right? (please see attached)

Thanks a lot.

By the way, in the reference code, why does the 'external' folder refer to a Bytecoin RPC Wallet?
Attachments
12.png
12.png (103.42 KiB) Viewed 9049 times
dollarydoos
 
Posts: 4
Joined: Mon Nov 23, 2015 10:06 am

Re: Knifey-Spooney fork

Postby *tech_star* » Mon Nov 30, 2015 12:56 pm

Errm, your screenshot code is not right. It should be like this:

const char GENESIS_COINBASE_TX_HEX[] = "013c01ff0001ffffffffffffff01029b2e4c0281c0b02e7c53291a94d1d0cbff8883f8024f5142ee494ffbbd08807121018dde8364da9a693064bafa339e6aab21df3147e986a78050c340a336e1fb1091";

(The example was taken from here - CryptoNoteCoin - https://github.com/AlbertWerner/crypton ... e_config.h)

"External Bytecoin RPC Wallet" string means that the last commit in which external directory had been changed was this one - https://github.com/cryptonotefoundation ... 04edaf0f18 and it has "Bytecoin RPC Wallet" comment :mrgreen:
*tech_star*
 
Posts: 35
Joined: Fri Mar 28, 2014 9:51 am

Re: Knifey-Spooney fork

Postby dollarydoos » Tue Dec 01, 2015 6:45 am

Okay, so I should add:
Code: Select all
013c01ff0001ffffffffffffff01029b2e4c0281c0b02e7c53291a94d1d0cbff8883f8024f5142ee494ffbbd08807121018d


before the ';' on that line?

Pardon my hesitation.
dollarydoos
 
Posts: 4
Joined: Mon Nov 23, 2015 10:06 am

Re: Knifey-Spooney fork

Postby nightrid3r » Tue Dec 01, 2015 7:06 am

no you shouldn't

run yourcoind --print-genesis-tx

and add the result to the source line.

genesis-tx depends on other parameters in your code.
nightrid3r
 
Posts: 21
Joined: Sat Jul 19, 2014 12:29 pm

Re: Knifey-Spooney fork

Postby dollarydoos » Sun Dec 06, 2015 5:33 am

Now I'm trying to 'build' Dollarydoo:

On *nix (Linux)

Dependencies: GCC 4.7.3 or later, CMake 2.8.6 or later, and Boost 1.55.

You may download them from:

http://gcc.gnu.org/
http://www.cmake.org/
http://www.boost.org/
Alternatively, it may be possible to install them using a package manager.
To build, change to a directory where this file is located, and run make. The resulting executables can be found in build/release/src.


I checked out the forum thread about setting up a server. It looks like the Amazon web-route is a little different.

I launched a free Linux Virtual Machine following these steps from step 1 to step 2:

https://aws.amazon.com/getting-started/ ... l-machine/ I am unsure about proceeding through step 3.

The GitHub instructions break down to:

1. change to a directory where this file is located, and run make.
2. The resulting executables can be found in build/release/src.

I understand what step 2 means. But step 1 means nothing to me. The questions I ask myself are: What directory is being referred to? My GitHub folders? Which file?

My intuition is that these steps may make sense after I connect to my Linux instance based on the Amazon Web Services instructions. I haven't yet been able to connect with Putty but I reckon I'll figure it out soon. My intuition was that as a web service, I wouldn't need a physical computer running for the web service. Perhaps it's just needed for setting up.
dollarydoos
 
Posts: 4
Joined: Mon Nov 23, 2015 10:06 am

Re: Knifey-Spooney fork

Postby *tech_star* » Wed Dec 09, 2015 3:25 pm

This file - means README.md, so you have to download a copy of binaries on the server and go to the directory where the README.md file is located.
All these steps must be completed while being connected to the server via SSH. You could use Putty, for example.
*tech_star*
 
Posts: 35
Joined: Fri Mar 28, 2014 9:51 am


Return to Reference Code & Forking

Who is online

Users browsing this forum: No registered users and 1 guest

cron