{
 "format": "zoobc-conformance-vectors/1",
 "edition": "0.6.1",
 "chapter": "20",
 "license": "CC BY 4.0, ZooBC Foundation",
 "cases": [
  {
   "id": "20-1-zero-seed",
   "chapter": "20",
   "section": "1",
   "title": "The selection generator over a seed of 64 zero bytes",
   "kind": "20-selection-rng",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "prefix": "zbc-blocksmith",
    "seed": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
    "count": "5",
    "n": "11"
   },
   "expected": {
    "h": "2a857d6a57d30f1c54e946a692555aa9f79dabe5790ebd52902868ff55bb9fb4",
    "v": "902868ff55bb9fb4",
    "s0": "44bbb386f849d2b2",
    "s1": "e5fdda30b2bf69c6",
    "draws": "1539323820136242748\n6228456926691826632\n8358880366061543320\n6634008734580907768\n1010366185480732819",
    "indexes": "3\n3\n2\n0\n2"
   }
  },
  {
   "id": "20-1-testnet-12399",
   "chapter": "20",
   "section": "1",
   "title": "The generator over the seed S of a previous block",
   "kind": "20-selection-rng",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "prefix": "zbc-blocksmith",
    "seed": "47acf77aa182eba5b0bed7c450dff155999937b54364a52cd0e80ad7d1c235a0d55d14a03a16227f9f387b00186fb4bb814bdfc37f55d785fd177f0f77acd498",
    "count": "3",
    "n": "11"
   },
   "expected": {
    "h": "1d3c0a7cce91e666cf69494b671f9b662d405e41699d030c79f2f261c4ea3d49",
    "v": "79f2f261c4ea3d49",
    "s0": "80e9fae3ef5169aa",
    "s1": "86638c6b0be50ca7",
    "draws": "263112752382032680\n1530434952209116937\n4671832841340716915",
    "indexes": "6\n5\n6"
   }
  },
  {
   "id": "20-1-testnet-12400-blocksmith",
   "chapter": "20",
   "section": "1",
   "title": "Draws 1 and 2 over seed S and eleven registered nodes name the blocksmiths of rounds 1 and 2",
   "kind": "20-draw",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "seed": "47acf77aa182eba5b0bed7c450dff155999937b54364a52cd0e80ad7d1c235a0d55d14a03a16227f9f387b00186fb4bb814bdfc37f55d785fd177f0f77acd498",
    "nodes": "88697328554714370 02a50719c01d3b81030d5bb866b25e69f15668de15160ba51b43cd0c1b352ca2\n1417521806099974635 eb89f581\n1590136471457360039 a7e89b25b24c11165c68641aefbe652987dd798c008e2ff09e298c57a048e634\n3219899983035352172 6cc41b8d\n3715018299146412646 66a2b2c6\n4016115710591262321 715ea8e2f51bbcb778a26e69d73bd1044fe3a43d76cb1cf6cbc3a9a661a2fbac\n4832784384054893163 6b9aa5c7ca7f11c32b3bc6e006571319a7521aaa472f3c422f52626e48c3833e\n4933499001599987543 578f1c02\n5679266776148337025 81e1fff8\n6491144547391062772 f442f504\n9161275597898082805 f5692b26",
    "rounds": "1\n2\n3"
   },
   "expected": {
    "indexes": "6\n5\n6",
    "keys": "6b9aa5c7ca7f11c32b3bc6e006571319a7521aaa472f3c422f52626e48c3833e\n715ea8e2f51bbcb778a26e69d73bd1044fe3a43d76cb1cf6cbc3a9a661a2fbac\n6b9aa5c7ca7f11c32b3bc6e006571319a7521aaa472f3c422f52626e48c3833e"
   },
   "note": "Registered nodes other than the three named in full are given by their key prefix; the draw only needs their id order."
  },
  {
   "id": "20-1-roll-call-one",
   "chapter": "20",
   "section": "1",
   "title": "Roll call: one registered node of eleven answered, block 2 is drawn over all eleven",
   "kind": "20-roll-call",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "height": "2",
    "roll_call_blocks": "20",
    "registered": "1 0\n2 0\n3 0\n4 0\n5 0\n6 0\n7 0\n8 0\n9 0\n10 0\n11 0",
    "answered": "1"
   },
   "expected": {
    "drawable": "1\n2\n3\n4\n5\n6\n7\n8\n9\n10\n11",
    "restricts": "false"
   }
  },
  {
   "id": "20-1-roll-call-six",
   "chapter": "20",
   "section": "1",
   "title": "Roll call: six registered nodes answered, block 5 is drawn over those six",
   "kind": "20-roll-call",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "height": "5",
    "roll_call_blocks": "20",
    "registered": "1 0\n2 0\n3 0\n4 0\n5 0\n6 0\n7 0\n8 0\n9 0\n10 0\n11 0",
    "answered": "1\n2\n3\n4\n5\n6"
   },
   "expected": {
    "drawable": "1\n2\n3\n4\n5\n6",
    "restricts": "true"
   }
  },
  {
   "id": "20-1-roll-call-over",
   "chapter": "20",
   "section": "1",
   "title": "Past roll_call_blocks the roll call no longer restricts the draw",
   "kind": "20-roll-call",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "height": "21",
    "roll_call_blocks": "20",
    "registered": "1 0\n2 0\n3 0\n4 0\n5 0\n6 0\n7 0\n8 0\n9 0\n10 0\n11 0",
    "answered": "1\n2\n3\n4\n5\n6"
   },
   "expected": {
    "drawable": "1\n2\n3\n4\n5\n6\n7\n8\n9\n10\n11",
    "restricts": "false"
   }
  },
  {
   "id": "20-1-empty-set",
   "chapter": "20",
   "section": "1",
   "title": "An empty draw set is refused",
   "kind": "20-draw",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "seed": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
    "nodes": "",
    "rounds": "1"
   },
   "expected": {
    "error": "No nodes available"
   }
  },
  {
   "id": "20-2-testnet-12399",
   "chapter": "20",
   "section": "2",
   "title": "Targets and windows of rounds 1 and 2 after P = 1,793,713,987",
   "kind": "20-rounds",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "previous_timestamp": "1793713987",
    "rounds": "1\n2",
    "timestamps": "1793714002\n1793714024\n1793714025"
   },
   "expected": {
    "targets": "1793714002\n1793714017",
    "persist": "1793713995..1793714009\n1793714010..1793714024",
    "creation": "1793713995..1793714029\n1793714010..1793714044",
    "timestamp_rounds": "1\n2\n3"
   }
  },
  {
   "id": "20-3-testnet-12400",
   "chapter": "20",
   "section": "3",
   "title": "A block by draw 1 over seed S at round 1: position 0, transactions allowed",
   "kind": "20-blocksmith-check",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "seed": "47acf77aa182eba5b0bed7c450dff155999937b54364a52cd0e80ad7d1c235a0d55d14a03a16227f9f387b00186fb4bb814bdfc37f55d785fd177f0f77acd498",
    "nodes": "88697328554714370 02a50719c01d3b81030d5bb866b25e69f15668de15160ba51b43cd0c1b352ca2\n1417521806099974635 eb89f581\n1590136471457360039 a7e89b25b24c11165c68641aefbe652987dd798c008e2ff09e298c57a048e634\n3219899983035352172 6cc41b8d\n3715018299146412646 66a2b2c6\n4016115710591262321 715ea8e2f51bbcb778a26e69d73bd1044fe3a43d76cb1cf6cbc3a9a661a2fbac\n4832784384054893163 6b9aa5c7ca7f11c32b3bc6e006571319a7521aaa472f3c422f52626e48c3833e\n4933499001599987543 578f1c02\n5679266776148337025 81e1fff8\n6491144547391062772 f442f504\n9161275597898082805 f5692b26",
    "producer": "6b9aa5c7ca7f11c32b3bc6e006571319a7521aaa472f3c422f52626e48c3833e",
    "previous_producer": "f442f504",
    "previous_timestamp": "1793713987",
    "timestamp": "1793714002",
    "max_priority_blocksmiths": "10",
    "transactions": "1"
   },
   "expected": {
    "round": "1",
    "position": "0",
    "producer_position": "0",
    "verdict": "valid"
   }
  },
  {
   "id": "20-3-round-11",
   "chapter": "20",
   "section": "3",
   "title": "Ten nodes, a blocksmith first drawn at round 11 and carrying one transaction",
   "kind": "20-blocksmith-check",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "seed": "00000000000000030000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
    "nodes": "1 0101010101010101010101010101010101010101010101010101010101010101\n2 0202020202020202020202020202020202020202020202020202020202020202\n3 0303030303030303030303030303030303030303030303030303030303030303\n4 0404040404040404040404040404040404040404040404040404040404040404\n5 0505050505050505050505050505050505050505050505050505050505050505\n6 0606060606060606060606060606060606060606060606060606060606060606\n7 0707070707070707070707070707070707070707070707070707070707070707\n8 0808080808080808080808080808080808080808080808080808080808080808\n9 0909090909090909090909090909090909090909090909090909090909090909\n10 0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a",
    "producer": "0404040404040404040404040404040404040404040404040404040404040404",
    "previous_producer": "",
    "previous_timestamp": "1793713987",
    "timestamp": "1793714152",
    "max_priority_blocksmiths": "10",
    "transactions": "1"
   },
   "expected": {
    "round": "11",
    "position": "10",
    "producer_position": "10",
    "verdict": "Blocksmith at position 10 is beyond max_priority_blocksmiths (10) and must produce empty blocks, but block contains 1 transactions"
   }
  },
  {
   "id": "20-3-round-11-empty",
   "chapter": "20",
   "section": "3",
   "title": "The same blocksmith with an empty block",
   "kind": "20-blocksmith-check",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "seed": "00000000000000030000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
    "nodes": "1 0101010101010101010101010101010101010101010101010101010101010101\n2 0202020202020202020202020202020202020202020202020202020202020202\n3 0303030303030303030303030303030303030303030303030303030303030303\n4 0404040404040404040404040404040404040404040404040404040404040404\n5 0505050505050505050505050505050505050505050505050505050505050505\n6 0606060606060606060606060606060606060606060606060606060606060606\n7 0707070707070707070707070707070707070707070707070707070707070707\n8 0808080808080808080808080808080808080808080808080808080808080808\n9 0909090909090909090909090909090909090909090909090909090909090909\n10 0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a",
    "producer": "0404040404040404040404040404040404040404040404040404040404040404",
    "previous_producer": "",
    "previous_timestamp": "1793713987",
    "timestamp": "1793714152",
    "max_priority_blocksmiths": "10",
    "transactions": "0"
   },
   "expected": {
    "round": "11",
    "position": "10",
    "verdict": "valid"
   }
  },
  {
   "id": "20-3-drawn-twice",
   "chapter": "20",
   "section": "3",
   "title": "A blocksmith drawn at rounds 1 and 11 produces at round 11 with a transaction",
   "kind": "20-blocksmith-check",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "seed": "00000000000000060000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
    "nodes": "1 0101010101010101010101010101010101010101010101010101010101010101\n2 0202020202020202020202020202020202020202020202020202020202020202\n3 0303030303030303030303030303030303030303030303030303030303030303\n4 0404040404040404040404040404040404040404040404040404040404040404\n5 0505050505050505050505050505050505050505050505050505050505050505\n6 0606060606060606060606060606060606060606060606060606060606060606\n7 0707070707070707070707070707070707070707070707070707070707070707\n8 0808080808080808080808080808080808080808080808080808080808080808\n9 0909090909090909090909090909090909090909090909090909090909090909\n10 0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a",
    "producer": "0808080808080808080808080808080808080808080808080808080808080808",
    "previous_producer": "",
    "previous_timestamp": "1793713987",
    "timestamp": "1793714152",
    "max_priority_blocksmiths": "10",
    "transactions": "1"
   },
   "expected": {
    "round": "11",
    "position": "0",
    "producer_position": "10",
    "verdict": "valid"
   },
   "note": "The validator's position is the first of the first 2n draws (round 1); the blocksmith's own rule looks at rounds 10 and 11."
  },
  {
   "id": "20-3-not-drawn",
   "chapter": "20",
   "section": "3",
   "title": "A blocksmith not drawn in the rounds of its timestamp",
   "kind": "20-blocksmith-check",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "seed": "47acf77aa182eba5b0bed7c450dff155999937b54364a52cd0e80ad7d1c235a0d55d14a03a16227f9f387b00186fb4bb814bdfc37f55d785fd177f0f77acd498",
    "nodes": "88697328554714370 02a50719c01d3b81030d5bb866b25e69f15668de15160ba51b43cd0c1b352ca2\n1417521806099974635 eb89f581\n1590136471457360039 a7e89b25b24c11165c68641aefbe652987dd798c008e2ff09e298c57a048e634\n3219899983035352172 6cc41b8d\n3715018299146412646 66a2b2c6\n4016115710591262321 715ea8e2f51bbcb778a26e69d73bd1044fe3a43d76cb1cf6cbc3a9a661a2fbac\n4832784384054893163 6b9aa5c7ca7f11c32b3bc6e006571319a7521aaa472f3c422f52626e48c3833e\n4933499001599987543 578f1c02\n5679266776148337025 81e1fff8\n6491144547391062772 f442f504\n9161275597898082805 f5692b26",
    "producer": "715ea8e2f51bbcb778a26e69d73bd1044fe3a43d76cb1cf6cbc3a9a661a2fbac",
    "previous_producer": "f442f504",
    "previous_timestamp": "1793713987",
    "timestamp": "1793714002",
    "max_priority_blocksmiths": "10",
    "transactions": "0"
   },
   "expected": {
    "verdict": "Blocksmith not valid for block timestamp (Go-compatible validation failed)"
   }
  },
  {
   "id": "20-4-position-0",
   "chapter": "20",
   "section": "4",
   "title": "Drawn first: timestamp and broadcast",
   "kind": "20-production-timing",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "previous_timestamp": "1793713987",
    "position": "0"
   },
   "expected": {
    "timestamp": "1793714002",
    "broadcast": "1793714002"
   }
  },
  {
   "id": "20-4-position-1",
   "chapter": "20",
   "section": "4",
   "title": "Drawn second: timestamp and broadcast",
   "kind": "20-production-timing",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "previous_timestamp": "1793713987",
    "position": "1"
   },
   "expected": {
    "timestamp": "1793714017",
    "broadcast": "1793714004"
   }
  },
  {
   "id": "20-4-guard",
   "chapter": "20",
   "section": "4",
   "title": "One block per parent within the recovery limit and one past it",
   "kind": "20-parent-guard",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "parent_timestamp": "1793713987",
    "recovery_limit": "3600",
    "stamps": "1793714002\n1793714017\n1793717602\n1793717687"
   },
   "expected": {
    "actions": "sign B1\nresend B1\nsign B2\nresend B2"
   }
  },
  {
   "id": "20-4-guard-restart",
   "chapter": "20",
   "section": "4",
   "title": "After a restart the parent's slot is marked but its block cannot be read back",
   "kind": "20-parent-guard",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "parent_timestamp": "1793713987",
    "recovery_limit": "3600",
    "stamps": "1793714017\n1793717602",
    "restart_marked": "within"
   },
   "expected": {
    "actions": "refuse: Already signed a block over this parent before a restart (gate-D2b: never a second one)\nsign B1"
   },
   "note": "The round loop's pre-check answers the same case \"Already signed a block over this parent (gate-D2: never a second one)\"; both are local texts."
  },
  {
   "id": "20-4-carrier-copies",
   "chapter": "20",
   "section": "4",
   "title": "Two pooled SendZBC carriers wrapping one signed Ethereum transaction, arrived at 10:00:00 and 10:00:01",
   "kind": "20-carrier-selection",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "signature": "0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101",
    "account_nonce": "3",
    "spent": "",
    "block_timestamp": "1793509192",
    "height": "10",
    "copies": "36000 01000000013cc7e66a000000000400000036590dc6986e0755e42c7d4c8f385389403230fc0400000000000000000000000000000000000000000000aac0c62d00000000000800000040420f00000000000200000071000000f86f0385e8d4a510008275309400000000000000000000000000000000000000aa872386f26fc1000080841107c029a0b2f67ec1cfd11951d403e35c5aa9b7307e7b155d7b77df51cb3ccdb9dadbebe4a012219d8451006c1543d2586d48b250bcfafef39dfabec3a700a25076992ad6d3\n36001 01000000013bc7e66a000000000400000036590dc6986e0755e42c7d4c8f385389403230fc0400000000000000000000000000000000000000000000aac0c62d00000000000800000040420f00000000000200000071000000f86f0385e8d4a510008275309400000000000000000000000000000000000000aa872386f26fc1000080841107c029a0b2f67ec1cfd11951d403e35c5aa9b7307e7b155d7b77df51cb3ccdb9dadbebe4a012219d8451006c1543d2586d48b250bcfafef39dfabec3a700a25076992ad6d3"
   },
   "expected": {
    "selection": "eligible\nleft"
   },
   "note": "Arrival in seconds of the day. The second envelope is dated earlier: the oldest arrival decides, not the envelope's date."
  },
  {
   "id": "20-4-carrier-next-nonce",
   "chapter": "20",
   "section": "4",
   "title": "A carrier of the next nonce waits for the next block",
   "kind": "20-carrier-selection",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "signature": "0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101",
    "account_nonce": "3",
    "spent": "",
    "block_timestamp": "1793509192",
    "height": "10",
    "copies": "36000 01000000013dc7e66a000000000400000036590dc6986e0755e42c7d4c8f385389403230fc0400000000000000000000000000000000000000000000aac0c62d00000000000800000040420f00000000000200000071000000f86f0485e8d4a510008275309400000000000000000000000000000000000000aa872386f26fc1000080841107c02aa0a8acf6daa683238dbe67d820b86bac1ccd4f2fce60c424c4ea0c89959ac6cbb6a0685fe39d8fed9afca00d9a21840211828ba8d807180beb67f7efa65d1028b3c3"
   },
   "expected": {
    "selection": "left"
   }
  },
  {
   "id": "20-4-carrier-spent",
   "chapter": "20",
   "section": "4",
   "title": "A carrier whose id the chain already holds as spent is skipped",
   "kind": "20-carrier-selection",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "signature": "0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101",
    "account_nonce": "3",
    "spent": "6b16dc3afd0ba013e7445853b6e72a301a01142539d246cefea9cb110256d5b3",
    "block_timestamp": "1793509192",
    "height": "10",
    "copies": "36000 01000000013cc7e66a000000000400000036590dc6986e0755e42c7d4c8f385389403230fc0400000000000000000000000000000000000000000000aac0c62d00000000000800000040420f00000000000200000071000000f86f0385e8d4a510008275309400000000000000000000000000000000000000aa872386f26fc1000080841107c029a0b2f67ec1cfd11951d403e35c5aa9b7307e7b155d7b77df51cb3ccdb9dadbebe4a012219d8451006c1543d2586d48b250bcfafef39dfabec3a700a25076992ad6d3"
   },
   "expected": {
    "selection": "left"
   }
  },
  {
   "id": "20-4-carrier-eligible",
   "chapter": "20",
   "section": "4",
   "title": "The carrier of the account nonce, alone in the pool",
   "kind": "20-carrier-selection",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "signature": "0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101",
    "account_nonce": "3",
    "spent": "",
    "block_timestamp": "1793509192",
    "height": "10",
    "copies": "36000 01000000013cc7e66a000000000400000036590dc6986e0755e42c7d4c8f385389403230fc0400000000000000000000000000000000000000000000aac0c62d00000000000800000040420f00000000000200000071000000f86f0385e8d4a510008275309400000000000000000000000000000000000000aa872386f26fc1000080841107c029a0b2f67ec1cfd11951d403e35c5aa9b7307e7b155d7b77df51cb3ccdb9dadbebe4a012219d8451006c1543d2586d48b250bcfafef39dfabec3a700a25076992ad6d3"
   },
   "expected": {
    "selection": "eligible"
   }
  },
  {
   "id": "20-4-dry-run",
   "chapter": "20",
   "section": "4",
   "title": "A candidate whose second transaction fails execution deterministically",
   "kind": "reference",
   "validity": "valid",
   "source": "computed",
   "inputs": {},
   "expected": {
    "value": "that transaction is evicted and the candidate re-signed with the other 2"
   }
  },
  {
   "id": "20-5-round-1",
   "chapter": "20",
   "section": "5",
   "title": "Block 12,400 by draw 1 at round 1: no skipped row",
   "kind": "20-skipped",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "seed": "47acf77aa182eba5b0bed7c450dff155999937b54364a52cd0e80ad7d1c235a0d55d14a03a16227f9f387b00186fb4bb814bdfc37f55d785fd177f0f77acd498",
    "nodes": "88697328554714370 02a50719c01d3b81030d5bb866b25e69f15668de15160ba51b43cd0c1b352ca2\n1417521806099974635 eb89f581\n1590136471457360039 a7e89b25b24c11165c68641aefbe652987dd798c008e2ff09e298c57a048e634\n3219899983035352172 6cc41b8d\n3715018299146412646 66a2b2c6\n4016115710591262321 715ea8e2f51bbcb778a26e69d73bd1044fe3a43d76cb1cf6cbc3a9a661a2fbac\n4832784384054893163 6b9aa5c7ca7f11c32b3bc6e006571319a7521aaa472f3c422f52626e48c3833e\n4933499001599987543 578f1c02\n5679266776148337025 81e1fff8\n6491144547391062772 f442f504\n9161275597898082805 f5692b26",
    "producer": "6b9aa5c7ca7f11c32b3bc6e006571319a7521aaa472f3c422f52626e48c3833e",
    "previous_producer": "f442f504",
    "previous_timestamp": "1793713987",
    "timestamp": "1793714002",
    "max_priority_blocksmiths": "10",
    "height": "12400"
   },
   "expected": {
    "list": "6b9aa5c7ca7f11c32b3bc6e006571319a7521aaa472f3c422f52626e48c3833e",
    "rows": ""
   }
  },
  {
   "id": "20-5-round-2",
   "chapter": "20",
   "section": "5",
   "title": "A block at round 2 by draw 2: one skipped row",
   "kind": "20-skipped",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "seed": "47acf77aa182eba5b0bed7c450dff155999937b54364a52cd0e80ad7d1c235a0d55d14a03a16227f9f387b00186fb4bb814bdfc37f55d785fd177f0f77acd498",
    "nodes": "88697328554714370 02a50719c01d3b81030d5bb866b25e69f15668de15160ba51b43cd0c1b352ca2\n1417521806099974635 eb89f581\n1590136471457360039 a7e89b25b24c11165c68641aefbe652987dd798c008e2ff09e298c57a048e634\n3219899983035352172 6cc41b8d\n3715018299146412646 66a2b2c6\n4016115710591262321 715ea8e2f51bbcb778a26e69d73bd1044fe3a43d76cb1cf6cbc3a9a661a2fbac\n4832784384054893163 6b9aa5c7ca7f11c32b3bc6e006571319a7521aaa472f3c422f52626e48c3833e\n4933499001599987543 578f1c02\n5679266776148337025 81e1fff8\n6491144547391062772 f442f504\n9161275597898082805 f5692b26",
    "producer": "715ea8e2f51bbcb778a26e69d73bd1044fe3a43d76cb1cf6cbc3a9a661a2fbac",
    "previous_producer": "f442f504",
    "previous_timestamp": "1793713987",
    "timestamp": "1793714017",
    "max_priority_blocksmiths": "10",
    "height": "12400"
   },
   "expected": {
    "list": "6b9aa5c7ca7f11c32b3bc6e006571319a7521aaa472f3c422f52626e48c3833e\n715ea8e2f51bbcb778a26e69d73bd1044fe3a43d76cb1cf6cbc3a9a661a2fbac",
    "rows": "6b9aa5c7ca7f11c32b3bc6e006571319a7521aaa472f3c422f52626e48c3833e 0 12400 0"
   }
  },
  {
   "id": "20-5-demoted",
   "chapter": "20",
   "section": "5",
   "title": "The previous blocksmith, drawn at round 2, stamps in round 10",
   "kind": "20-skipped",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "seed": "47acf77aa182eba5b0bed7c450dff155999937b54364a52cd0e80ad7d1c235a0d55d14a03a16227f9f387b00186fb4bb814bdfc37f55d785fd177f0f77acd498",
    "nodes": "88697328554714370 02a50719c01d3b81030d5bb866b25e69f15668de15160ba51b43cd0c1b352ca2\n1417521806099974635 eb89f581\n1590136471457360039 a7e89b25b24c11165c68641aefbe652987dd798c008e2ff09e298c57a048e634\n3219899983035352172 6cc41b8d\n3715018299146412646 66a2b2c6\n4016115710591262321 715ea8e2f51bbcb778a26e69d73bd1044fe3a43d76cb1cf6cbc3a9a661a2fbac\n4832784384054893163 6b9aa5c7ca7f11c32b3bc6e006571319a7521aaa472f3c422f52626e48c3833e\n4933499001599987543 578f1c02\n5679266776148337025 81e1fff8\n6491144547391062772 f442f504\n9161275597898082805 f5692b26",
    "producer": "715ea8e2f51bbcb778a26e69d73bd1044fe3a43d76cb1cf6cbc3a9a661a2fbac",
    "previous_producer": "715ea8e2f51bbcb778a26e69d73bd1044fe3a43d76cb1cf6cbc3a9a661a2fbac",
    "previous_timestamp": "1793713987",
    "timestamp": "1793714137",
    "max_priority_blocksmiths": "10",
    "height": "12400"
   },
   "expected": {
    "list": "6b9aa5c7ca7f11c32b3bc6e006571319a7521aaa472f3c422f52626e48c3833e\n6b9aa5c7ca7f11c32b3bc6e006571319a7521aaa472f3c422f52626e48c3833e\n578f1c02\nf5692b26\n66a2b2c6\n66a2b2c6\n6b9aa5c7ca7f11c32b3bc6e006571319a7521aaa472f3c422f52626e48c3833e\n715ea8e2f51bbcb778a26e69d73bd1044fe3a43d76cb1cf6cbc3a9a661a2fbac",
    "rows": "6b9aa5c7ca7f11c32b3bc6e006571319a7521aaa472f3c422f52626e48c3833e 0 12400 0\n6b9aa5c7ca7f11c32b3bc6e006571319a7521aaa472f3c422f52626e48c3833e 0 12400 1\n578f1c02 0 12400 2\nf5692b26 0 12400 3\n66a2b2c6 0 12400 4\n66a2b2c6 0 12400 5\n6b9aa5c7ca7f11c32b3bc6e006571319a7521aaa472f3c422f52626e48c3833e 0 12400 6"
   },
   "note": "Draws 1 to 10 name indexes 6 5 6 7 5 10 4 4 6 4; the blocksmith's own draws (2 and 5) below round 10 are left out."
  },
  {
   "id": "20-6-testnet-12400",
   "chapter": "20",
   "section": "6",
   "title": "A block by draw 1 at round 1, |S| = |A| = 11: increment and cumulative difficulty",
   "kind": "20-difficulty",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "seed": "47acf77aa182eba5b0bed7c450dff155999937b54364a52cd0e80ad7d1c235a0d55d14a03a16227f9f387b00186fb4bb814bdfc37f55d785fd177f0f77acd498",
    "nodes": "88697328554714370 02a50719c01d3b81030d5bb866b25e69f15668de15160ba51b43cd0c1b352ca2\n1417521806099974635 eb89f581\n1590136471457360039 a7e89b25b24c11165c68641aefbe652987dd798c008e2ff09e298c57a048e634\n3219899983035352172 6cc41b8d\n3715018299146412646 66a2b2c6\n4016115710591262321 715ea8e2f51bbcb778a26e69d73bd1044fe3a43d76cb1cf6cbc3a9a661a2fbac\n4832784384054893163 6b9aa5c7ca7f11c32b3bc6e006571319a7521aaa472f3c422f52626e48c3833e\n4933499001599987543 578f1c02\n5679266776148337025 81e1fff8\n6491144547391062772 f442f504\n9161275597898082805 f5692b26",
    "producer": "6b9aa5c7ca7f11c32b3bc6e006571319a7521aaa472f3c422f52626e48c3833e",
    "previous_producer": "f442f504",
    "previous_timestamp": "1793713987",
    "timestamp": "1793714002",
    "max_priority_blocksmiths": "10",
    "registry": "11",
    "previous_difficulty": "11810449964",
    "divisor": "1000000",
    "carried": "11811449964"
   },
   "expected": {
    "count": "1",
    "increment": "1000000",
    "difficulty": "11811449964",
    "verdict": "valid"
   }
  },
  {
   "id": "20-6-mismatch",
   "chapter": "20",
   "section": "6",
   "title": "The same block carrying 11811449965",
   "kind": "20-difficulty",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "seed": "47acf77aa182eba5b0bed7c450dff155999937b54364a52cd0e80ad7d1c235a0d55d14a03a16227f9f387b00186fb4bb814bdfc37f55d785fd177f0f77acd498",
    "nodes": "88697328554714370 02a50719c01d3b81030d5bb866b25e69f15668de15160ba51b43cd0c1b352ca2\n1417521806099974635 eb89f581\n1590136471457360039 a7e89b25b24c11165c68641aefbe652987dd798c008e2ff09e298c57a048e634\n3219899983035352172 6cc41b8d\n3715018299146412646 66a2b2c6\n4016115710591262321 715ea8e2f51bbcb778a26e69d73bd1044fe3a43d76cb1cf6cbc3a9a661a2fbac\n4832784384054893163 6b9aa5c7ca7f11c32b3bc6e006571319a7521aaa472f3c422f52626e48c3833e\n4933499001599987543 578f1c02\n5679266776148337025 81e1fff8\n6491144547391062772 f442f504\n9161275597898082805 f5692b26",
    "producer": "6b9aa5c7ca7f11c32b3bc6e006571319a7521aaa472f3c422f52626e48c3833e",
    "previous_producer": "f442f504",
    "previous_timestamp": "1793713987",
    "timestamp": "1793714002",
    "max_priority_blocksmiths": "10",
    "registry": "11",
    "previous_difficulty": "11810449964",
    "divisor": "1000000",
    "carried": "11811449965"
   },
   "expected": {
    "verdict": "Cumulative difficulty mismatch: expected 11811449964, got '11811449965'"
   }
  },
  {
   "id": "20-6-suspended",
   "chapter": "20",
   "section": "6",
   "title": "Two of eleven suspended (nine selectable), a round-1 block by draw 1",
   "kind": "20-difficulty",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "seed": "00000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
    "nodes": "1 0101010101010101010101010101010101010101010101010101010101010101\n2 0202020202020202020202020202020202020202020202020202020202020202\n3 0303030303030303030303030303030303030303030303030303030303030303\n4 0404040404040404040404040404040404040404040404040404040404040404\n5 0505050505050505050505050505050505050505050505050505050505050505\n6 0606060606060606060606060606060606060606060606060606060606060606\n7 0707070707070707070707070707070707070707070707070707070707070707\n8 0808080808080808080808080808080808080808080808080808080808080808\n9 0909090909090909090909090909090909090909090909090909090909090909",
    "producer": "0404040404040404040404040404040404040404040404040404040404040404",
    "previous_producer": "",
    "previous_timestamp": "1793713987",
    "timestamp": "1793714002",
    "max_priority_blocksmiths": "10",
    "registry": "11",
    "previous_difficulty": "0",
    "divisor": "1000000"
   },
   "expected": {
    "count": "1",
    "increment": "818181"
   }
  },
  {
   "id": "20-6-demoted",
   "chapter": "20",
   "section": "6",
   "title": "The previous blocksmith's block at round 10, same sets",
   "kind": "20-difficulty",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "seed": "00000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
    "nodes": "1 0101010101010101010101010101010101010101010101010101010101010101\n2 0202020202020202020202020202020202020202020202020202020202020202\n3 0303030303030303030303030303030303030303030303030303030303030303\n4 0404040404040404040404040404040404040404040404040404040404040404\n5 0505050505050505050505050505050505050505050505050505050505050505\n6 0606060606060606060606060606060606060606060606060606060606060606\n7 0707070707070707070707070707070707070707070707070707070707070707\n8 0808080808080808080808080808080808080808080808080808080808080808\n9 0909090909090909090909090909090909090909090909090909090909090909",
    "producer": "0404040404040404040404040404040404040404040404040404040404040404",
    "previous_producer": "0404040404040404040404040404040404040404040404040404040404040404",
    "previous_timestamp": "1793713987",
    "timestamp": "1793714137",
    "max_priority_blocksmiths": "10",
    "registry": "11",
    "previous_difficulty": "0",
    "divisor": "1000000"
   },
   "expected": {
    "count": "10",
    "increment": "81818"
   }
  },
  {
   "id": "20-7-newcomer",
   "chapter": "20",
   "section": "7",
   "title": "A newcomer on the testnet unit clock: blocks until mature",
   "kind": "20-maturity",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "unit": "2880",
    "maturity_units": "4",
    "registration_height": "500",
    "produced": "true"
   },
   "expected": {
    "step": "347222222",
    "ticks": "4000000000000",
    "blocks": "11521"
   },
   "note": "11,520 blocks give 3,999,999,997,440 ticks, short of 4 × 10¹²."
  },
  {
   "id": "20-7-genesis-node",
   "chapter": "20",
   "section": "7",
   "title": "A genesis registered node earns at once",
   "kind": "20-maturity",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "unit": "2880",
    "maturity_units": "4",
    "registration_height": "0",
    "produced": "false"
   },
   "expected": {
    "blocks": "0"
   }
  },
  {
   "id": "20-7-no-block",
   "chapter": "20",
   "section": "7",
   "title": "A newcomer that has produced no block is not mature",
   "kind": "20-maturity",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "unit": "2880",
    "maturity_units": "4",
    "registration_height": "500",
    "produced": "false"
   },
   "expected": {
    "error": "not mature: no block produced since admission"
   }
  }
 ]
}
