2021-05-01 18:33:34 +00:00
<!DOCTYPE html > < html > < head > < meta http-equiv = "X-UA-Compatible" content = "IE=edge" / > < meta content = "width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name = "viewport" / > < title > < / title > < meta content = "" name = "description" / > < meta content = "" name = "keywords" / > < meta http-equiv = "content-type" content = "text/html; charset=UTF-8" / > < link href = "../../../../lib/index.css" media = "screen" type = "text/css" rel = "stylesheet" / > < link href = "../../../../lib/template.css" media = "screen" type = "text/css" rel = "stylesheet" / > < link href = "../../../../lib/print.css" media = "print" type = "text/css" rel = "stylesheet" / > < link href = "../../../../lib/diagrams.css" media = "screen" type = "text/css" rel = "stylesheet" id = "diagrams-css" / > < script type = "text/javascript" src = "../../../../lib/jquery.min.js" > < / script > < script type = "text/javascript" src = "../../../../lib/index.js" > < / script > < script type = "text/javascript" src = "../../../../index.js" > < / script > < script type = "text/javascript" src = "../../../../lib/scheduler.js" > < / script > < script type = "text/javascript" src = "../../../../lib/template.js" > < / script > < script type = "text/javascript" > / * t h i s v a r i a b l e c a n b e u s e d b y t h e J S t o d e t e r m i n e t h e p a t h t o t h e r o o t d o c u m e n t * /
2022-01-13 16:45:55 +00:00
var toRoot = '../../../../';< / script > < / head > < body > < div id = "search" > < span id = "doc-title" > < span id = "doc-version" > < / span > < / span > < span class = "close-results" > < span class = "left" > < < / span > Back< / span > < div id = "textfilter" > < span class = "input" > < input autocapitalize = "none" placeholder = "Search" id = "index-input" type = "text" accesskey = "/" / > < i class = "clear material-icons" > < / i > < i id = "search-icon" class = "material-icons" > < / i > < / span > < / div > < / div > < div id = "search-results" > < div id = "search-progress" > < div id = "progress-fill" > < / div > < / div > < div id = "results-content" > < div id = "entity-results" > < / div > < div id = "member-results" > < / div > < / div > < / div > < div id = "content-scroll-container" style = "-webkit-overflow-scrolling: touch;" > < div id = "content-container" style = "-webkit-overflow-scrolling: touch;" > < div id = "subpackage-spacer" > < div id = "packages" > < h1 > Packages< / h1 > < ul > < li class = "indented0 " name = "_root_.root" group = "Ungrouped" fullComment = "yes" data-isabs = "false" visbl = "pub" > < a id = "_root_" class = "anchorToMember" > < / a > < a id = "root:_root_" class = "anchorToMember" > < / a > < span class = "permalink" > < a href = "../../../../index.html" title = "Permalink" > < i class = "material-icons" > < / i > < / a > < / span > < span class = "modifier_kind" > < span class = "modifier" > < / span > < span class = "kind" > package< / span > < / span > < span class = "symbol" > < a href = "../../../../index.html" title = "" > < span class = "name" > root< / span > < / a > < / span > < div class = "fullcomment" > < dl class = "attributes block" > < dt > Definition Classes< / dt > < dd > < a href = "../../../../index.html" name = "_root_" id = "_root_" class = "extype" > root< / a > < / dd > < / dl > < / div > < / li > < li class = "indented1 " name = "_root_.org" group = "Ungrouped" fullComment = "yes" data-isabs = "false" visbl = "pub" > < a id = "org" class = "anchorToMember" > < / a > < a id = "org:org" class = "anchorToMember" > < / a > < span class = "permalink" > < a href = "../../../../org/index.html" title = "Permalink" > < i class = "material-icons" > < / i > < / a > < / span > < span class = "modifier_kind" > < span class = "modifier" > < / span > < span class = "kind" > package< / span > < / span > < span class = "symbol" > < a href = "../../../index.html" title = "" > < span class = "name" > org< / span > < / a > < / span > < div class = "fullcomment" > < dl class = "attributes block" > < dt > Definition Classes< / dt > < dd > < a href = "../../../../index.html" name = "_root_" id = "_root_" class = "extype" > root< / a > < / dd > < / dl > < / div > < / li > < li class = "indented2 " name = "org.bitcoins" group = "Ungrouped" fullComment = "yes" data-isabs = "false" visbl = "pub" > < a id = "bitcoins" class = "anchorToMember" > < / a > < a id = "bitcoins:bitcoins" class = "anchorToMember" > < / a > < span class = "permalink" > < a href = "../../../../org/bitcoins/index.html" title = "Permalink" > < i class = "material-icons" > < / i > < / a > < / span > < span class = "modifier_kind" > < span class = "modifier" > < / span > < span class = "kind" > package< / span > < / span > < span class = "symbol" > < a href = "../../index.html" title = "" > < span class = "name" > bitcoins< / span > < / a > < / span > < div class = "fullcomment" > < dl class = "attributes block" > < dt > Definition Classes< / dt > < dd > < a href = "../../../index.html" name = "org" id = "org" class = "extype" > org< / a > < / dd > < / dl > < / div > < / li > < li class = "indented3 " name = "org.bitcoins.testkit" group = "Ungrouped" fullComment = "yes" data-isabs = "false" visbl = "pub" > < a id = "testkit" class = "anchorToMember" > < / a > < a id = "testkit:testkit" class = "anchorToMember" > < / a > < span class = "permalink" > < a href = "../../../../org/bitcoins/testkit/index.html" title = "Permalink" > < i class = "material-icons" > < / i > < / a > < / span > < span class = "modifier_kind" > < span class = "modifier" > < / span > < span class = "kind" > package< / span > < / span > < span class = "symbol" > < a href = "../index.html" title = "" > < span class = "name" > testkit< / span > < / a > < / span > < div class = "fullcomment" > < dl class = "attributes block" > < dt > Definition Classes< / dt > < dd > < a href = "../../index.html" name = "org.bitcoins" id = "org.bitcoins" class = "extype" > bitcoins< / a > < / dd > < / dl > < / div > < / li > < li class = "indented4 " name = "org.bitcoins.testkit.chain" group = "Ungrouped" fullComment = "yes" data-isabs = "false" visbl = "pub" > < a id = "chain" class = "anchorToMember" > < / a > < a id = "chain:chain" class = "anchorToMember" > < / a > < span class = "permalink" > < a href = "../../../../org/bitcoins/testkit/chain/index.html" title = "Permalink" > < i class = "material-icons" > < / i > < / a > < / span > < span c
2021-05-01 18:33:34 +00:00
The only consensus requirement that this method adheres to
with the returned < span name = "org.bitcoins.chain.models.BlockHeaderDb" class = "extype" > org.bitcoins.chain.models.BlockHeaderDb< / span > is that
1.< / p > < div class = "fullcomment" > < div class = "comment cmt" > < p > Builds a block header on top the given prev header
The only consensus requirement that this method adheres to
with the returned < span name = "org.bitcoins.chain.models.BlockHeaderDb" class = "extype" > org.bitcoins.chain.models.BlockHeaderDb< / span > is that
1. We reference the < span name = "org.bitcoins.chain.models.BlockHeaderDb.blockHeader.hash" class = "extype" > org.bitcoins.chain.models.BlockHeaderDb.blockHeader.hash< / span > correct
2022-02-22 01:16:40 +00:00
2. We increment the height of < span name = "prevHeader" class = "extype" > prevHeader< / span > by one< / p > < / div > < dl class = "attributes block" > < dt > Definition Classes< / dt > < dd > < a href = "BlockHeaderHelper.html" name = "org.bitcoins.testkit.chain.BlockHeaderHelper" id = "org.bitcoins.testkit.chain.BlockHeaderHelper" class = "extype" > BlockHeaderHelper< / a > < / dd > < dt > Annotations< / dt > < dd > < span class = "name" > @tailrec< / span > < span class = "args" > ()< / span > < / dd > < / dl > < / div > < / li > < li class = "indented0 " name = "scala.AnyRef#clone" group = "Ungrouped" fullComment = "yes" data-isabs = "false" visbl = "prt" > < a id = "clone():Object" class = "anchorToMember" > < / a > < a id = "clone():AnyRef" class = "anchorToMember" > < / a > < span class = "permalink" > < a href = "../../../../org/bitcoins/testkit/chain/BlockHeaderHelper$.html#clone():Object" title = "Permalink" > < i class = "material-icons" > < / i > < / a > < / span > < span class = "modifier_kind" > < span class = "modifier" > < / span > < span class = "kind" > def< / span > < / span > < span class = "symbol" > < span class = "name" > clone< / span > < span class = "params" > ()< / span > < span class = "result" > : < a href = "../../../../scala/index.html#AnyRef=Object" name = "scala.AnyRef" id = "scala.AnyRef" class = "extmbr" > AnyRef< / a > < / span > < / span > < div class = "fullcomment" > < dl class = "attributes block" > < dt > Attributes< / dt > < dd > protected[< span name = "java.lang" class = "extype" > lang< / span > ] < / dd > < dt > Definition Classes< / dt > < dd > AnyRef< / dd > < dt > Annotations< / dt > < dd > < span class = "name" > @throws< / span > < span class = "args" > (< span > < span class = "defval" > classOf[java.lang.CloneNotSupportedException]< / span > < / span > )< / span > < span class = "name" > @native< / span > < span class = "args" > ()< / span > < / dd > < / dl > < / div > < / li > < li class = "indented0 " name = "scala.AnyRef#eq" group = "Ungrouped" fullComment = "yes" data-isabs = "false" visbl = "pub" > < a id = "eq(x$1:AnyRef):Boolean" class = "anchorToMember" > < / a > < a id = "eq(AnyRef):Boolean" class = "anchorToMember" > < / a > < span class = "permalink" > < a href = "../../../../org/bitcoins/testkit/chain/BlockHeaderHelper$.html#eq(x$1:AnyRef):Boolean" title = "Permalink" > < i class = "material-icons" > < / i > < / a > < / span > < span class = "modifier_kind" > < span class = "modifier" > final < / span > < span class = "kind" > def< / span > < / span > < span class = "symbol" > < span class = "name" > eq< / span > < span class = "params" > (< span name = "arg0" > arg0: < a href = "../../../../scala/index.html#AnyRef=Object" name = "scala.AnyRef" id = "scala.AnyRef" class = "extmbr" > AnyRef< / a > < / span > )< / span > < span class = "result" > : < a href = "https://www.scala-lang.org/api/2.13.8/scala/Boolean.html#scala.Boolean" name = "scala.Boolean" id = "scala.Boolean" class = "extype" > Boolean< / a > < / span > < / span > < div class = "fullcomment" > < dl class = "attributes block" > < dt > Definition Classes< / dt > < dd > AnyRef< / dd > < / dl > < / div > < / li > < li class = "indented0 " name = "scala.AnyRef#equals" group = "Ungrouped" fullComment = "yes" data-isabs = "false" visbl = "pub" > < a id = "equals(x$1:Object):Boolean" class = "anchorToMember" > < / a > < a id = "equals(AnyRef):Boolean" class = "anchorToMember" > < / a > < span class = "permalink" > < a href = "../../../../org/bitcoins/testkit/chain/BlockHeaderHelper$.html#equals(x$1:Object):Boolean" title = "Permalink" > < i class = "material-icons" > < / i > < / a > < / span > < span class = "modifier_kind" > < span class = "modifier" > < / span > < span class = "kind" > def< / span > < / span > < span class = "symbol" > < span class = "name" > equals< / span > < span class = "params" > (< span name = "arg0" > arg0: < a href = "../../../../scala/index.html#AnyRef=Object" name = "scala.AnyRef" id = "scala.AnyRef" class = "extmbr" > AnyRef< / a > < / span > )< / span > < span class = "result" > : < a href = "https://www.scala-lang.org/api/2.13.8/scala/Boolean.html#scala.Boolean" name = "scala.Boolean" id = "scala.Boolean" class = "extype" > Boolean< / a > < / span > < / span > < div class = "fullcomment" > < dl class = "attributes block" > < dt > Definition Classes< / dt > < dd > AnyRef → Any< / dd > < / dl > < / div > < / li > < li class = "indented0 " name = "scala.AnyRef#finalize" group = "Ungrouped" fullComment = "yes" data-isabs = "false" visbl = "prt" > < a id = "finalize():Unit" class = "anchorToMember" > < / a > < span class = "permalink" > < a href = "../../../../org/bitcoins/testkit/chain/BlockHeaderHelper$.html#finalize():Unit" title = "Permalink" > < i class = "material-icons" > < / i > < / a > < / span > < span class = "modifier_kind" > < span class = "modifier"
2021-05-01 18:33:34 +00:00
000000000000000000250c4b6909c0befc321610d4cd0229ad08ad45a3335eb4< / p > < div class = "fullcomment" > < div class = "comment cmt" > < p > The next block is < a href = "#header1:org.bitcoins.core.protocol.blockchain.BlockHeader" name = "org.bitcoins.testkit.chain.BlockHeaderHelper#header1" id = "org.bitcoins.testkit.chain.BlockHeaderHelper#header1" class = "extmbr" > header1< / a > after this block
2022-02-22 01:16:40 +00:00
000000000000000000250c4b6909c0befc321610d4cd0229ad08ad45a3335eb4< / p > < / div > < dl class = "attributes block" > < dt > Definition Classes< / dt > < dd > < a href = "BlockHeaderHelper.html" name = "org.bitcoins.testkit.chain.BlockHeaderHelper" id = "org.bitcoins.testkit.chain.BlockHeaderHelper" class = "extype" > BlockHeaderHelper< / a > < / dd > < dt > See also< / dt > < dd > < span class = "cmt" > < p > < a href = "https://blockstream.info/block/000000000000000000250c4b6909c0befc321610d4cd0229ad08ad45a3335eb4" target = "_blank" > #566,092< / a > < / p > < / span > < / dd > < / dl > < / div > < / li > < li class = "indented0 " name = "org.bitcoins.testkit.chain.BlockHeaderHelper#header2Db" group = "Ungrouped" fullComment = "yes" data-isabs = "false" visbl = "pub" > < a id = "header2Db:org.bitcoins.core.api.chain.db.BlockHeaderDb" class = "anchorToMember" > < / a > < a id = "header2Db:BlockHeaderDb" class = "anchorToMember" > < / a > < span class = "permalink" > < a href = "../../../../org/bitcoins/testkit/chain/BlockHeaderHelper$.html#header2Db:org.bitcoins.core.api.chain.db.BlockHeaderDb" title = "Permalink" > < i class = "material-icons" > < / i > < / a > < / span > < span class = "modifier_kind" > < span class = "modifier" > < / span > < span class = "kind" > val< / span > < / span > < span class = "symbol" > < span class = "name" > header2Db< / span > < span class = "result" > : < a href = "../../core/api/chain/db/BlockHeaderDb.html" name = "org.bitcoins.core.api.chain.db.BlockHeaderDb" id = "org.bitcoins.core.api.chain.db.BlockHeaderDb" class = "extype" > BlockHeaderDb< / a > < / span > < / span > < div class = "fullcomment" > < dl class = "attributes block" > < dt > Definition Classes< / dt > < dd > < a href = "BlockHeaderHelper.html" name = "org.bitcoins.testkit.chain.BlockHeaderHelper" id = "org.bitcoins.testkit.chain.BlockHeaderHelper" class = "extype" > BlockHeaderHelper< / a > < / dd > < / dl > < / div > < / li > < li class = "indented0 " name = "scala.Any#isInstanceOf" group = "Ungrouped" fullComment = "yes" data-isabs = "false" visbl = "pub" > < a id = "isInstanceOf[T0]:Boolean" class = "anchorToMember" > < / a > < span class = "permalink" > < a href = "../../../../org/bitcoins/testkit/chain/BlockHeaderHelper$.html#isInstanceOf[T0]:Boolean" title = "Permalink" > < i class = "material-icons" > < / i > < / a > < / span > < span class = "modifier_kind" > < span class = "modifier" > final < / span > < span class = "kind" > def< / span > < / span > < span class = "symbol" > < span class = "name" > isInstanceOf< / span > < span class = "tparams" > [< span name = "T0" > T0< / span > ]< / span > < span class = "result" > : < a href = "https://www.scala-lang.org/api/2.13.8/scala/Boolean.html#scala.Boolean" name = "scala.Boolean" id = "scala.Boolean" class = "extype" > Boolean< / a > < / span > < / span > < div class = "fullcomment" > < dl class = "attributes block" > < dt > Definition Classes< / dt > < dd > Any< / dd > < / dl > < / div > < / li > < li class = "indented0 " name = "scala.AnyRef#ne" group = "Ungrouped" fullComment = "yes" data-isabs = "false" visbl = "pub" > < a id = "ne(x$1:AnyRef):Boolean" class = "anchorToMember" > < / a > < a id = "ne(AnyRef):Boolean" class = "anchorToMember" > < / a > < span class = "permalink" > < a href = "../../../../org/bitcoins/testkit/chain/BlockHeaderHelper$.html#ne(x$1:AnyRef):Boolean" title = "Permalink" > < i class = "material-icons" > < / i > < / a > < / span > < span class = "modifier_kind" > < span class = "modifier" > final < / span > < span class = "kind" > def< / span > < / span > < span class = "symbol" > < span class = "name" > ne< / span > < span class = "params" > (< span name = "arg0" > arg0: < a href = "../../../../scala/index.html#AnyRef=Object" name = "scala.AnyRef" id = "scala.AnyRef" class = "extmbr" > AnyRef< / a > < / span > )< / span > < span class = "result" > : < a href = "https://www.scala-lang.org/api/2.13.8/scala/Boolean.html#scala.Boolean" name = "scala.Boolean" id = "scala.Boolean" class = "extype" > Boolean< / a > < / span > < / span > < div class = "fullcomment" > < dl class = "attributes block" > < dt > Definition Classes< / dt > < dd > AnyRef< / dd > < / dl > < / div > < / li > < li class = "indented0 " name = "scala.AnyRef#notify" group = "Ungrouped" fullComment = "yes" data-isabs = "false" visbl = "pub" > < a id = "notify():Unit" class = "anchorToMember" > < / a > < span class = "permalink" > < a href = "../../../../org/bitcoins/testkit/chain/BlockHeaderHelper$.html#notify():Unit" title = "Permalink" > < i class = "material-icons" > < / i > < / a > < / span > < span class = "modifier_kind" > < span class = "modifier" > final < / span > < span class = "kind" > def< / span > < / span > < span class = "symbol" > < span class = "name" > notify< / span > < s