elective-stereophonic
elective-stereophonic
Testing info  
Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest Stable Nxt Client: Nxt 1.12.2

Author Topic: Testing info  (Read 216 times)

NexMesh

  • Newbie
  • *
  • Karma: +0/-0
  • Offline Offline
  • Posts: 6
    • View Profile
Testing info
« on: August 27, 2020, 01:59:47 pm »

Hi I am experimenting with the NXT creation kit, mainly for my own learning purposes and understand cryptos better, i have created a blockchain using the kit and its running fine, but want to delve deeper, and am looking for guidance and info to test things and see were it will take me , my first area i want to look at is blocksizes and timing, i would like to increase the blocksizes and also the size of files i can add to it , like with the cloud storage and also attaching files to messages.
With this would i require to increase timing of blocks from 60 seconds to a higher time?
Also in the constans.java file the blocktime would that be the only area in the code i would change this specifically this line
public static final int BLOCK_TIME = 60;

Also on the blocksize im trying to figure out were in the code it states this ?
public static final int MAX_NUMBER_OF_TRANSACTIONS = Nxt.getIntProperty("nxt.maxNumberOfTransactions", 255);
    public static final int MIN_TRANSACTION_SIZE = 176;
    public static final int MAX_PAYLOAD_LENGTH = MAX_NUMBER_OF_TRANSACTIONS * MIN_TRANSACTION_SIZE;          <<This is the sum  of previous 2 lines
    public static final long MAX_BALANCE_NXT = 1000000000;
    public static final long ONE_NXT = 100000000;
    public static final long MAX_BALANCE_NQT = MAX_BALANCE_NXT * ONE_NXT;

public static final int MAX_PAYLOAD_LENGTH = 255 * 176  = 44880 (this calculates the blocksize??) so if i was to change the size of the MIN transaction size for example to 352 * max number of transactions this would double the size of the blocksize?? I know i am look at it symplistically, but this is a learning process for me and is there other parts in the code that need to be modified to perform this??

Thanks in advance for time spent helping me learn...
Logged

sergi

  • Newbie
  • *
  • Karma: +1/-0
  • Offline Offline
  • Posts: 6
    • View Profile
    • Jelurida
Re: Testing info
« Reply #1 on: August 27, 2020, 03:11:04 pm »

It is great that you're reading the source code to learn how it works. It's surely the best and ultimate path to understand how the software works.

I suggest you keep digging into the source code to try to answer your own questions. You will surely learn much more in the process.
Logged

NexMesh

  • Newbie
  • *
  • Karma: +0/-0
  • Offline Offline
  • Posts: 6
    • View Profile
Re: Testing info
« Reply #2 on: August 28, 2020, 12:46:03 am »

Hi and thanks for the encouragement , yes i agree , but some thing are still a mystery to me , hence asking for guidance and were to find certain things
Logged
 

elective-stereophonic
elective-stereophonic
assembly
assembly