Constants

object Constants

Constants holds all the constants used in the SDK.

Author

Marcus Cvjeticanin

Since

0.1.0

Properties

Link copied to clipboard

Save a block hash checkpoint every BLOCK_HASH_CHECKPOINTS_INTERVAL blocks

Link copied to clipboard

Reserved space for miner transaction in block

Link copied to clipboard

Required ratio of inputs to outputs in fusion transactions

Link copied to clipboard

Minimum number of inputs a fusion transaction must have

Link copied to clipboard

When we get the global indexes, we pass in a range of blocks, to obscure which transactions we are interested in - the ones that belong to us. To do this, we get the global indexes for all transactions in a range. For example, if we want the global indexes for a transaction in block 17, we get all the indexes from block 10 to block 20.

Link copied to clipboard

How large should the lastKnownBlockHashes container be

Link copied to clipboard
const val MAX_BLOCK_NUMBER: Long = 500000000

Used to determine whether an unlock time is a height, or a timestamp

Link copied to clipboard

Part of the how fast blocks can grow

Link copied to clipboard

Part of the how fast blocks can grow formula

Link copied to clipboard
const val MAX_BLOCK_SIZE_INITIAL: Int = 100000

Initial block size

Link copied to clipboard
const val MAX_FUSION_TX_SIZE: Int = 30000

Max size in bytes a fusion transaction can be

Link copied to clipboard
const val MAX_OUTPUT_SIZE_CLIENT: Long = 100000000000

Max amount to create a single output of

Link copied to clipboard
const val PBKDF2_ITERATIONS: Int = 500000

The number of iterations of PBKDF2 to perform on the wallet password.

Link copied to clipboard

What version of the file format are we on (to make it easier to upgrade the wallet format in the future)