Config

object Config

Config is a singleton object that holds configuration values for the library.

Author

Marcus Cvjeticanin

Since

0.1.0

Properties

Link copied to clipboard
const val ADDRESS_PREFIX: Long = 2239254

The address prefix Kryptokrona uses - you can find this in CryptoNoteConfig.h.

Link copied to clipboard

The amount of memory to use storing downloaded blocks - 50MB

Link copied to clipboard
const val BLOCK_TARGET_TIME: Long = 90

The block time of Kryptokrona, in seconds.

Link copied to clipboard

The amount of blocks to take from the daemon per request. Cannot take more than 100.

Link copied to clipboard
const val BLOCKS_PER_TICK: Long = 1

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.

Link copied to clipboard
const val DECIMAL_PLACES: Int = 5

The amount of decimal places.

Link copied to clipboard
const val FEE_PER_BYTE_CHUNK_SIZE: Int = 256

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.

Link copied to clipboard

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.

Link copied to clipboard

How often to check on locked transactions.

Link copied to clipboard

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.

Link copied to clipboard

The amount of seconds to permit not having fetched a new local height from the daemon before emitting 'deadnode'.

Link copied to clipboard

The amount of seconds to permit not having fetched a new network height from the daemon before emitting 'deadnode'.

Link copied to clipboard
const val MINIMUM_FEE: Long = 10

The minimum fee allowed for transactions, in ATOMIC units.

Link copied to clipboard

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

Link copied to clipboard

How often to get the node info.

Link copied to clipboard

Request timeout for daemon operations in milliseconds.

Link copied to clipboard

Most people haven't mined any blocks, so lets not waste time scanning them.

Link copied to clipboard

The length of a standard address for Kryptokrona.

Link copied to clipboard

How often to process blocks, in millseconds.

Link copied to clipboard
const val TICKER: String

Kryptokrona 'ticker'