github.com/dmmcquay/sia@v1.3.1-0.20180712220038-9f8d535311b9/types/constants.go (about) 1 package types 2 3 // constants.go contains the Sia constants. Depending on which build tags are 4 // used, the constants will be initialized to different values. 5 // 6 // CONTRIBUTE: We don't have way to check that the non-test constants are all 7 // sane, plus we have no coverage for them. 8 9 import ( 10 "math" 11 "math/big" 12 "time" 13 14 "github.com/NebulousLabs/Sia/build" 15 ) 16 17 var ( 18 // BlockFrequency is the desired number of seconds that 19 // should elapse, on average, between successive Blocks. 20 BlockFrequency BlockHeight 21 // BlockSizeLimit is the maximum size of a binary-encoded Block 22 // that is permitted by the consensus rules. 23 BlockSizeLimit = uint64(2e6) 24 25 // EndOfTime is value to be used when a date in the future is needed for 26 // validation 27 EndOfTime = time.Unix(0, math.MaxInt64) 28 29 // ExtremeFutureThreshold is a temporal limit beyond which Blocks are 30 // discarded by the consensus rules. When incoming Blocks are processed, their 31 // Timestamp is allowed to exceed the processor's current time by a small amount. 32 // But if the Timestamp is further into the future than ExtremeFutureThreshold, 33 // the Block is immediately discarded. 34 ExtremeFutureThreshold Timestamp 35 // FutureThreshold is a temporal limit beyond which Blocks are 36 // discarded by the consensus rules. When incoming Blocks are processed, their 37 // Timestamp is allowed to exceed the processor's current time by no more than 38 // FutureThreshold. If the excess duration is larger than FutureThreshold, but 39 // smaller than ExtremeFutureThreshold, the Block may be held in memory until 40 // the Block's Timestamp exceeds the current time by less than FutureThreshold. 41 FutureThreshold Timestamp 42 // GenesisBlock is the first block of the block chain 43 GenesisBlock Block 44 45 // GenesisID is used in many places. Calculating it once saves lots of 46 // redundant computation. 47 GenesisID BlockID 48 49 // GenesisSiafundAllocation is the set of SiafundOutputs created in the Genesis 50 // block. 51 GenesisSiafundAllocation []SiafundOutput 52 // GenesisTimestamp is the timestamp when genesis block was mined 53 GenesisTimestamp Timestamp 54 // InitialCoinbase is the coinbase reward of the Genesis block. 55 InitialCoinbase = uint64(300e3) 56 // MaturityDelay specifies the number of blocks that a maturity-required output 57 // is required to be on hold before it can be spent on the blockchain. 58 // Outputs are maturity-required if they are highly likely to be altered or 59 // invalidated in the event of a small reorg. One example is the block reward, 60 // as a small reorg may invalidate the block reward. Another example is a siafund 61 // payout, as a tiny reorg may change the value of the payout, and thus invalidate 62 // any transactions spending the payout. File contract payouts also are subject to 63 // a maturity delay. 64 MaturityDelay BlockHeight 65 // MaxTargetAdjustmentDown restrict how much the block difficulty is allowed to 66 // change in a single step, which is important to limit the effect of difficulty 67 // raising and lowering attacks. 68 MaxTargetAdjustmentDown *big.Rat 69 // MaxTargetAdjustmentUp restrict how much the block difficulty is allowed to 70 // change in a single step, which is important to limit the effect of difficulty 71 // raising and lowering attacks. 72 MaxTargetAdjustmentUp *big.Rat 73 // MedianTimestampWindow tells us how many blocks to look back when calculating 74 // the median timestamp over the previous n blocks. The timestamp of a block is 75 // not allowed to be less than or equal to the median timestamp of the previous n 76 // blocks, where for Sia this number is typically 11. 77 MedianTimestampWindow = uint64(11) 78 // MinimumCoinbase is the minimum coinbase reward for a block. 79 // The coinbase decreases in each block after the Genesis block, 80 // but it will not decrease past MinimumCoinbase. 81 MinimumCoinbase uint64 82 83 // Oak hardfork constants. Oak is the name of the difficulty algorithm for 84 // Sia following a hardfork at block 135e3. 85 86 // OakDecayDenom is the denominator for how much the total timestamp is decayed 87 // each step. 88 OakDecayDenom int64 89 // OakDecayNum is the numerator for how much the total timestamp is decayed each 90 // step. 91 OakDecayNum int64 92 // OakHardforkBlock is the height at which the hardfork to switch to the oak 93 // difficulty adjustment algorithm is triggered. 94 OakHardforkBlock BlockHeight 95 // OakHardforkFixBlock is the height at which the hardfork to switch from the broken 96 // oak difficulty adjustment algorithm to the fixed oak difficulty adjustment 97 // algorithm is triggered. 98 OakHardforkFixBlock BlockHeight 99 // OakHardforkTxnSizeLimit is the maximum size allowed for a transaction, a change 100 // which I believe was implemented simultaneously with the oak hardfork. 101 OakHardforkTxnSizeLimit = uint64(64e3) // 64 KB 102 // OakMaxBlockShift is the maximum number of seconds that the oak algorithm will shift 103 // the difficulty. 104 OakMaxBlockShift int64 105 // OakMaxDrop is the drop is the maximum amount that the difficulty will drop each block. 106 OakMaxDrop *big.Rat 107 // OakMaxRise is the maximum amount that the difficulty will rise each block. 108 OakMaxRise *big.Rat 109 110 // RootDepth is the cumulative target of all blocks. The root depth is essentially 111 // the maximum possible target, there have been no blocks yet, so there is no 112 // cumulated difficulty yet. 113 RootDepth = Target{255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255} 114 // RootTarget is the target for the genesis block - basically how much work needs 115 // to be done in order to mine the first block. The difficulty adjustment algorithm 116 // takes over from there. 117 RootTarget Target 118 // SiacoinPrecision is the number of base units in a siacoin. The Sia network has a very 119 // large number of base units. We call 10^24 of these a siacoin. 120 // 121 // The base unit for Bitcoin is called a satoshi. We call 10^8 satoshis a bitcoin, 122 // even though the code itself only ever works with satoshis. 123 SiacoinPrecision = NewCurrency(new(big.Int).Exp(big.NewInt(10), big.NewInt(24), nil)) 124 // SiafundCount is the total number of Siafunds in existence. 125 SiafundCount = NewCurrency64(10000) 126 // SiafundPortion is the percentage of siacoins that is taxed from FileContracts. 127 SiafundPortion = big.NewRat(39, 1000) 128 // TargetWindow is the number of blocks to look backwards when determining how much 129 // time has passed vs. how many blocks have been created. It's only used in the old, 130 // broken difficulty adjustment algorithm. 131 TargetWindow BlockHeight 132 ) 133 134 var ( 135 // TaxHardforkHeight is the height at which the tax hardfork occurred. 136 TaxHardforkHeight = build.Select(build.Var{ 137 Dev: BlockHeight(10), 138 Standard: BlockHeight(21e3), 139 Testing: BlockHeight(10), 140 }).(BlockHeight) 141 ) 142 143 // init checks which build constant is in place and initializes the variables 144 // accordingly. 145 func init() { 146 if build.Release == "dev" { 147 // 'dev' settings are for small developer testnets, usually on the same 148 // computer. Settings are slow enough that a small team of developers 149 // can coordinate their actions over a the developer testnets, but fast 150 // enough that there isn't much time wasted on waiting for things to 151 // happen. 152 BlockFrequency = 12 // 12 seconds: slow enough for developers to see ~each block, fast enough that blocks don't waste time. 153 MaturityDelay = 10 // 60 seconds before a delayed output matures. 154 GenesisTimestamp = Timestamp(1424139000) // Change as necessary. 155 RootTarget = Target{0, 0, 2} // Standard developer CPUs will be able to mine blocks with the race library activated. 156 157 TargetWindow = 20 // Difficulty is adjusted based on prior 20 blocks. 158 MaxTargetAdjustmentUp = big.NewRat(120, 100) // Difficulty adjusts quickly. 159 MaxTargetAdjustmentDown = big.NewRat(100, 120) // Difficulty adjusts quickly. 160 FutureThreshold = 2 * 60 // 2 minutes. 161 ExtremeFutureThreshold = 4 * 60 // 4 minutes. 162 163 MinimumCoinbase = 30e3 164 165 OakHardforkBlock = 100 166 OakHardforkFixBlock = 105 167 OakDecayNum = 985 168 OakDecayDenom = 1000 169 OakMaxBlockShift = 3 170 OakMaxRise = big.NewRat(102, 100) 171 OakMaxDrop = big.NewRat(100, 102) 172 173 GenesisSiafundAllocation = []SiafundOutput{ 174 { 175 Value: NewCurrency64(2000), 176 UnlockHash: UnlockHash{214, 166, 197, 164, 29, 201, 53, 236, 106, 239, 10, 158, 127, 131, 20, 138, 63, 221, 230, 16, 98, 247, 32, 77, 210, 68, 116, 12, 241, 89, 27, 223}, 177 }, 178 { 179 Value: NewCurrency64(7000), 180 UnlockHash: UnlockHash{209, 246, 228, 60, 248, 78, 242, 110, 9, 8, 227, 248, 225, 216, 163, 52, 142, 93, 47, 176, 103, 41, 137, 80, 212, 8, 132, 58, 241, 189, 2, 17}, 181 }, 182 { 183 Value: NewCurrency64(1000), 184 UnlockHash: UnlockConditions{}.UnlockHash(), 185 }, 186 } 187 } else if build.Release == "testing" { 188 // 'testing' settings are for automatic testing, and create much faster 189 // environments than a human can interact with. 190 BlockFrequency = 1 // As fast as possible 191 MaturityDelay = 3 192 GenesisTimestamp = CurrentTimestamp() - 1e6 193 RootTarget = Target{128} // Takes an expected 2 hashes; very fast for testing but still probes 'bad hash' code. 194 195 // A restrictive difficulty clamp prevents the difficulty from climbing 196 // during testing, as the resolution on the difficulty adjustment is 197 // only 1 second and testing mining should be happening substantially 198 // faster than that. 199 TargetWindow = 200 200 MaxTargetAdjustmentUp = big.NewRat(10001, 10000) 201 MaxTargetAdjustmentDown = big.NewRat(9999, 10000) 202 FutureThreshold = 3 // 3 seconds 203 ExtremeFutureThreshold = 6 // 6 seconds 204 205 MinimumCoinbase = 299990 // Minimum coinbase is hit after 10 blocks to make testing minimum-coinbase code easier. 206 207 // Do not let the difficulty change rapidly - blocks will be getting 208 // mined far faster than the difficulty can adjust to. 209 OakHardforkBlock = 20 210 OakHardforkFixBlock = 23 211 OakDecayNum = 9999 212 OakDecayDenom = 10e3 213 OakMaxBlockShift = 3 214 OakMaxRise = big.NewRat(10001, 10e3) 215 OakMaxDrop = big.NewRat(10e3, 10001) 216 217 GenesisSiafundAllocation = []SiafundOutput{ 218 { 219 Value: NewCurrency64(2000), 220 UnlockHash: UnlockHash{214, 166, 197, 164, 29, 201, 53, 236, 106, 239, 10, 158, 127, 131, 20, 138, 63, 221, 230, 16, 98, 247, 32, 77, 210, 68, 116, 12, 241, 89, 27, 223}, 221 }, 222 { 223 Value: NewCurrency64(7000), 224 UnlockHash: UnlockHash{209, 246, 228, 60, 248, 78, 242, 110, 9, 8, 227, 248, 225, 216, 163, 52, 142, 93, 47, 176, 103, 41, 137, 80, 212, 8, 132, 58, 241, 189, 2, 17}, 225 }, 226 { 227 Value: NewCurrency64(1000), 228 UnlockHash: UnlockConditions{}.UnlockHash(), 229 }, 230 } 231 } else if build.Release == "standard" { 232 // 'standard' settings are for the full network. They are slow enough 233 // that the network is secure in a real-world byzantine environment. 234 235 // A block time of 1 block per 10 minutes is chosen to follow Bitcoin's 236 // example. The security lost by lowering the block time is not 237 // insignificant, and the convenience gained by lowering the blocktime 238 // even down to 90 seconds is not significant. I do feel that 10 239 // minutes could even be too short, but it has worked well for Bitcoin. 240 BlockFrequency = 600 241 242 // Payouts take 1 day to mature. This is to prevent a class of double 243 // spending attacks parties unintentionally spend coins that will stop 244 // existing after a blockchain reorganization. There are multiple 245 // classes of payouts in Sia that depend on a previous block - if that 246 // block changes, then the output changes and the previously existing 247 // output ceases to exist. This delay stops both unintentional double 248 // spending and stops a small set of long-range mining attacks. 249 MaturityDelay = 144 250 251 // The genesis timestamp is set to June 6th, because that is when the 252 // 100-block developer premine started. The trailing zeroes are a 253 // bonus, and make the timestamp easier to memorize. 254 GenesisTimestamp = Timestamp(1433600000) // June 6th, 2015 @ 2:13pm UTC. 255 256 // The RootTarget was set such that the developers could reasonable 257 // premine 100 blocks in a day. It was known to the developers at launch 258 // this this was at least one and perhaps two orders of magnitude too 259 // small. 260 RootTarget = Target{0, 0, 0, 0, 32} 261 262 // When the difficulty is adjusted, it is adjusted by looking at the 263 // timestamp of the 1000th previous block. This minimizes the abilities 264 // of miners to attack the network using rogue timestamps. 265 TargetWindow = 1e3 266 267 // The difficulty adjustment is clamped to 2.5x every 500 blocks. This 268 // corresponds to 6.25x every 2 weeks, which can be compared to 269 // Bitcoin's clamp of 4x every 2 weeks. The difficulty clamp is 270 // primarily to stop difficulty raising attacks. Sia's safety margin is 271 // similar to Bitcoin's despite the looser clamp because Sia's 272 // difficulty is adjusted four times as often. This does result in 273 // greater difficulty oscillation, a tradeoff that was chosen to be 274 // acceptable due to Sia's more vulnerable position as an altcoin. 275 MaxTargetAdjustmentUp = big.NewRat(25, 10) 276 MaxTargetAdjustmentDown = big.NewRat(10, 25) 277 278 // Blocks will not be accepted if their timestamp is more than 3 hours 279 // into the future, but will be accepted as soon as they are no longer 280 // 3 hours into the future. Blocks that are greater than 5 hours into 281 // the future are rejected outright, as it is assumed that by the time 282 // 2 hours have passed, those blocks will no longer be on the longest 283 // chain. Blocks cannot be kept forever because this opens a DoS 284 // vector. 285 FutureThreshold = 3 * 60 * 60 // 3 hours. 286 ExtremeFutureThreshold = 5 * 60 * 60 // 5 hours. 287 288 // The minimum coinbase is set to 30,000. Because the coinbase 289 // decreases by 1 every time, it means that Sia's coinbase will have an 290 // increasingly potent dropoff for about 5 years, until inflation more 291 // or less permanently settles around 2%. 292 MinimumCoinbase = 30e3 293 294 // The oak difficulty adjustment hardfork is set to trigger at block 295 // 135,000, which is just under 6 months after the hardfork was first 296 // released as beta software to the network. This hopefully gives 297 // everyone plenty of time to upgrade and adopt the hardfork, while also 298 // being earlier than the most optimistic shipping dates for the miners 299 // that would otherwise be very disruptive to the network. 300 // 301 // There was a bug in the original Oak hardfork that had to be quickly 302 // followed up with another fix. The height of that fix is the 303 // OakHardforkFixBlock. 304 OakHardforkBlock = 135e3 305 OakHardforkFixBlock = 139e3 306 307 // The decay is kept at 995/1000, or a decay of about 0.5% each block. 308 // This puts the halflife of a block's relevance at about 1 day. This 309 // allows the difficulty to adjust rapidly if the hashrate is adjusting 310 // rapidly, while still keeping a relatively strong insulation against 311 // random variance. 312 OakDecayNum = 995 313 OakDecayDenom = 1e3 314 315 // The block shift determines the most that the difficulty adjustment 316 // algorithm is allowed to shift the target block time. With a block 317 // frequency of 600 seconds, the min target block time is 200 seconds, 318 // and the max target block time is 1800 seconds. 319 OakMaxBlockShift = 3 320 321 // The max rise and max drop for the difficulty is kept at 0.4% per 322 // block, which means that in 1008 blocks the difficulty can move a 323 // maximum of about 55x. This is significant, and means that dramatic 324 // hashrate changes can be responded to quickly, while still forcing an 325 // attacker to do a significant amount of work in order to execute a 326 // difficulty raising attack, and minimizing the chance that an attacker 327 // can get lucky and fake a ton of work. 328 OakMaxRise = big.NewRat(1004, 1e3) 329 OakMaxDrop = big.NewRat(1e3, 1004) 330 331 GenesisSiafundAllocation = []SiafundOutput{ 332 { 333 Value: NewCurrency64(2), 334 UnlockHash: UnlockHash{4, 57, 229, 188, 127, 20, 204, 245, 211, 167, 232, 130, 208, 64, 146, 62, 69, 98, 81, 102, 221, 7, 123, 100, 70, 107, 199, 113, 121, 26, 198, 252}, 335 }, 336 { 337 Value: NewCurrency64(6), 338 UnlockHash: UnlockHash{4, 158, 29, 42, 105, 119, 43, 5, 138, 72, 190, 190, 101, 114, 79, 243, 189, 248, 208, 151, 30, 187, 233, 148, 225, 233, 28, 159, 19, 232, 75, 244}, 339 }, 340 { 341 Value: NewCurrency64(7), 342 UnlockHash: UnlockHash{8, 7, 66, 250, 25, 74, 247, 108, 162, 79, 220, 151, 202, 228, 241, 11, 130, 138, 13, 248, 193, 167, 136, 197, 65, 63, 234, 174, 205, 216, 71, 230}, 343 }, 344 { 345 Value: NewCurrency64(8), 346 UnlockHash: UnlockHash{44, 106, 239, 51, 138, 102, 242, 19, 204, 197, 248, 178, 219, 122, 152, 251, 19, 20, 52, 32, 175, 32, 4, 156, 73, 33, 163, 165, 222, 184, 217, 218}, 347 }, 348 { 349 Value: NewCurrency64(3), 350 UnlockHash: UnlockHash{44, 163, 31, 233, 74, 103, 55, 132, 230, 159, 97, 78, 149, 147, 65, 110, 164, 211, 105, 173, 158, 29, 202, 43, 85, 217, 85, 75, 83, 37, 205, 223}, 351 }, 352 { 353 Value: NewCurrency64(1), 354 UnlockHash: UnlockHash{51, 151, 146, 84, 199, 7, 59, 89, 111, 172, 227, 200, 62, 55, 165, 253, 238, 186, 28, 145, 47, 137, 200, 15, 70, 199, 187, 125, 243, 104, 179, 240}, 355 }, 356 { 357 Value: NewCurrency64(10), 358 UnlockHash: UnlockHash{53, 118, 253, 229, 254, 229, 28, 131, 233, 156, 108, 58, 197, 152, 17, 160, 74, 252, 11, 49, 112, 240, 66, 119, 40, 98, 114, 251, 5, 86, 233, 117}, 359 }, 360 { 361 Value: NewCurrency64(50), 362 UnlockHash: UnlockHash{56, 219, 3, 50, 28, 3, 166, 95, 141, 163, 202, 35, 60, 199, 219, 10, 151, 176, 228, 97, 176, 133, 189, 33, 211, 202, 83, 197, 31, 208, 254, 193}, 363 }, 364 { 365 Value: NewCurrency64(75), 366 UnlockHash: UnlockHash{68, 190, 140, 87, 96, 232, 150, 32, 161, 177, 204, 65, 228, 223, 87, 217, 134, 90, 25, 56, 51, 45, 72, 107, 129, 12, 29, 202, 6, 7, 50, 13}, 367 }, 368 { 369 Value: NewCurrency64(10), 370 UnlockHash: UnlockHash{69, 14, 201, 200, 90, 73, 245, 45, 154, 94, 161, 19, 199, 241, 203, 56, 13, 63, 5, 220, 121, 245, 247, 52, 194, 181, 252, 76, 130, 6, 114, 36}, 371 }, 372 { 373 Value: NewCurrency64(10), 374 UnlockHash: UnlockHash{72, 128, 253, 207, 169, 48, 1, 26, 237, 205, 169, 102, 196, 224, 42, 186, 95, 151, 59, 226, 203, 136, 251, 223, 165, 38, 88, 110, 47, 213, 121, 224}, 375 }, 376 { 377 Value: NewCurrency64(50), 378 UnlockHash: UnlockHash{72, 130, 164, 227, 218, 28, 60, 15, 56, 151, 212, 242, 77, 131, 232, 131, 42, 57, 132, 173, 113, 118, 66, 183, 38, 79, 96, 178, 105, 108, 26, 247}, 379 }, 380 { 381 Value: NewCurrency64(10), 382 UnlockHash: UnlockHash{74, 210, 58, 228, 111, 69, 253, 120, 53, 195, 110, 26, 115, 76, 211, 202, 199, 159, 204, 14, 78, 92, 14, 131, 250, 22, 141, 236, 154, 44, 39, 135}, 383 }, 384 { 385 Value: NewCurrency64(15), 386 UnlockHash: UnlockHash{85, 198, 154, 41, 196, 116, 226, 114, 202, 94, 214, 147, 87, 84, 247, 164, 195, 79, 58, 123, 26, 33, 68, 65, 116, 79, 181, 241, 241, 208, 215, 184}, 387 }, 388 { 389 Value: NewCurrency64(121), 390 UnlockHash: UnlockHash{87, 239, 83, 125, 152, 14, 19, 22, 203, 136, 46, 192, 203, 87, 224, 190, 77, 236, 125, 18, 142, 223, 146, 70, 16, 23, 252, 19, 100, 69, 91, 111}, 391 }, 392 { 393 Value: NewCurrency64(222), 394 UnlockHash: UnlockHash{91, 201, 101, 11, 188, 40, 35, 111, 236, 133, 31, 124, 97, 246, 140, 136, 143, 245, 152, 174, 111, 245, 188, 124, 21, 125, 187, 192, 203, 92, 253, 57}, 395 }, 396 { 397 Value: NewCurrency64(10), 398 UnlockHash: UnlockHash{110, 240, 238, 173, 78, 138, 185, 138, 179, 227, 135, 153, 54, 132, 46, 62, 226, 206, 204, 35, 174, 107, 156, 15, 142, 2, 93, 132, 163, 60, 50, 89}, 399 }, 400 { 401 Value: NewCurrency64(3), 402 UnlockHash: UnlockHash{114, 58, 147, 44, 64, 69, 72, 184, 65, 178, 213, 94, 157, 44, 88, 106, 92, 31, 145, 193, 215, 200, 215, 233, 99, 116, 36, 197, 160, 70, 79, 153}, 403 }, 404 { 405 Value: NewCurrency64(1), 406 UnlockHash: UnlockHash{123, 106, 229, 101, 220, 252, 50, 203, 38, 183, 133, 152, 250, 167, 210, 155, 252, 102, 150, 29, 187, 3, 178, 53, 11, 145, 143, 33, 166, 115, 250, 40}, 407 }, 408 { 409 Value: NewCurrency64(5), 410 UnlockHash: UnlockHash{124, 101, 207, 175, 50, 119, 207, 26, 62, 15, 247, 141, 150, 174, 73, 247, 238, 28, 77, 255, 222, 104, 166, 244, 112, 86, 227, 80, 215, 45, 69, 143}, 411 }, 412 { 413 Value: NewCurrency64(10), 414 UnlockHash: UnlockHash{130, 184, 72, 15, 227, 79, 217, 205, 120, 254, 67, 69, 10, 49, 76, 194, 222, 30, 242, 62, 88, 179, 51, 117, 27, 166, 140, 6, 7, 22, 222, 185}, 415 }, 416 { 417 Value: NewCurrency64(25), 418 UnlockHash: UnlockHash{134, 137, 198, 172, 96, 54, 45, 10, 100, 128, 91, 225, 226, 134, 143, 108, 31, 70, 187, 228, 54, 212, 70, 229, 149, 57, 64, 166, 153, 123, 238, 180}, 419 }, 420 { 421 Value: NewCurrency64(1), 422 UnlockHash: UnlockHash{143, 253, 118, 229, 109, 181, 141, 224, 91, 144, 123, 160, 203, 221, 119, 104, 172, 13, 105, 77, 171, 185, 122, 54, 229, 168, 6, 130, 160, 130, 182, 151}, 423 }, 424 { 425 Value: NewCurrency64(8), 426 UnlockHash: UnlockHash{147, 108, 249, 16, 36, 249, 108, 184, 196, 212, 241, 120, 219, 63, 45, 184, 86, 53, 96, 207, 130, 96, 210, 251, 136, 9, 193, 160, 131, 198, 221, 185}, 427 }, 428 { 429 Value: NewCurrency64(58), 430 UnlockHash: UnlockHash{155, 79, 89, 28, 69, 71, 239, 198, 246, 2, 198, 254, 92, 59, 192, 205, 229, 152, 36, 186, 110, 122, 233, 221, 76, 143, 3, 238, 89, 231, 192, 23}, 431 }, 432 { 433 Value: NewCurrency64(2), 434 UnlockHash: UnlockHash{156, 32, 76, 105, 213, 46, 66, 50, 27, 85, 56, 9, 106, 193, 80, 145, 19, 101, 84, 177, 145, 4, 125, 28, 79, 252, 43, 83, 118, 110, 206, 247}, 435 }, 436 { 437 Value: NewCurrency64(23), 438 UnlockHash: UnlockHash{157, 169, 134, 24, 254, 22, 58, 188, 119, 87, 201, 238, 55, 168, 194, 131, 88, 18, 39, 168, 37, 2, 198, 194, 93, 202, 116, 146, 189, 17, 108, 44}, 439 }, 440 { 441 Value: NewCurrency64(10), 442 UnlockHash: UnlockHash{158, 51, 104, 36, 242, 114, 67, 16, 168, 230, 4, 111, 241, 72, 5, 14, 182, 102, 169, 156, 144, 220, 103, 117, 223, 8, 58, 187, 124, 102, 80, 44}, 443 }, 444 { 445 Value: NewCurrency64(1), 446 UnlockHash: UnlockHash{160, 175, 59, 33, 223, 30, 82, 60, 34, 110, 28, 203, 249, 93, 3, 16, 218, 12, 250, 206, 138, 231, 85, 67, 69, 191, 68, 198, 160, 87, 154, 68}, 447 }, 448 { 449 Value: NewCurrency64(75), 450 UnlockHash: UnlockHash{163, 94, 51, 220, 14, 144, 83, 112, 62, 10, 0, 173, 161, 234, 211, 176, 186, 84, 9, 189, 250, 111, 33, 231, 114, 87, 100, 75, 72, 217, 11, 26}, 451 }, 452 { 453 Value: NewCurrency64(3), 454 UnlockHash: UnlockHash{170, 7, 138, 116, 205, 20, 132, 197, 166, 251, 75, 93, 69, 6, 109, 244, 212, 119, 173, 114, 34, 18, 25, 21, 111, 203, 203, 253, 138, 104, 27, 36}, 455 }, 456 { 457 Value: NewCurrency64(90), 458 UnlockHash: UnlockHash{173, 120, 128, 104, 186, 86, 151, 140, 191, 23, 231, 193, 77, 245, 243, 104, 196, 55, 155, 243, 111, 15, 84, 139, 148, 187, 173, 47, 104, 69, 141, 39}, 459 }, 460 { 461 Value: NewCurrency64(20), 462 UnlockHash: UnlockHash{179, 185, 228, 166, 139, 94, 13, 193, 255, 227, 174, 99, 120, 105, 109, 221, 247, 4, 155, 243, 229, 37, 26, 98, 222, 12, 91, 80, 223, 33, 61, 56}, 463 }, 464 { 465 Value: NewCurrency64(5), 466 UnlockHash: UnlockHash{193, 49, 103, 20, 170, 135, 182, 85, 149, 18, 159, 194, 152, 120, 162, 208, 49, 158, 220, 188, 114, 79, 1, 131, 62, 27, 86, 57, 244, 46, 64, 66}, 467 }, 468 { 469 Value: NewCurrency64(1), 470 UnlockHash: UnlockHash{196, 71, 45, 222, 0, 21, 12, 121, 197, 224, 101, 65, 40, 57, 19, 119, 112, 205, 166, 23, 2, 91, 75, 231, 69, 143, 221, 68, 245, 75, 7, 52}, 471 }, 472 { 473 Value: NewCurrency64(44), 474 UnlockHash: UnlockHash{196, 214, 236, 211, 227, 216, 152, 127, 164, 2, 235, 14, 235, 46, 142, 231, 83, 38, 7, 131, 208, 29, 179, 189, 62, 88, 129, 180, 119, 158, 214, 97}, 475 }, 476 { 477 Value: NewCurrency64(23), 478 UnlockHash: UnlockHash{206, 58, 114, 148, 131, 49, 87, 197, 86, 18, 216, 26, 62, 79, 152, 175, 33, 4, 132, 160, 108, 231, 53, 200, 48, 76, 125, 94, 156, 85, 32, 130}, 479 }, 480 { 481 Value: NewCurrency64(80), 482 UnlockHash: UnlockHash{200, 103, 135, 126, 197, 2, 203, 63, 241, 6, 245, 195, 220, 102, 27, 74, 232, 249, 201, 86, 207, 34, 51, 26, 180, 151, 136, 108, 112, 56, 132, 72}, 483 }, 484 { 485 Value: NewCurrency64(2), 486 UnlockHash: UnlockHash{200, 249, 245, 218, 58, 253, 76, 250, 88, 114, 70, 239, 14, 2, 250, 123, 10, 192, 198, 61, 187, 155, 247, 152, 165, 174, 198, 24, 142, 39, 177, 119}, 487 }, 488 { 489 Value: NewCurrency64(1), 490 UnlockHash: UnlockHash{209, 1, 199, 184, 186, 57, 21, 137, 33, 252, 219, 184, 130, 38, 32, 98, 63, 252, 250, 79, 70, 146, 169, 78, 180, 161, 29, 93, 38, 45, 175, 176}, 491 }, 492 { 493 Value: NewCurrency64(2), 494 UnlockHash: UnlockHash{212, 107, 233, 43, 185, 138, 79, 253, 12, 237, 214, 17, 219, 198, 151, 92, 81, 129, 17, 120, 139, 58, 66, 119, 126, 220, 132, 136, 3, 108, 57, 58}, 495 }, 496 { 497 Value: NewCurrency64(3), 498 UnlockHash: UnlockHash{214, 244, 146, 173, 173, 80, 33, 185, 29, 133, 77, 167, 185, 1, 38, 23, 111, 179, 104, 150, 105, 162, 120, 26, 245, 63, 114, 119, 52, 1, 44, 222}, 499 }, 500 { 501 Value: NewCurrency64(1), 502 UnlockHash: UnlockHash{217, 218, 172, 16, 53, 134, 160, 226, 44, 138, 93, 53, 181, 62, 4, 209, 190, 27, 0, 93, 105, 17, 169, 61, 98, 145, 131, 112, 121, 55, 97, 184}, 503 }, 504 { 505 Value: NewCurrency64(1), 506 UnlockHash: UnlockHash{223, 162, 172, 55, 54, 193, 37, 142, 200, 213, 230, 48, 186, 145, 184, 206, 15, 225, 167, 19, 37, 70, 38, 48, 135, 87, 205, 81, 187, 237, 181, 180}, 507 }, 508 { 509 Value: NewCurrency64(1), 510 UnlockHash: UnlockHash{241, 46, 139, 41, 40, 63, 47, 169, 131, 173, 124, 246, 228, 213, 102, 44, 100, 217, 62, 237, 133, 154, 248, 69, 228, 2, 36, 206, 47, 250, 249, 170}, 511 }, 512 { 513 Value: NewCurrency64(50), 514 UnlockHash: UnlockHash{241, 50, 229, 211, 66, 32, 115, 241, 117, 87, 180, 239, 76, 246, 14, 129, 105, 181, 153, 105, 105, 203, 229, 237, 23, 130, 193, 170, 100, 201, 38, 71}, 515 }, 516 { 517 Value: NewCurrency64(8841), 518 UnlockHash: UnlockHash{125, 12, 68, 247, 102, 78, 45, 52, 229, 62, 253, 224, 102, 26, 111, 98, 142, 201, 38, 71, 133, 174, 142, 60, 215, 201, 115, 232, 209, 144, 195, 201}, 519 }, 520 } 521 } 522 523 // Create the genesis block. 524 GenesisBlock = Block{ 525 Timestamp: GenesisTimestamp, 526 Transactions: []Transaction{ 527 {SiafundOutputs: GenesisSiafundAllocation}, 528 }, 529 } 530 // Calculate the genesis ID. 531 GenesisID = GenesisBlock.ID() 532 }