Config
Config is a singleton object that holds configuration values for the library.
Author
Marcus Cvjeticanin
Since
0.1.0
Properties
The address prefix Kryptokrona uses - you can find this in CryptoNoteConfig.h.
The amount of memory to use storing downloaded blocks - 50MB
The block time of Kryptokrona, in seconds.
The amount of blocks to take from the daemon per request. Cannot take more than 100.
The amount of blocks to process per 'tick' of the mainloop. Note: too high a value will cause the event loop to be blocked, and your interaction to be laggy.
The amount of decimal places.
Fee per byte is rounded up in chunks. This helps makes estimates more accurate. It's suggested to make this a power of two, to relate to the underlying storage cost / page sizes for storing a transaction.
The length of an integrated address for Kryptokrona - It's the same as a normal address, but there is a paymentID included in there - since payment ID's are 64 chars, and base58 encoding is done by encoding chunks of 8 chars at once into blocks of 11 chars, we can calculate this automatically.
How often to check on locked transactions.
The amount of seconds to permit not having fetched a block from the daemon before emitting 'deadnode'. Note that this just means contacting the daemon for data - if you are synced and it returns TopBlock - the event will not be emitted.
The amount of seconds to permit not having fetched a new local height from the daemon before emitting 'deadnode'.
The amount of seconds to permit not having fetched a new network height from the daemon before emitting 'deadnode'.
The minimum fee allowed for transactions, in ATOMIC units.
Fee to charge per byte of transaction. Will be applied in chunks, see above. This value comes out to 1.953125. We use this value instead of something like 2 because it makes for pretty resulting fees
How often to get the node info.
Request timeout for daemon operations in milliseconds.
Most people haven't mined any blocks, so lets not waste time scanning them.
The length of a standard address for Kryptokrona.
How often to process blocks, in millseconds.